Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pwm_event_callback Struct Reference

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.

Detailed Description

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().

Field Documentation

◆ channel

uint32_t pwm_event_callback::channel

Channel the callback is interested in.

◆ event_mask

pwm_events_t pwm_event_callback::event_mask

A mask of events the callback is interested in.

◆ handler

pwm_event_callback_handler_t pwm_event_callback::handler

Actual callback function being called when relevant.


The documentation for this struct was generated from the following file: