|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
NXP Grouped GPIO Input Interrupt (GINT) driver API. More...
Go to the source code of this file.
Data Structures | |
| struct | nxp_gint_group_config |
| GINT group configuration. More... | |
Typedefs | |
| typedef void(* | nxp_gint_callback_t) (const struct device *dev, void *user_data) |
| GINT callback function type. | |
Enumerations | |
| enum | nxp_gint_trigger_type { NXP_GINT_TRIG_EDGE = 0 , NXP_GINT_TRIG_LEVEL = 1 } |
| GINT trigger types. More... | |
| enum | nxp_gint_combination_type { NXP_GINT_COMB_OR = 0 , NXP_GINT_COMB_AND = 1 } |
| GINT combination logic. More... | |
| enum | nxp_gint_polarity_type { NXP_GINT_POL_LOW = 0 , NXP_GINT_POL_HIGH = 1 } |
| GINT pin polarity. More... | |
Functions | |
| int | nxp_gint_configure_group (const struct device *dev, const struct nxp_gint_group_config *config) |
| Configure GINT settings. | |
| int | nxp_gint_enable_pin (const struct device *dev, uint8_t port, uint8_t pin, nxp_gint_polarity_type polarity) |
| Enable a pin for GINT. | |
| int | nxp_gint_disable_pin (const struct device *dev, uint8_t port, uint8_t pin) |
| Disable a pin for GINT. | |
| bool | nxp_gint_is_pending (const struct device *dev) |
| Check if GINT interrupt is pending. | |
| int | nxp_gint_clear_pending (const struct device *dev) |
| Clear GINT interrupt pending status. | |
| int | nxp_gint_register_callback (const struct device *dev, nxp_gint_callback_t callback, void *user_data) |
| Register GINT callback. | |
NXP Grouped GPIO Input Interrupt (GINT) driver API.
| typedef void(* nxp_gint_callback_t) (const struct device *dev, void *user_data) |
GINT callback function type.
| dev | GINT device |
| user_data | User defined data |
| int nxp_gint_clear_pending | ( | const struct device * | dev | ) |
Clear GINT interrupt pending status.
| dev | GINT device |
| int nxp_gint_configure_group | ( | const struct device * | dev, |
| const struct nxp_gint_group_config * | config ) |
Configure GINT settings.
| dev | GINT device |
| config | Group configuration |
Disable a pin for GINT.
| dev | GINT device |
| port | Port number |
| pin | Pin number (0-31) |
| int nxp_gint_enable_pin | ( | const struct device * | dev, |
| uint8_t | port, | ||
| uint8_t | pin, | ||
| nxp_gint_polarity_type | polarity ) |
Enable a pin for GINT.
| dev | GINT device |
| port | Port number |
| pin | Pin number (0-31) |
| polarity | Pin polarity |
Check if GINT interrupt is pending.
| dev | GINT device |
| int nxp_gint_register_callback | ( | const struct device * | dev, |
| nxp_gint_callback_t | callback, | ||
| void * | user_data ) |
Register GINT callback.
| dev | GINT device |
| callback | Callback function to register |
| user_data | User defined data to pass to callback |