implicit class DataPositionEnrich[T <: Data] extends AnyRef
- Alphabetic
- By Inheritance
- DataPositionEnrich
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DataPositionEnrich(t: T)
Value Members
-
def
pack(range: Range, endianness: Endianness = LITTLE): T
Place the data at the given range.
Place the data at the given range. Extra bits will be lost (unassigned or read) if the data does not fit with the range.
- range
Range to place the data
- endianness
Bit direction to align data within the range
- returns
Self
-
def
pack(range: Range): T
Place the data at the given range.
Place the data at the given range. Extra bits will be lost (unassigned or read) if the data does not fit with the range.
- range
Range to place the data
- returns
Self
-
def
packFrom(pos: Int): T
Packs data starting (LSB) at the bit position
Packs data starting (LSB) at the bit position
- pos
Starting bit position of the data
- returns
Self
-
def
packTo(pos: Int): T
Packs data ending (MSB) at the bit position
Packs data ending (MSB) at the bit position
- pos
Ending bit position of the data
- returns
Self