123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- #ifndef MT_DEBUG_H
- #define MT_DEBUG_H
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #include "OSAL.h"
- typedef struct
- {
- osal_event_hdr_t hdr;
- uint8 compID;
- uint8 severity;
- uint8 numParams;
- uint16 param1;
- uint16 param2;
- uint16 param3;
- uint16 timestamp;
- } mtDebugMsg_t;
- typedef struct
- {
- osal_event_hdr_t hdr;
- uint8 strLen;
- uint8 *pString;
- } mtDebugStr_t;
- typedef struct {
- #ifdef PACKET_FILTER_STATS
- uint32 nwkInvalidPackets;
- uint32 rxCrcFailure;
- uint32 rxCrcSuccess;
- #endif
- uint8 fsmstat0;
- uint8 fsmstat1;
- uint8 macData_rxCount;
- uint8 macData_directCount;
- uint8 macMain_state;
- uint8 macRxActive;
- uint8 macTxActive;
- } mtDebugMacDataDump_t;
- #if defined (MT_DEBUG_FUNC)
- extern uint8 MT_DebugCommandProcessing(uint8 *pBuf);
- #endif
- extern void MT_ProcessDebugMsg(mtDebugMsg_t *pData);
- extern void MT_ProcessDebugStr(mtDebugStr_t *pData);
- #ifdef __cplusplus
- }
- #endif
- #endif
|