111 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			111 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /****************************************************************************
 | |
| 
 | |
| 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 _MAC_RF_CERT_TEST_H_
 | |
| #define _MAC_RF_CERT_TEST_H_
 | |
| 
 | |
| #include "mac_cert_test_api.h"
 | |
| #include "os_types_api.h"
 | |
| #include "iot_pkt_api.h"
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| #define RF_MT_MODE_HWQ            0  //tdma
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_test_option_channel_cfg() - config option and channel
 | |
|  * @rf_option                                    - rf option, PHY_RF_OPTION_xx.
 | |
|  * @rf_channel                                   - rf channel, PHY_RF_CHANNEL_XX.
 | |
|  * @return void                                  - void.
 | |
|  */
 | |
| void mac_rf_cert_test_option_channel_cfg(uint8_t rf_option,
 | |
|     uint8_t rf_channel);
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_mm_to_lp_cert_switch()  - mac rf mm to lp cert switch config
 | |
|  * @return void                                  - void.
 | |
|  */
 | |
| void mac_rf_mm_to_lp_cert_switch();
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_desc_init()       - mac rf cert desc init
 | |
|  * @return void                          - void.
 | |
|  */
 | |
| void mac_rf_cert_desc_init();
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_test_handle()     - mac rf cert test handle.
 | |
|  * @pdev                                 - the point to pdev.
 | |
|  * @mt_pkt                               - rx pkt.
 | |
|  * @return uint32_t                      - handle pkt, CON_PKT_xx.
 | |
|  */
 | |
| uint32_t mac_rf_cert_test_handle(void *pdev, iot_pkt_t *mt_pkt);
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_loopback_hplc2rf()- mac rf cert loopback hplc2rf.
 | |
|  * @pdev                                 - the point to pdev.
 | |
|  * @mt_pkt                               - rx pkt.
 | |
|  * @return uint32_t                      - handle pkt, CON_PKT_xx.
 | |
|  */
 | |
| uint32_t mac_rf_cert_loopback_hplc2rf(void *pdev, iot_pkt_t *mt_pkt);
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_loopback_handle() - mac rf cert loopback handle.
 | |
|  * @pdev                                 - the point to pdev.
 | |
|  * @mt_pkt                               - rx pkt.
 | |
|  * @return uint32_t                      - handle pkt, CON_PKT_xx.
 | |
|  */
 | |
| uint32_t mac_rf_cert_loopback_handle(void *pdev, iot_pkt_t *mt_pkt);
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_test_set_phy_hplc2rf_lp() - mac rf cert set phy hplc2rf mode.
 | |
|  * @phr_mcs                                      - phy mcs.
 | |
|  * @pld_mcs                                      - pld mcs.
 | |
|  * @pb_idx                                       - pb idx.
 | |
|  * @return uint32_t                              - uint32_t.
 | |
|  */
 | |
| uint32_t mac_rf_cert_test_set_phy_hplc2rf_lp(uint8_t phr_mcs, uint8_t pld_mcs,
 | |
|     uint8_t pb_idx);
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_mode_cfg()          - mac rf cert mode set.
 | |
|  * @cert_mode                              - certification mode.
 | |
|  * @return void                            - void.
 | |
|  */
 | |
| void mac_rf_cert_mode_cfg(uint32_t cert_mode);
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_flag_cfg()          - mac rf cert flag config.
 | |
|  * @void                                   - void.
 | |
|  * @return void                            - void.
 | |
|  */
 | |
| void mac_rf_cert_flag_cfg();
 | |
| 
 | |
| /*
 | |
|  * @brief  mac_rf_cert_set_pb_hdr_to_buf() - mac rf cert set pb hdr to buf.
 | |
|  * @value                                  - set pb hdr to buf or not.
 | |
|  * @return void                            - void.
 | |
|  */
 | |
| void mac_rf_cert_set_pb_hdr_to_buf(uint32_t value);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif /* _MAC_RF_CERT_TEST_H_ */
 | |
| 
 |