123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- #ifndef MAC_MLME_SYNC_H_INCLUDED
- #define MAC_MLME_SYNC_H_INCLUDED
- #if (CONFIG_SYNC_ENABLED == 1)
- #include <stdint.h>
- #include "mac_common.h"
- #include "mac_task_scheduler.h"
- typedef enum
- {
- MAC_SYNC_BEACON_LOST,
- MAC_SYNC_REALIGNMENT,
- MAC_SYNC_PAN_ID_CONFLICT
- } mlme_sync_loss_reason_t;
- typedef struct
- {
- mlme_sync_loss_reason_t loss_reason;
- uint16_t pan_id;
- uint8_t logical_channel;
- #ifdef CONFIG_SUB_GHZ
- uint8_t channel_page;
- #endif
- #if (CONFIG_SECURE == 1)
- uint8_t security_level;
- uint8_t key_id_mode;
- uint64_t key_source;
- uint8_t key_index;
- #endif
- } mlme_sync_loss_ind_t;
- #if (CONFIG_SYNC_REQ_ENABLED == 1)
- typedef struct
- {
-
- mac_abstract_req_t service;
- uint8_t logical_channel;
- #ifdef CONFIG_SUB_GHZ
- uint8_t channel_page;
- #endif
- bool track_beacon;
- } mlme_sync_req_t;
- extern void mlme_sync_loss_ind(mlme_sync_loss_ind_t * ind);
- void mlme_sync_req(mlme_sync_req_t * req);
- #endif
- #endif
- #endif
|