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 | |
|---|---|---|---|---|---|
![]() |
ioState | AdvantechSUSI_State | |||
![]() |
inDevice | int | None | 1 - 6 | None | Select I2C device or empty for main host device. |
![]() |
inAddress | int | 0 - 1023 | Device address as 7 or 10 bit number | |
![]() |
inLongAddressFormat | bool | False | Activate 10 bit address format. | |
![]() |
inCommandType | AdvantechSUSII2CCommandType | AdvantechSUSII2CCommandType.Standard | ||
![]() |
inCommand | int | |||
![]() |
inReadSize | int | 1 - ![]() |
1 | |
![]() |
outBuffer | ByteBuffer |




