/**************************************************************************** Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED. This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT be copied by any method or incorporated into another program without the express written consent of Aerospace C.Power. This Information or any portion thereof remains the property of Aerospace C.Power. The Information contained herein is believed to be accurate and Aerospace C.Power assumes no responsibility or liability for its use in any way and conveys no license or title under any patent or copyright and makes no representation or warranty that this Information is free from patent or copyright infringement. ****************************************************************************/ #ifndef RX_MPDU_START_H #define RX_MPDU_START_H #include "os_types.h" #include "mpdu_frame.h" #include "plc_fr.h" #include "hw_phy_api.h" #ifdef __cplusplus extern "C" { #endif typedef struct _rx_attention { uint32_t rx_mpdu_done : 1, // 0 pb_bitmap : 4, // 1-4 encrypted : 1, // 5 is_phyerr : 1, // 6 is_overflow : 1, // 7 is_fcserr : 1, // 8 rx_buf_num : 4, // 9-12 directed : 1, // 13 ring_id : 3, // 14-16 pb_num : 4, // 17-20 rx_port : 2, // 21-22 rx_phase : 2, // 23-24 rx_band_sel : 2, // 25-26 rx_abort : 1, // 27 rx_proto : 2, // 28-29 resv : 2; // 30-31 } rx_attention; typedef struct _rx_mpdu_start { union { hpav_frame_control hpav_fc; frame_control_t sg_fc; spg_frame_control_t spg_fc; i1901_frame_control_t i1901_fc; } fc; /* should be exactly 16 bytes */ iot_phy_info_t phy; uint32_t key_idx : 4, mgmt_type : 1, directed : 1, ring_id : 3, pb_num : 3, resv0 : 1, rx_proto : 2, rx_port : 2, rx_phase : 2, rx_band_sel : 2, aes_key_idx : 9, rate_mode : 2; } rx_mpdu_start; #ifdef __cplusplus } #endif #endif // !RX_MPDU_START_H