24 #include "rnr/rnrconfig.h" 25 #include "rnr/netmsgs.h" 27 #include "rnr/i2c-dev.h" 75 #define BSI2C_REQTRANS_WRITEBUF_LEN (NMFVAL_LEN_MAX_VECTOR) 102 #define BSI2C_RSPREAD_READBUF_LEN (NMFVAL_LEN_MAX_VECTOR) 127 #define BSI2C_REQWRITE_WRITEBUF_LEN (NMFVAL_LEN_MAX_VECTOR) 166 #define BSI2C_RSPSCAN_SCAN_LEN (NMFVAL_LEN_MAX_VECTOR) 485 #endif // _BSI2CMSGS_H
#define BSI2C_RSPSCAN_SCAN_LEN
size_t BsI2CLookupMsgMaxLen(BsI2CMsgId_T eMsgId)
Look up the message maximum length associated with the message id.
size_t m_count
vector item count
const NMMsgDef_T * BsI2CMsgDefLookupTbl[]
INLINE_IN_H int BsI2CPackReqTrans(BsI2CReqTrans_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsI2CReqTrans ITV message in big-endian byte order into the output buffer. ...
INLINE_IN_H int BsI2CPackRspRead(BsI2CRspRead_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsI2CRspRead ITV message in big-endian byte order into the output buffer.
INLINE_IN_H int BsI2CPackReqWrite(BsI2CReqWrite_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsI2CReqWrite ITV message in big-endian byte order into the output buffer. ...
size_t m_count
vector item count
void * m_pAlign
force alignment
void * m_pAlign
force alignment
INLINE_IN_H int BsI2CUnpackRspRead(byte_t buf[], size_t uMsgLen, BsI2CRspRead_T *pStruct, bool_t bTrace)
Unpack a BsI2CRspRead ITV message in big-endian byte order from the input buffer. ...
INLINE_IN_H int BsI2CPackReqRead(BsI2CReqRead_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsI2CReqRead ITV message in big-endian byte order into the output buffer.
int BsI2CUnpackMsg(BsI2CMsgId_T eMsgId, byte_t buf[], size_t uMsgLen, void *pStruct, bool_t bTrace)
Unpack a ITV message in big-endian byte order.
INLINE_IN_H int BsI2CUnpackRspWrite(byte_t buf[], size_t uMsgLen, BsI2CRspWrite_T *pStruct, bool_t bTrace)
Unpack a BsI2CRspWrite ITV message in big-endian byte order from the input buffer.
INLINE_IN_H int BsI2CPackRspWrite(BsI2CRspWrite_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsI2CRspWrite ITV message in big-endian byte order into the output buffer. ...
INLINE_IN_H int BsI2CUnpackReqWrite(byte_t buf[], size_t uMsgLen, BsI2CReqWrite_T *pStruct, bool_t bTrace)
Unpack a BsI2CReqWrite ITV message in big-endian byte order from the input buffer.
size_t BsI2CMsgMaxLenLookupTbl[]
size_t m_count
vector item count
int BsI2CPackMsg(BsI2CMsgId_T eMsgId, void *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a ITV message in big-endian byte order.
byte_t m_byteswritten
byteswritten
size_t m_count
vector item count
#define BSI2C_REQTRANS_WRITEBUF_LEN
INLINE_IN_H int BsI2CUnpackReqTrans(byte_t buf[], size_t uMsgLen, BsI2CReqTrans_T *pStruct, bool_t bTrace)
Unpack a BsI2CReqTrans ITV message in big-endian byte order from the input buffer.
#define BSI2C_RSPREAD_READBUF_LEN
#define BSI2C_REQWRITE_WRITEBUF_LEN
const NMMsgDef_T * BsI2CLookupMsgDef(BsI2CMsgId_T eMsgId)
Look up the message definition associated with the message id.
INLINE_IN_H int BsI2CUnpackReqRead(byte_t buf[], size_t uMsgLen, BsI2CReqRead_T *pStruct, bool_t bTrace)
Unpack a BsI2CReqRead ITV message in big-endian byte order from the input buffer. ...
INLINE_IN_H int BsI2CUnpackRspScan(byte_t buf[], size_t uMsgLen, BsI2CRspScan_T *pStruct, bool_t bTrace)
Unpack a BsI2CRspScan ITV message in big-endian byte order from the input buffer. ...
<b><i>BotSense</i></b> package top-level, unifying header declarations.
void * m_pAlign
force alignment
void * m_pAlign
force alignment
INLINE_IN_H int BsI2CPackRspScan(BsI2CRspScan_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
Pack a BsI2CRspScan ITV message in big-endian byte order into the output buffer.