Files
kunlun/plc/inc/mac_cert_test_api.h

78 lines
2.6 KiB
C
Raw Normal View History

2024-09-28 14:24:04 +08:00
/****************************************************************************
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_CERT_TEST_API_H
#define MAC_CERT_TEST_API_H
#include "os_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief mac_cert_test_band_cfg_ex() - config freq band for cert test mode.
* @param band_id: - band id to be configured
* @retval 0: - for scuccess case
* @retval otherwise: - error code
*/
uint32_t mac_cert_test_band_cfg_ex(uint8_t band_id);
/**
* @brief mac_cert_test_band_cfg_ex() - config tonemask for cert test mode.
* @param band_id: - tonemask id to be configured
* @retval 0: - for scuccess case
* @retval otherwise: - error code
*/
uint32_t mac_cert_test_tonemask_cfg_ex(uint8_t tonemask_id);
/*
* mac_cert_test_mode_sel_ex() - cvg call msg for mode sel cfg .
*/
uint32_t mac_cert_test_mode_sel_ex(uint8_t mt_mode_sel);
/*
* mac_cert_test_hplc2rf_lp_cfg_ex() - config hplc to rf loopback
* mode parameters.
* @param phr_mcs: - phr_mcs to be configured
* @param psdu_mcs: - psdu_mcs to be configured
* @param pb_size: - pb_size id to be configured
* @retval 0: - for scuccess case
* @retval otherwise: - error code
*/
uint32_t mac_cert_test_hplc2rf_lp_cfg_ex(uint8_t phr_mcs,
uint8_t psdu_mcs, uint8_t pb_size);
/*
* mac_cert_test_sec_mode_sel_ex() - select security mode for cert test.
* @param mode: - mode code, see CERT_TEST_SEC_MODE_XXX.
* @retval 0: - for scuccess case
* @retval otherwise: - error code
*/
uint32_t mac_cert_test_sec_mode_sel_ex(uint8_t mode);
/*
* mac_cert_test_rf_cfg_ex() - config rf info for cert test.
* @param rf_option: - rf option
* @param rf_channel: - rf channel
* @retval 0: - for scuccess case
* @retval otherwise: - error code
*/
uint32_t mac_cert_test_rf_cfg_ex(uint8_t option, uint8_t channel);
#ifdef __cplusplus
}
#endif
#endif