init(element:fromLogicalValueTruncatingIfNeeded:timestamp:)
Creates a HID element value from a logical value.
Declaration
init?<IntegerType>(element: HIDElement, fromLogicalValueTruncatingIfNeeded: IntegerType, timestamp: SuspendingClock.Instant) where IntegerType : FixedWidthIntegerParameters
- element:
The element associated with this value.
- fromLogicalValueTruncatingIfNeeded:
An integer to use for the value’s Bytes, truncating or extending the bytes as necessary.
- timestamp:
The time that the value was created.
Discussion
The raw value and physical value are calculated; both must be valid.