|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Driver Operations Regulator driver operations More...
#include <zephyr/drivers/regulator.h>
Driver Operations Regulator driver operations
This is the driver API structure any Regulator driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.
Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.
| regulator_count_current_limits_t regulator_driver_api::count_current_limits |
OPT Obtain the number of supported current limit levels.
| regulator_count_voltages_t regulator_driver_api::count_voltages |
OPT Obtain the number of supported voltage levels.
| regulator_disable_t regulator_driver_api::disable |
OPT Disable a regulator.
| regulator_enable_t regulator_driver_api::enable |
OPT Enable a regulator.
| regulator_get_active_discharge_t regulator_driver_api::get_active_discharge |
OPT Get active discharge setting.
| regulator_get_current_limit_t regulator_driver_api::get_current_limit |
OPT Get output current limit.
| regulator_get_error_flags_t regulator_driver_api::get_error_flags |
OPT Get active error flags.
| regulator_get_mode_t regulator_driver_api::get_mode |
OPT Get mode.
| regulator_get_voltage_t regulator_driver_api::get_voltage |
OPT Obtain output voltage.
| regulator_list_current_limit_t regulator_driver_api::list_current_limit |
OPT Obtain the value of a current limit given an index.
| regulator_list_voltage_t regulator_driver_api::list_voltage |
OPT Obtain the value of a voltage given an index.
| regulator_set_active_discharge_t regulator_driver_api::set_active_discharge |
OPT Set active discharge setting.
| regulator_set_callback_t regulator_driver_api::set_callback |
OPT Set event handler function.
| regulator_set_current_limit_t regulator_driver_api::set_current_limit |
OPT Set output current limit.
| regulator_set_mode_t regulator_driver_api::set_mode |
OPT Set mode.
| regulator_set_voltage_t regulator_driver_api::set_voltage |
OPT Set the output voltage.