WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
lpm_dev_ops_t结构体 参考

The peripheral device operation functions. 更多...

#include <lpm_dev_ops.h>

成员变量

int(* power_on )(bool)
 
int(* power_sts )(void)
 
int(* set_voltage )(int)
 
int(* get_voltage )(void)
 
int(* clock_en )(bool)
 
int(* clock_sts )(void)
 
int(* set_freq )(int)
 
int(* get_freq )(void)
 
int(* set_div_num )(int)
 
int(* get_div_num )(void)
 
int(* sub_clken )(int, bool)
 
int(* resume )(void)
 
int(* suspend )(void)
 

详细描述

The peripheral device operation functions.

注解
The functions are registered by pmu/clocks and is used by peripheral devices.

结构体成员变量说明

◆ clock_en

int(* lpm_dev_ops_t::clock_en) (bool)

Enable or disable the device clock switch.

◆ clock_sts

int(* lpm_dev_ops_t::clock_sts) (void)

Get the device clock switch status.

◆ get_div_num

int(* lpm_dev_ops_t::get_div_num) (void)

Get the clock frequency divider of the device.

◆ get_freq

int(* lpm_dev_ops_t::get_freq) (void)

Get the clock frequency of the device.

◆ get_voltage

int(* lpm_dev_ops_t::get_voltage) (void)

Get the device voltage.

◆ power_on

int(* lpm_dev_ops_t::power_on) (bool)

Power on or power off the device.

◆ power_sts

int(* lpm_dev_ops_t::power_sts) (void)

Get the device power status.

◆ resume

int(* lpm_dev_ops_t::resume) (void)

Resume the device.

◆ set_div_num

int(* lpm_dev_ops_t::set_div_num) (int)

Set the clock frequency divider of the device.

◆ set_freq

int(* lpm_dev_ops_t::set_freq) (int)

Set the clock frequency of the device.

◆ set_voltage

int(* lpm_dev_ops_t::set_voltage) (int)

Config the device voltage.

◆ sub_clken

int(* lpm_dev_ops_t::sub_clken) (int, bool)

Enables or disables the clock of a subdevice.

◆ suspend

int(* lpm_dev_ops_t::suspend) (void)

Suspend the device.


该结构体的文档由以下文件生成: