pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function frame

    • Builds a classic CAN 2.0 frame.

      Parameters

      • id: number

        The arbitration identifier, masked to the width extended selects.

      • data: Uint8Array

        The payload, at most eight bytes.

      • Optionalextended: boolean

        Whether the identifier is a 29-bit extended one.

      Returns can.CanFrame

      The frame.

      If the payload is longer than a classic frame carries.