Go to the source code of this file.
◆ pwm_fire_event_callbacks()
Generic function to go through and fire callback from a callback lists.
- Parameters
-
| 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. |
◆ pwm_manage_event_callback()
Generic function to insert or remove a callback from a callback list.
- Parameters
-
| 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. |
- Return values
-
| 0 | on success. |
| negate | errno on failure. |