⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 enum.h

📁 自己写的Zigbee MAC源码。包括zmac.c
💻 H
字号:
#define aMaxMACFrameSize  24#define aMaxNWKPecketSize 20int aMACFrameSize = 0;int aNWKFrameSize = 0;int fd;//串口文件描述符typedef enum _Zigbee_enums {    zphyBUSY =                  0x01,    zphyBUSY_RX =               0x02,    zphyBUSY_TX =               0x03,    zphyFORCE_TRX_OFF =         0x04,    zphyIDLE =                  0x05,    zphyINVALID_PARAMETER =     0x06,    zphyRX_ON =                 0x07,    zphySUCCESS =               0x08,    zphyTRX_OFF =               0x09,    zphyTX_ON =                 0x0A,    zphyUNSUPPORTED_ATTRIBUTE = 0x0B,   zphyNULL =                  0x0C,   zmacSUCCESS =               0x10,    BEACON_LOSS =               0x11,    CHANNEL_ACCESS_FAILURE =    0x12,    EDNIED =                    0x13,    DISABLE_TRX_FAILURE =       0x14,    FRAME_TOO_LONG =            0x15,    INVALID_GES =               0x16,    INVALID_HANDLE =            0x17,    INVALID_PARAMETER =         0x18,     NO_ACK =                    0x19,   NO_BEACON=                  0x1A,   NO_DATA=                    0x1B,   OUT_OF_CAP=                 0x1C,   PAN_ID_CONFLICT=            0x1D,   REALIGNMENT=                0x1E,   TRANSACTION_EXPIRED=        0x1F,   TX_ACTIVE=                  0x20,   UNSUPPORTED_ATTRIBUTE=      0x21,   zmacBUSY=                   0x22,   zmacNULL =                  0x23} ZIGBEE_STATUS; typedef enum _ZIGBEE_PRIMITIVE {    PD_data_request = 0x01,    //PD_data_confirm = 0x02,    PD_data_indication = 0x03,    PLME_cca_request = 0x04,    //PLME_cca_confirm = 0x05,    PLME_ed_request = 0x06,    //PLME_ed_confirm = 0x07,    PLME_get_request = 0x08,    //PLME_get_confirm = 0x09,    PLME_set_trx_state_request = 0x0A,    //PLME_set_trx_state_confirm = 0x0B,    PLME_set_request = 0x0C,    //PLME_set_confirm = 0x0D,   PHY_enable = 0x0E,   PHY_disenable = 0x0F,   MCPS_data_request = 0x10,    //MCPS_data_confirm = 0x11,    MCPS_data_indication = 0x12,    MCPS_purge_request = 0x13,    //MCPS_purge_confirm = 0x14,    MLME_associate_request = 0x15,    MLME_associate_indication = 0x16,    //MLME_associate_response = 0x17,    //MLME_associate_confirm = 0x18,    MLME_reset_request = 0x19,    //MLME_reset_confirm = 0x1A,   MLME_rx_enable_request = 0x1B,    //MLME_rx_enable_confirm = 0x1C,   MAC_enable = 0x1D,   MAC_disenable = 0x1E   /*MLME_disassociate_request = 0x1D,    MLME_disassociate_indication = 0x1E,    MLME_disassociate_confirm = 0x1F,    MLME_beacon_notify_indication = 0x20,    MLME_get_request = 0x21,    MLME_get_confirm = 0x22,    MLME_gts_request = 0x23,    MLME_gts_confirm = 0x24,    MLME_gts_indication = 0x25,    MLME_orphan_indication = 0x26,    MLME_orphan_response = 0x27,    MLME_scan_request = 0x28,    MLME_scan_confirm = 0x29,    MLME_comm_status_indication = 0x2A,    MLME_set_request = 0x2B,    MLME_set_confirm = 0x2C,    MLME_start_request = 0x2D,    MLME_start_confirm = 0x2E,    MLME_sync_request = 0x2F,    MLME_sync_LOSS_indication = 0x30,    MLME_poll_request = 0x31,    MLME_poll_confirm = 0x32*/} ZIGBEE_PRIMITIVE; typedef enum _BOOL { FALSE = 0, TRUE = 1 } BOOL; typedef unsigned char BYTE;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -