CsrFieldConfig class
Configuration for a register field.
If start and/or width is symbolic based on the parent register width and/or other fields, it is assumed that those symbolic values are resolved before construction of the field config. If a field should be duplicated n times within a register, it is assumed that this object is instantiated n times within the parent register config accordingly.
Constructors
- CsrFieldConfig({required int start, required int width, required String name, required CsrFieldAccess access, int resetValue = 0})
- Construct a new field configuration.
Properties
- access → CsrFieldAccess
-
Access rule for the field.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
legalValues
→ List<
int> -
A list of legal values for the field.
final
- name → String
-
Name for the field.
final
- resetValue → int
-
Reset value for the field.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → int
-
Starting bit position of the field in the register.
final
- width → int
-
Number of bits in the field.
final
Methods
-
addLegalValue(
int val) → void - Add a legal value for the field.
-
clone(
) → CsrFieldConfig - Deep clone method.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transformIllegalValue(
) → int - Method to return a legal value from an illegal one.
-
validate(
) → void - Method to validate the configuration of a single field.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited