|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Renesas RX group interrupt controller driver API. More...
Go to the source code of this file.
Functions | |
| int | rx_icum_grp_irq_enable (const struct device *dev, uint8_t factor) |
| Enable a group interrupt factor. | |
| int | rx_icum_grp_irq_disable (const struct device *dev, uint8_t factor) |
| Disable a group interrupt factor. | |
| int | rx_icum_grp_irq_callback_set (const struct device *dev, uint8_t factor, void(*callback)(void), void *context) |
| Set the callback of a group interrupt factor. | |
| int | rx_icum_grp_irq_gen_set (const struct device *dev, uint8_t factor, bool set) |
| Set or clear the GEN bit of a group interrupt factor. | |
Renesas RX group interrupt controller driver API.
| int rx_icum_grp_irq_callback_set | ( | const struct device * | dev, |
| uint8_t | factor, | ||
| void(* | callback )(void), | ||
| void * | context ) |
Set the callback of a group interrupt factor.
Must be called before rx_icum_grp_irq_enable() or rx_icum_grp_irq_gen_set().
| dev | Group interrupt controller device. |
| factor | Interrupt factor (bit position in the group), 0 to 31. |
| callback | Function called when the factor triggers. |
| context | User context for the callback. |
| 0 | On success. |
| -EINVAL | factor is out of range or callback is NULL. |
Disable a group interrupt factor.
Clears the factor's enable bit in the group interrupt request enable register (GENxx). The group interrupt vector is disabled in the ICU only when no other factor of the group is enabled.
| dev | Group interrupt controller device. |
| factor | Interrupt factor (bit position in the group), 0 to 31. |
| 0 | On success. |
| -EINVAL | factor is out of range. |
Enable a group interrupt factor.
Sets the factor's enable bit in the group interrupt request enable register (GENxx) and enables the group interrupt vector in the ICU. The callback of the factor must be registered with rx_icum_grp_irq_callback_set() first.
| dev | Group interrupt controller device. |
| factor | Interrupt factor (bit position in the group), 0 to 31. |
| 0 | On success. |
| -EINVAL | factor is out of range or no callback is set for factor. |
Set or clear the GEN bit of a group interrupt factor.
Only the factor's GEN bit is written: the group vector is not enabled or disabled and a pending status is not cleared. The callback must be set with rx_icum_grp_irq_callback_set() first.
| dev | Group interrupt controller device. |
| factor | Interrupt factor (bit position in the group), 0 to 31. |
| set | true to set the GEN bit, false to clear it. |
| 0 | On success. |
| -EINVAL | factor is out of range, or set is true and no callback is set for factor. |