Represents an offset in an array of bits for the bitfield or bitfieldReadOnly commands.
For example, if we have the binary 01101001 with offset of 1 for an unsigned encoding of size 4, then the value is 13 from 0(1101)001.
01101001
0(1101)001
Creates an instance of BitOffset.
The bit index offset in the array of bits. Must be greater than or equal to 0.
Returns the offset as a string argument to be used in the bitfield or bitfieldReadOnly commands.
The offset as a string argument.
Represents an offset in an array of bits for the bitfield or bitfieldReadOnly commands.
For example, if we have the binary
01101001with offset of 1 for an unsigned encoding of size 4, then the value is 13 from0(1101)001.