Contents

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 : FixedWidthInteger

Parameters

  • 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.

See Also

Create a HID element from a value