80 lines
2.4 KiB
C
Executable File
80 lines
2.4 KiB
C
Executable File
/****************************************************************************
|
|
|
|
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_TX_POWER_H
|
|
#define MAC_RF_TX_POWER_H
|
|
|
|
#include "os_types.h"
|
|
#include "os_timer_api.h"
|
|
#include "phy_txrx_pwr.h"
|
|
#include "mac_rf_vdev.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if HPLC_RF_DEV_SUPPORT
|
|
|
|
/*
|
|
* mac_rf_fix_power_apply() - mac rf high power apply.
|
|
* @void: - void.
|
|
* return: - void.
|
|
*/
|
|
void mac_rf_fix_power_apply();
|
|
|
|
/*
|
|
* mac_rf_set_tx_power_cap() - mac rf set tx power cap.
|
|
* @rf_vdev_ptr: - point to rf vdev.
|
|
* @power: - rf power. unit dbm.
|
|
* @is_force: - force to set power.
|
|
* return: - void.
|
|
*/
|
|
void mac_rf_set_tx_power_cap(mac_rf_vdev_t *rf_vdev_ptr, int8_t power,
|
|
uint8_t is_force);
|
|
|
|
/*
|
|
* mac_rf_fix_power_init() - mac rf fix power init.
|
|
* @void: - void.
|
|
* return: - void.
|
|
*/
|
|
void mac_rf_fix_power_init();
|
|
|
|
/*
|
|
* mac_rf_tx_power_comen_en() - enable/disable the rf tx power temperature
|
|
* compensation function.
|
|
* @en: - 1: enable, 0: disable.
|
|
*/
|
|
void mac_rf_tx_power_comen_en(uint8_t en);
|
|
|
|
#else /* HPLC_RF_DEV_SUPPORT */
|
|
|
|
#define mac_rf_fix_power_apply()
|
|
|
|
#define mac_rf_set_tx_power_cap(rf_vdev_ptr, power, is_force) \
|
|
do { \
|
|
(void)(rf_vdev_ptr); \
|
|
(void)(power); \
|
|
(void)(is_force); \
|
|
} while(0);
|
|
|
|
#define mac_rf_tx_power_comen_en(en)
|
|
|
|
#endif /* HPLC_RF_DEV_SUPPORT */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|