Go to the source code of this file.
◆ GPIO_PORT_PIN_MASK_FROM_DT_INST
Make a bitmask of allowed GPIOs from a DT_DRV_COMPAT instance's GPIO "gpio-reserved-ranges" and "ngpios" DT properties values.
- Parameters
-
| inst | DT_DRV_COMPAT instance number |
- Returns
- the bitmask of allowed gpios
- See also
- GPIO_DT_PORT_PIN_MASK_NGPIOS_EXC()
◆ GPIO_PORT_PIN_MASK_FROM_DT_NODE
Makes a bitmask of allowed GPIOs from the "gpio-reserved-ranges" and "ngpios" DT properties values.
- Parameters
-
| node_id | GPIO controller node identifier. |
- Returns
- the bitmask of allowed gpios
- See also
- GPIO_DT_PORT_PIN_MASK_NGPIOS_EXC()
◆ GPIO_PORT_PIN_MASK_FROM_NGPIOS
◆ gpio_fire_callbacks()
Generic function to go through and fire callback from a callback list.
- Parameters
-
| list | A pointer on the gpio callback list |
| port | A pointer on the gpio driver instance |
| pins | The actual pin mask that triggered the interrupt |
◆ gpio_manage_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 |
- Returns
- 0 on success, negative errno otherwise.