I2C Write

Write one or more bytes on the I2C channel.

LabVIEW

Developer Note

VI takes address, byte array.

Command Packet

  • I2C Write Command
  • I2C Write Response
  • I2C Write Command
    Description Write one or more bytes on the I2C bus.
    Size Variable
    Format
    -
    0
    1
    2
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    N/A
    SoF : 0xFF
    PACKET SIZE
    PACKET NUM
    3
    4
    5
    6
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    PACKET NUM
    CMD : 0x00E2
    CHANNEL
    7
    8
    9
    10
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    ADDRESS
    EOF CONFIG*
    DATA
    CHECKSUM
    SoF Start of Frame. Always 0xFF.
    PACKET SIZE Packet Size In Bytes
    PACKET NUM The Current Packet Number. This value increments with each new packet or repeats for a multi packet command.
    CMD I2C Write Command.
    CHANNEL I2C channel to write to.
    ADDRESS I2C slave address.
    EOF CONFIG* End of frame configuration. 0x00 = Default 0x01 = Restart 0x02 = Restart No Stop 0x03 = No Stop
    DATA Variable Length. Data to write to the I2C channel.
    CHECKSUM Checksum. Computed by adding all of the bytes in the packet in U8 form ignoring rollover.

    LINX Target

    Developer Note

    Response Packet

    I2C Write Response
    Description LINX device's response to I2C Write Command
    Size 6 Bytes
    Format
    -
    -
    0
    1
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    N/A
    SoF : 0xFF
    PACKET SIZE
    2
    3
    4
    5
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    PACKET NUM
    STATUS
    CHECKSUM
    SoF Start of Frame. Always 0xFF.
    PACKET SIZE Total packet size in bytes.
    PACKET NUM The packet number of the packet that generated the response.
    STATUS See Return Status section below.
    CHECKSUM Checksum. Computed by adding all of the bytes in the packet in U8 form ignoring rollover.

    Return Status

    Status Description
    0x81 EOF Config Not Supported <THIS STATUS DNE IN LINX 1.0, WILL BE ADDED IN 1.1>

    See return_status for universal return statuses.