Renamed i2c to twi.
This commit is contained in:
@@ -133,13 +133,13 @@ void _packetReceived(AQH_SERIAL *sr, AQH_MSG *msg)
|
|||||||
AQH_MsgSendStats_DumpToBuffer(msg, dbuf, "received");
|
AQH_MsgSendStats_DumpToBuffer(msg, dbuf, "received");
|
||||||
fprintf(stdout, "%s", GWEN_Buffer_GetStart(dbuf));
|
fprintf(stdout, "%s", GWEN_Buffer_GetStart(dbuf));
|
||||||
}
|
}
|
||||||
else if (msgType==30) { /* CPRO_CMD_I2CBUSMEMBER */
|
else if (msgType==AQH_MSG_TYPE_TWIBUSMEMBER) { /* CPRO_CMD_TWIBUSMEMBER */
|
||||||
int i2cAddr;
|
int i2cAddr;
|
||||||
int availability;
|
int availability;
|
||||||
|
|
||||||
i2cAddr=ptr[4];
|
i2cAddr=ptr[4];
|
||||||
availability=ptr[5];
|
availability=ptr[5];
|
||||||
fprintf(stdout, "-> I2C DEVICE %02x: %s\n", i2cAddr, (availability==0)?"not available":"FOUND");
|
fprintf(stdout, "-> TWI DEVICE %02x: %s\n", i2cAddr, (availability==0)?"not available":"FOUND");
|
||||||
}
|
}
|
||||||
else if (msgType==40) { /* CPRO_CMD_DEBUG */
|
else if (msgType==40) { /* CPRO_CMD_DEBUG */
|
||||||
uint8_t param1;
|
uint8_t param1;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
#define AQH_MSG_TYPE_PONG 11
|
#define AQH_MSG_TYPE_PONG 11
|
||||||
#define AQH_MSG_TYPE_COMSENDSTATS 20
|
#define AQH_MSG_TYPE_COMSENDSTATS 20
|
||||||
#define AQH_MSG_TYPE_COMRECVSTATS 21
|
#define AQH_MSG_TYPE_COMRECVSTATS 21
|
||||||
#define AQH_MSG_TYPE_I2CBUSMEMBER 30
|
#define AQH_MSG_TYPE_TWIBUSMEMBER 30
|
||||||
#define AQH_MSG_TYPE_DEBUG 40
|
#define AQH_MSG_TYPE_DEBUG 40
|
||||||
#define AQH_MSG_TYPE_VALUE 50
|
#define AQH_MSG_TYPE_VALUE 50
|
||||||
#define AQH_MSG_TYPE_NEED_ADDRESS 60
|
#define AQH_MSG_TYPE_NEED_ADDRESS 60
|
||||||
|
|||||||
Reference in New Issue
Block a user