RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_regulator_ops结构体 参考

#include <regulator.h>

成员变量

rt_err_t(* enable )(struct rt_regulator_node *reg)
 
rt_err_t(* disable )(struct rt_regulator_node *reg)
 
rt_bool_t(* is_enabled )(struct rt_regulator_node *reg)
 
rt_err_t(* set_voltage )(struct rt_regulator_node *reg, int min_uvolt, int max_uvolt)
 
int(* get_voltage )(struct rt_regulator_node *reg)
 
rt_err_t(* set_mode )(struct rt_regulator_node *reg, rt_uint32_t mode)
 
rt_int32_t(* get_mode )(struct rt_regulator_node *reg)
 
rt_err_t(* set_ramp_delay )(struct rt_regulator_node *reg, int ramp)
 
rt_uint32_t(* enable_time )(struct rt_regulator_node *reg)
 

详细描述

在文件 regulator.h78 行定义.

结构体成员变量说明

◆ enable

rt_err_t(* rt_regulator_ops::enable) (struct rt_regulator_node *reg)

在文件 regulator.h80 行定义.

◆ disable

rt_err_t(* rt_regulator_ops::disable) (struct rt_regulator_node *reg)

在文件 regulator.h81 行定义.

◆ is_enabled

rt_bool_t(* rt_regulator_ops::is_enabled) (struct rt_regulator_node *reg)

在文件 regulator.h82 行定义.

◆ set_voltage

rt_err_t(* rt_regulator_ops::set_voltage) (struct rt_regulator_node *reg, int min_uvolt, int max_uvolt)

在文件 regulator.h83 行定义.

◆ get_voltage

int(* rt_regulator_ops::get_voltage) (struct rt_regulator_node *reg)

在文件 regulator.h84 行定义.

◆ set_mode

rt_err_t(* rt_regulator_ops::set_mode) (struct rt_regulator_node *reg, rt_uint32_t mode)

在文件 regulator.h85 行定义.

◆ get_mode

rt_int32_t(* rt_regulator_ops::get_mode) (struct rt_regulator_node *reg)

在文件 regulator.h86 行定义.

◆ set_ramp_delay

rt_err_t(* rt_regulator_ops::set_ramp_delay) (struct rt_regulator_node *reg, int ramp)

在文件 regulator.h87 行定义.

◆ enable_time

rt_uint32_t(* rt_regulator_ops::enable_time) (struct rt_regulator_node *reg)

在文件 regulator.h88 行定义.