Skip to content
Ken Sharp edited this page Dec 10, 2025 · 2 revisions

I2C Set Speed

Set the clock speed of the specified I2C channel.

LabVIEW

Command Packet

I2C Set Clock
Description Set the clock speed of the specified I2C channel.
Size 11 Bytes
Format 0 1 2 3 4 5 6 7 8 9 10 11
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 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 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
SoF : 0xFF PACKET SIZE : 0x07 PACKET NUM CMD : 0x00E1 CHANNEL SPEED 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.
CMD I2C Set Clock Command.
CHANNEL I2C Channel Number
SPEED I2C Clock Speed (Hz)
CHECKSUM Checksum. Computed by adding all of the bytes in the packet in U8 form ignoring rollover.

LINX Target

Developer Note

Set the I2C clock speed

Response Packet

I2C Set Clock Response
Description LINX device's response to I2C Set Clock command
Size 6 Bytes
Format 0 1 2 3 4 5 6 7 8 9
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 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 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
SoF : 0xFF PACKET SIZE : 0x0A PACKET NUM STATUS ACTUAL SPEED 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.
ACTUAL SPEED U32 Actual I2C clock rate in Hz.
CHECKSUM Checksum. Computed by adding all of the bytes in the packet in U8 form ignoring rollover.

Return Status

See Return Status for universal return statuses.

Related Links

LINX

Clone this wiki locally