54 #include "rnr/rnrconfig.h" 60 #define BS_I2C_DEV_NAME_DFT "/dev/i2c-0" 62 #define BS_I2C_SERVER_MOD "libbsserver_i2c" 63 #define BS_I2C_CLIENT_LIB "libbsclient_i2c"
int bsI2CReqWrite(BsClient_P pClient, BsVConnHnd_T hndVConn, i2c_addr_t i2cAddr, byte_t wbuf[], size_t uWriteLen)
Proxied request to write to a device attached to the I2C bus.
int bsI2CReqOpen(BsClient_P pClient, const char *sDevName, bool_t bInitTrace)
Request proxy server to establish a virtual connection to an I2C bus device.
The Client Structure Type.
<b><i>BotSense</i></b> client library declarations.
int bsI2CReqTrans(BsClient_P pClient, BsVConnHnd_T hndVConn, i2c_addr_t i2cAddr, byte_t wbuf[], size_t uWriteLen, size_t uReadLen, byte_t rbuf[])
Proxied request to execute a write-read transaction to a device attached to the I2C bus...
const char * bsI2CGetMsgName(BsClient_P pClient, BsVConnHnd_T hndVConn, uint_t uMsgId)
Get the I2C message name.
int bsI2CReqRead(BsClient_P pClient, BsVConnHnd_T hndVConn, i2c_addr_t i2cAddr, size_t uReadLen, byte_t rbuf[])
Proxied request to read from a device attached to the I2C bus.
int bsI2CReqScan(BsClient_P pClient, BsVConnHnd_T hndVConn, i2c_addr_t bufScan[], size_t sizeScanBuf)
Proxied request to scan the I2C bus for all attached devices.
int bsI2CReqClose(BsClient_P pClient, BsVConnHnd_T hndVConn)
Request proxy server to close client's proxied I2C device vitual connection.
<b><i>BotSense</i></b> package top-level, unifying header declarations.
int BsVConnHnd_T
virtual connection handle type