User's Manual

Table Of Contents
RK-5424-5 Reference Kit User’s Guide 4-13
iBeanAPI.h
17. ibApi_Serial_Receive_EVENT_DATA
typedef struct {
ibApi_UINT8 dataType; // Must be first!
ibApi_UINT8 serialState; // 0xFF=undefined
ibApi_DEVICEID deviceID;
ibApi_UINT8 serialDataSize;
ibApi_UINT8 serialSequence;
ibApi_UINT8 serialData[ibApi_MAX_SERIAL_DATA_SIZE];
}
This data structure will be passed to event callbacks to convey information about serial
receive events.
Use the first argument ibApi_EVENTMASK to determine how to cast the callback data.
18. ibApi_Battery_Level_EVENT_DATA
typedef struct {
ibApi_UINT8 dataType; // Must be first!
ibApi_UINT8 reserved; // for alignement
ibApi_DEVICEID deviceID;
ibApi_FLOAT batteryLevel;
}
This data structure will be passed to event callbacks to convey information about battery
level events.
Use the first argument ibApi_EVENTMASK to determine how to cast the callback data.
19. ibApi_Network_EVENT_DATA
typedef struct {
ibApi_UINT8 dataType; // Must be first!
ibApi_UINT8 hopCount;
ibApi_DEVICEID deviceID;
ibApi_DEVICEID firstHopRouter;
ibApi_DEVICEID lastHopRouter;
}
This data structure will be passed to event callbacks to convey information about network
events.
Use the first argument ibApi_EVENTMASK to determine how to cast the callback data.