Files
kunlun/plc/halphy/hw2/inc/phy_nf.h

89 lines
2.0 KiB
C
Raw Permalink Normal View History

2024-09-28 14:24:04 +08:00
#ifndef __PHY_NF_H
#define __PHY_NF_H
#ifdef __cplusplus
extern "C" {
#endif
#define PHY_SNR_CAL_TIMER_PERIOD (1000)
#define PHY_NF_RST_VAL (121)
/**
* @brief phy_nf_timer_start
* init phy timer interrupt and register handler function.
* @param none [none.]
* @return [false or others true.]
*/
uint32_t phy_nf_timer_start();
/**
* @brief phy_agc_acc_dly_get
* update agc acc dly depend on ACC_STEP_HS.
* @param none [none.]
* @return [dly time for nf cal.]
*/
uint8_t phy_agc_acc_dly_get(void);
/**
*@brief register_phy_call_mac_dsr_cb.
*
* Register callback function for phy call mac api.
*
*@param cb [void]
*@exception [void]
*@return [void]
*/
typedef void (*phy_call_mac_dsr_cb_t)();
void register_phy_call_mac_dsr_cb(phy_call_mac_dsr_cb_t cb);
/**
*@brief phy_call_mac_spur_cb_t.
*
* Register callback function for phy call mac api.
*
*@param cb [void]
*@exception [void]
*@return [void]
*/
typedef void (*phy_call_mac_spur_cb_t)();
void register_phy_call_mac_spur_cb(phy_call_mac_spur_cb_t cb);
/**
*@brief phy_call_mac_band_scan_cb_t.
*
* Register callback function for phy call mac band scan api.
*
*@param cb [void]
*@exception [void]
*@return [void]
*/
typedef void (*phy_call_mac_scan_band_cb_t)();
void register_phy_call_mac_scan_band_cb(phy_call_mac_scan_band_cb_t cb);
/**
* @brief phy_snr_cal_timer_handler phy timer call function.
* @param none [none.]
* @return [void.]
*/
void phy_snr_cal_timer_handler();
/**
* @brief phy_cal_nf_systick_stop phy cal nf systick stop.
* @param none [none.]
* @return [void.]
*/
void phy_cal_nf_systick_stop();
/**
* @brief phy_cal_nf_on_3phase phy cal nf on 3 phase.
* @param none [none.]
* @return [void.]
*/
void phy_cal_nf_on_3phase();
#ifdef __cplusplus
}
#endif
#endif