AdvantechSUSI_ReadI2C


Reads from I2C device.

Syntax

C++
Python
 
def AdvantechSUSI_ReadI2C(
	state: AdvantechSUSI_State,
	inAddress: int,
	inCommand: int,
	outBuffer: ByteBuffer,
	/,
	*,
	inDevice: int | None = None,
	inLongAddressFormat: bool = False,
	inCommandType: AdvantechSUSII2CCommandType = AdvantechSUSII2CCommandType.Standard,
	inReadSize: int = 1
)
-> None

Parameters

Name Type Range Default Description
Input will be modified ioState AdvantechSUSI_State
Input value inDevice int | None 1 - 6 None Select I2C device or empty for main host device.
Input value inAddress int 0 - 1023 Device address as 7 or 10 bit number
Input value inLongAddressFormat bool False Activate 10 bit address format.
Input value inCommandType AdvantechSUSII2CCommandType AdvantechSUSII2CCommandType.Standard
Input value inCommand int
Input value inReadSize int 1 - 1
Output value outBuffer ByteBuffer