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.

Annotations

Constructors

CsrFieldConfig({required int start, required int width, required String name, required CsrFieldAccess access, List<int> legalValues = const [], 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 setteroverride
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

clone({int? start, int? width, String? name, CsrFieldAccess? access, int? resetValue, List<int>? legalValues}) → CsrFieldConfig
Clone the field configuration with optional overrides.
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.

Operators

operator ==(Object other) → bool
The equality operator.
override