Back to Aurora Vision Library Lite website
You are here: Start » Hardware Support » Advantech SUSI » AdvantechSUSI_WriteReadI2C
AdvantechSUSI_WriteReadI2C
Header: | ThirdPartySdk.h |
---|---|
Namespace: | avl |
Reads and writes to I2C bus.
Syntax
void avl::AdvantechSUSI_WriteReadI2C ( AdvantechSUSI_State& ioState, atl::Optional<int> inDevice, int inAddress, const avl::ByteBuffer& inBuffer, int inReadSize, avl::ByteBuffer& outBuffer )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | AdvantechSUSI_State& | Object used to maintain state of the function. | |||
inDevice | Optional<int> | 1 - 6 | NIL | Select I2C device or empty for main host device. | |
inAddress | int | 0 - 127 | Device address as 7 bit number. | ||
inBuffer | const ByteBuffer& | Empty buffer mean no write operation | |||
inReadSize | int | 1 - | Zero size mean no read operation | ||
outBuffer | ByteBuffer& |
Remarks
I/O device driver software
This filter is intended to cooperate with a device using its vendor SDK. To be able to connect to a device, it is required to install Advantech SUSI SDK.
Add DLL path to system environment variable is required.
Recommended runtime version for Aurora Vision Studio usage is 4.
Setup low level system functionality e.g. watchdog may still affect the system after the program finished.