Files
kunlun/plc/halphy/inc/phy_pm.h

76 lines
1.4 KiB
C
Raw Normal View History

2024-09-28 14:24:04 +08:00
#ifndef __PHY_PM_H
#define __PHY_PM_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
PHY_PM_BIAS_SEL_25UA,
PHY_PM_BIAS_SEL_50UA
} phy_pm_bias_sel_id;
typedef enum {
PHY_PM_BIAS_ADJ_IR,
PHY_PM_BIAS_ADJ_IC
} phy_pm_bias_adj_id;
typedef enum {
PHY_PM_BIAS_ADJ_31P25UA,
PHY_PM_BIAS_ADJ_25UA,
PHY_PM_BIAS_ADJ_18P75UA
} phy_pm_bias_adj_current_id;
typedef enum {
PHY_PM_PWR_STS_TXRX = 0,
PHY_PM_PWR_STS_RX,
PHY_PM_PWR_STS_TX
} phy_pm_pwr_sts_id;
/**
*@brief phy_pm_start.
* power manager start, enable low power config.
*
*@param none [none.]
*@exception [none.]
*@return [none.]
*/
void phy_pm_start();
/**
*@brief phy_pm_start.
* config bias current to normal status for tx pkt.
*
*@param none [none.]
*@exception [none.]
*@return [none.]
*/
void phy_bias_tx_set();
/**
*@brief phy_pm_pwr_update.
* update current pm status.
*
*@param id [power status will be set.]
*@exception [none.]
*@return [ERR_OK or others fail.]
*/
uint32_t phy_pm_pwr_update(phy_pm_pwr_sts_id id);
/**
*@brief phy_bias_init_lic_io.
* init lic gpio.
*
*@param none [none.]
*@exception [none.]
*@return [none.]
*/
void phy_bias_init_lic_io();
#ifdef __cplusplus
}
#endif
#endif