![]() |
Zephyr API 4.4.99
A Scalable Open Source RTOS
|
#include <stdbool.h>#include <stdint.h>#include <errno.h>#include <zephyr/devicetree.h>#include <zephyr/drivers/pwm.h>#include <zephyr/sys/__assert.h>#include <zephyr/sys/slist.h>Go to the source code of this file.
Functions | |
| static int | pwm_manage_event_callback (sys_slist_t *callbacks, struct pwm_event_callback *callback, bool set) |
| Generic function to insert or remove a callback from a callback list. | |
| static void | pwm_fire_event_callbacks (sys_slist_t *list, const struct device *dev, uint32_t channel, pwm_events_t events) |
| Generic function to go through and fire callback from a callback lists. | |
|
inlinestatic |
Generic function to go through and fire callback from a callback lists.
| list | A pointer on the pwm event callback list. |
| dev | A pointer on the pwm driver instance. |
| channel | The channel that fired the interrupt. |
| events | The event that fired the interrupt. |
|
inlinestatic |
Generic function to insert or remove a callback from a callback list.
| callbacks | A pointer to the original list of callbacks (can be NULL). |
| callback | A pointer of the callback to insert or remove from the list. |
| set | A boolean indicating insertion or removal of the callback. |
| 0 | on success. |
| negate | errno on failure. |