|
Zephyr API Documentation 4.4.0-rc2
A Scalable Open Source RTOS
|
Driver Operations PWM driver operations More...
#include <zephyr/drivers/pwm.h>
Data Fields | |
| pwm_set_cycles_t | set_cycles |
| REQ Set the period and pulse width for a single PWM output. | |
| pwm_get_cycles_per_sec_t | get_cycles_per_sec |
| REQ Get the clock rate (cycles per second) for a single PWM output. | |
| pwm_configure_capture_t | configure_capture |
| OPT Configure PWM period/pulse width capture for a single PWM input. | |
| pwm_enable_capture_t | enable_capture |
| OPT Enable PWM period/pulse width capture for a single PWM input. | |
| pwm_disable_capture_t | disable_capture |
| OPT Disable PWM period/pulse width capture for a single PWM input. | |
| pwm_manage_event_callback_t | manage_event_callback |
| OPT Add an application event callback. | |
Driver Operations PWM driver operations
This is the driver API structure any PWM 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.
| pwm_configure_capture_t pwm_driver_api::configure_capture |
OPT Configure PWM period/pulse width capture for a single PWM input.
CONFIG_PWM_CAPTURE. | pwm_disable_capture_t pwm_driver_api::disable_capture |
OPT Disable PWM period/pulse width capture for a single PWM input.
CONFIG_PWM_CAPTURE. | pwm_enable_capture_t pwm_driver_api::enable_capture |
OPT Enable PWM period/pulse width capture for a single PWM input.
CONFIG_PWM_CAPTURE. | pwm_get_cycles_per_sec_t pwm_driver_api::get_cycles_per_sec |
REQ Get the clock rate (cycles per second) for a single PWM output.
| pwm_manage_event_callback_t pwm_driver_api::manage_event_callback |
OPT Add an application event callback.
CONFIG_PWM_EVENT. | pwm_set_cycles_t pwm_driver_api::set_cycles |
REQ Set the period and pulse width for a single PWM output.