WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
lpm_dev_ops.c 文件参考
#include "lpm_dev_ops.h"
#include "securec.h"
#include "irmalloc.h"
#include "soc_osal.h"
lpm_dev_ops.c 的引用(Include)关系图:

宏定义

#define ops_(a, b)   ((a) ? (a) : (b))
 

函数

bool lpm_dev_ops_init (void)
 The peripheral device operations init.
 
bool lpm_dev_ops_deinit (void)
 The peripheral device operations deinit.
 
bool lpm_dev_ops_register (lpm_dev_id_t id, lpm_dev_ops_t *ops)
 Register low-power operation interface of the peripheral device.
 
bool lpm_dev_ops_unregister (lpm_dev_id_t id)
 Deregister low-power operation interface of the peripheral device.
 
int lpm_dev_ops_update (lpm_dev_id_t id, lpm_dev_ops_t *ops)
 Update the operation function of the device.
 
int lpm_dev_power_on (lpm_dev_id_t id, bool on)
 Power on or power off the peripheral device.
 
int lpm_dev_get_power_sts (lpm_dev_id_t id)
 Get the power status of peripheral Devices.
 
int lpm_dev_set_voltage (lpm_dev_id_t id, int vset)
 Config the peripheral device voltage.
 
int lpm_dev_get_voltage (lpm_dev_id_t id)
 Get the voltage of peripheral device.
 
int lpm_dev_clock_en (lpm_dev_id_t id, bool on)
 Enable or disable the device clock switch.
 
int lpm_dev_get_clock_sts (lpm_dev_id_t id)
 Get the device clock switch status.
 
int lpm_dev_set_freq (lpm_dev_id_t id, int freq)
 Set the clock frequency of the peripheral device.
 
int lpm_dev_get_freq (lpm_dev_id_t id)
 Get the clock frequency of the peripheral device.
 
int lpm_dev_set_div_num (lpm_dev_id_t id, int clk_div)
 Set the divider number of the peripheral device clock.
 
int lpm_dev_get_div_num (lpm_dev_id_t id)
 Get the divider number of the peripheral device clock.
 
int lpm_dev_sub_bus_clken (lpm_dev_id_t id, int bus, bool on)
 Enables or disables the clock of a subdevice.
 
void lpm_display_clocks_init_register_callback (lpm_clock_init_callback callback)
 Registering the callback function for clock initialization configuration of the display module.
 
void lpm_display_clocks_init (void)
 Clock initialization configuration of the display module.
 

宏定义说明

◆ ops_

#define ops_ (   a,
 
)    ((a) ? (a) : (b))