123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- #ifndef PHY_PD_DATA_H_INCLUDED
- #define PHY_PD_DATA_H_INCLUDED
- #include <stdint.h>
- #include <stdbool.h>
- #include "sys_utils.h"
- #include "sys_time.h"
- #include "phy_common.h"
- #include "mac_time.h"
- #include "sys_queue.h"
- typedef struct
- {
-
- uint8_t * psdu;
-
- uint8_t psdu_length;
- } pd_data_req_t;
- typedef struct
- {
-
- bool pending;
- } pd_data_conf_private_t;
- typedef struct
- {
-
- pd_data_conf_private_t service;
-
- phy_enum_t status;
- } pd_data_conf_t;
- typedef struct
- {
-
- int8_t rssi;
-
- uint8_t frame_buffer[PHY_MAX_PACKET_SIZE + PHY_MAX_HEADER_SIZE];
-
- mac_timestamp_t timestamp;
-
- sys_queue_item_t queue_item;
- #ifdef CONFIG_PHY_CERT_CRC_HOOK
- bool crc_status;
- #endif
- } pd_data_ind_private_t;
- typedef struct
- {
-
- pd_data_ind_private_t service;
-
- uint8_t * psdu;
-
- uint8_t psdu_length;
-
- uint8_t ppdu_link_quality;
- } pd_data_ind_t;
- void pd_data_req(pd_data_req_t * req);
- void pd_data_conf(pd_data_conf_t * conf);
- void pd_data_ind(pd_data_ind_t * ind);
- #endif
|