/**************************************************************************** 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 __PHY_RF_INIT_H__ #define __PHY_RF_INIT_H__ #include "os_types.h" #include "iot_config.h" #ifdef __cplusplus extern "C" { #endif /* phy_rf_init - phy rf init. * @proto - proto, PLC_PROTO_TYPE_xx. * @option - optino, PHY_RF_OPTION_xx. * @channel - channel, PHY_RF_CHANNEL_XX. * @sync_init - set sync init or not. * @auto_rxdc - auto rx dc. * @auto_txdc - auto tx dc. * return void */ void phy_rf_init(uint32_t proto, uint32_t option, uint32_t channel, uint32_t sync_init, uint32_t auto_rxdc, uint32_t auto_txdc); /* phy_rf_wait_init - phy rf wait init done. * @void - void. * return void */ void phy_rf_wait_init(); /* phy_rf_deinit - phy rf deinit. * return void */ void phy_rf_deinit(); /* phy_rf_is_run() - check whether the rf phy management authority is bb cpu. * return: 1 - bb cpu 0 - not bb cpu */ uint8_t phy_rf_is_run(); /* phy_rf_set_channel - phy rf channel. * @channel - channel. * return void */ void phy_rf_set_channel(uint8_t channel); /* phy_rf_reset - phy rf hard reset. * @void - void. * return void */ void phy_rf_reset(); /* phy_rf_new_cfg_apply - apply the cfg already to saved * @void - void. * return void */ void phy_rf_new_cfg_apply(); /* phy_recover_dbg_cnt - phy rf recover dbg cnt. * @void - void. * return void */ void phy_recover_dbg_cnt(); /* phy_record_dbg_cnt - phy rf record dbg cnt. * @void - void. * return void */ void phy_record_dbg_cnt(); /* phy_rf_load_cal_cfg - load rf phy cal data. * @void - void. * return void */ void phy_rf_load_cal_cfg(void); /* phy_rf_set_ps_idle - phy rf set power save idle. * @ps_on - ps_on or not. * return void */ void phy_rf_set_ps_idle(uint32_t ps_on); /* phy_rf_set_init_power - phy rf set init power. * @void - void. * return void */ void phy_rf_set_init_power(); /* phy_rf_in_check - check if it is an RF built-in chip. * @void - void. * return void */ void phy_rf_in_check(void); #ifdef __cplusplus } #endif #endif // !__PHY_RF_INIT_H__