TwePacketPAL
class TwePacketPal : public TwePacket, public DataPal { ... };DataPal structure
struct DataPal {
uint8_t u8lqi; // LQI value
uint32_t u32addr_rpt; // address of the relay
uint32_t u32addr_src; // source address
uint8_t u8addr_src; // source logical address
uint16_t u16seq; // sequence number
E_PAL_PCB u8palpcb; // PAL board type
uint8_t u8palpcb_rev; // Revision of PAL board
uint8_t u8sensors; // Number of sensor data in the data (MSB=1 is an error)
uint8_t u8snsdatalen; // sensor data length (in bytes)
union {
const uint8_t *au8snsdata; // reference to sensor data part
uint8_t _pobj[MWX_PARSER_PKT_APPPAL_FIXED_BUF]; // each sensor object
};
};PalBase
PalEvent
Generator functions
get_PalMag()
get_PalAmb()
get_PalMot()
get_PalEvent()
最終更新