|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
PWM event callback structure. More...
#include <zephyr/drivers/pwm.h>
Data Fields | |
| pwm_event_callback_handler_t | handler |
| Actual callback function being called when relevant. | |
| uint32_t | channel |
| Channel the callback is interested in. | |
| pwm_events_t | event_mask |
| A mask of events the callback is interested in. | |
PWM event callback structure.
Used to register an event callback in the driver instance callback list. As many callbacks as needed can be added as long as each of them are unique pointers of struct pwm_event_callback. Beware such structure should not be allocated on stack.
Note: to help setting it, see pwm_init_event_callback().
| uint32_t pwm_event_callback::channel |
Channel the callback is interested in.
| pwm_events_t pwm_event_callback::event_mask |
A mask of events the callback is interested in.
| pwm_event_callback_handler_t pwm_event_callback::handler |
Actual callback function being called when relevant.