![]() |
nrfx 4.5.0
|
Hardware access layer with cache and barrier support for managing the GPIOTE peripheral. More...
Macros | |
| #define | NRFY_GPIOTE_HAS_LATENCY 1 |
Functions | |
| NRFY_STATIC_INLINE void | nrfy_gpiote_int_init (NRF_GPIOTE_Type *p_reg, uint32_t mask, uint8_t irq_priority, bool enable, uint32_t channels_number) |
| Function for initializing the specified GPIOTE interrupts. | |
| NRFY_STATIC_INLINE uint32_t | nrfy_gpiote_events_process (NRF_GPIOTE_Type *p_reg, uint32_t mask, uint32_t channels_number) |
| Function for processing the specified GPIOTE events. | |
| NRFY_STATIC_INLINE void | nrfy_gpiote_task_trigger (NRF_GPIOTE_Type *p_reg, nrf_gpiote_task_t task) |
| NRFY_STATIC_INLINE uint32_t | nrfy_gpiote_task_address_get (NRF_GPIOTE_Type const *p_reg, nrf_gpiote_task_t task) |
| NRFY_STATIC_INLINE bool | nrfy_gpiote_event_check (NRF_GPIOTE_Type const *p_reg, nrf_gpiote_event_t event) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_event_clear (NRF_GPIOTE_Type *p_reg, nrf_gpiote_event_t event) |
| NRFY_STATIC_INLINE uint32_t | nrfy_gpiote_event_address_get (NRF_GPIOTE_Type const *p_reg, nrf_gpiote_event_t event) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_int_enable (NRF_GPIOTE_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_int_disable (NRF_GPIOTE_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE uint32_t | nrfy_gpiote_int_enable_check (NRF_GPIOTE_Type const *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_subscribe_set (NRF_GPIOTE_Type *p_reg, nrf_gpiote_task_t task, uint8_t channel) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_subscribe_clear (NRF_GPIOTE_Type *p_reg, nrf_gpiote_task_t task) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_publish_set (NRF_GPIOTE_Type *p_reg, nrf_gpiote_event_t event, uint8_t channel) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_publish_clear (NRF_GPIOTE_Type *p_reg, nrf_gpiote_event_t event) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_event_enable (NRF_GPIOTE_Type *p_reg, uint32_t idx) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_event_disable (NRF_GPIOTE_Type *p_reg, uint32_t idx) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_event_configure (NRF_GPIOTE_Type *p_reg, uint32_t idx, uint32_t pin, nrf_gpiote_polarity_t polarity) |
| NRFY_STATIC_INLINE uint32_t | nrfy_gpiote_event_pin_get (NRF_GPIOTE_Type const *p_reg, uint32_t idx) |
| NRFY_STATIC_INLINE nrf_gpiote_polarity_t | nrfy_gpiote_event_polarity_get (NRF_GPIOTE_Type const *p_reg, uint32_t idx) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_task_enable (NRF_GPIOTE_Type *p_reg, uint32_t idx) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_task_disable (NRF_GPIOTE_Type *p_reg, uint32_t idx) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_task_configure (NRF_GPIOTE_Type *p_reg, uint32_t idx, uint32_t pin, nrf_gpiote_polarity_t polarity, nrf_gpiote_outinit_t init_val) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_task_force (NRF_GPIOTE_Type *p_reg, uint32_t idx, nrf_gpiote_outinit_t init_val) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_te_default (NRF_GPIOTE_Type *p_reg, uint32_t idx) |
| NRFY_STATIC_INLINE bool | nrfy_gpiote_te_is_enabled (NRF_GPIOTE_Type const *p_reg, uint32_t idx) |
| NRFY_STATIC_INLINE nrf_gpiote_task_t | nrfy_gpiote_out_task_get (uint8_t index) |
| NRFY_STATIC_INLINE nrf_gpiote_task_t | nrfy_gpiote_set_task_get (uint8_t index) |
| NRFY_STATIC_INLINE nrf_gpiote_task_t | nrfy_gpiote_clr_task_get (uint8_t index) |
| NRFY_STATIC_INLINE nrf_gpiote_event_t | nrfy_gpiote_in_event_get (uint8_t index) |
| NRFY_STATIC_INLINE void | nrfy_gpiote_latency_set (NRF_GPIOTE_Type *p_reg, nrf_gpiote_latency_t latency) |
| NRFY_STATIC_INLINE nrf_gpiote_latency_t | nrfy_gpiote_latency_get (NRF_GPIOTE_Type const *p_reg) |
Hardware access layer with cache and barrier support for managing the GPIOTE peripheral.
| #define NRFY_GPIOTE_HAS_LATENCY 1 |
| NRFY_STATIC_INLINE nrf_gpiote_task_t nrfy_gpiote_clr_task_get | ( | uint8_t | index | ) |
| [in] | index | Channel index. |
| NRFY_STATIC_INLINE uint32_t nrfy_gpiote_event_address_get | ( | NRF_GPIOTE_Type const * | p_reg, |
| nrf_gpiote_event_t | event ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event. |
| NRFY_STATIC_INLINE bool nrfy_gpiote_event_check | ( | NRF_GPIOTE_Type const * | p_reg, |
| nrf_gpiote_event_t | event ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event. |
| true | The event is set. |
| false | The event is not set. |
| NRFY_STATIC_INLINE void nrfy_gpiote_event_clear | ( | NRF_GPIOTE_Type * | p_reg, |
| nrf_gpiote_event_t | event ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event. |
| NRFY_STATIC_INLINE void nrfy_gpiote_event_configure | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | idx, | ||
| uint32_t | pin, | ||
| nrf_gpiote_polarity_t | polarity ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| [in] | pin | Pin associated with event. |
| [in] | polarity | Transition that should generate an event. |
| NRFY_STATIC_INLINE void nrfy_gpiote_event_disable | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | idx ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| NRFY_STATIC_INLINE void nrfy_gpiote_event_enable | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | idx ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| NRFY_STATIC_INLINE uint32_t nrfy_gpiote_event_pin_get | ( | NRF_GPIOTE_Type const * | p_reg, |
| uint32_t | idx ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| NRFY_STATIC_INLINE nrf_gpiote_polarity_t nrfy_gpiote_event_polarity_get | ( | NRF_GPIOTE_Type const * | p_reg, |
| uint32_t | idx ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| NRFY_STATIC_INLINE uint32_t nrfy_gpiote_events_process | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | mask, | ||
| uint32_t | channels_number ) |
Function for processing the specified GPIOTE events.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of events to be processed, created by NRFY_EVENT_TO_INT_BITMASK(). |
| [in] | channels_number | Number of channels for specified GPIOTE peripheral. |
| NRFY_STATIC_INLINE nrf_gpiote_event_t nrfy_gpiote_in_event_get | ( | uint8_t | index | ) |
| [in] | index | Channel index. |
| NRFY_STATIC_INLINE void nrfy_gpiote_int_disable | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | mask ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be disabled. Use nrf_gpiote_int_t values for bit masking. |
| NRFY_STATIC_INLINE void nrfy_gpiote_int_enable | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | mask ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be enabled. Use nrf_gpiote_int_t values for bit masking. |
| NRFY_STATIC_INLINE uint32_t nrfy_gpiote_int_enable_check | ( | NRF_GPIOTE_Type const * | p_reg, |
| uint32_t | mask ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be checked. Use nrf_gpiote_int_t values for bit masking. |
| NRFY_STATIC_INLINE void nrfy_gpiote_int_init | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | mask, | ||
| uint8_t | irq_priority, | ||
| bool | enable, | ||
| uint32_t | channels_number ) |
Function for initializing the specified GPIOTE interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be initialized. |
| [in] | irq_priority | Interrupt priority. |
| [in] | enable | True if the interrupts are to be enabled, false otherwise. |
| [in] | channels_number | Number of channels for specified GPIOTE peripheral. |
| NRFY_STATIC_INLINE nrf_gpiote_latency_t nrfy_gpiote_latency_get | ( | NRF_GPIOTE_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_gpiote_latency_set | ( | NRF_GPIOTE_Type * | p_reg, |
| nrf_gpiote_latency_t | latency ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | latency | Latency setting to be set. |
| NRFY_STATIC_INLINE nrf_gpiote_task_t nrfy_gpiote_out_task_get | ( | uint8_t | index | ) |
| [in] | index | Channel index. |
| NRFY_STATIC_INLINE void nrfy_gpiote_publish_clear | ( | NRF_GPIOTE_Type * | p_reg, |
| nrf_gpiote_event_t | event ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event for which to clear the configuration. |
| NRFY_STATIC_INLINE void nrfy_gpiote_publish_set | ( | NRF_GPIOTE_Type * | p_reg, |
| nrf_gpiote_event_t | event, | ||
| uint8_t | channel ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event for which to set the configuration. |
| [in] | channel | Channel through which to publish the event. |
| NRFY_STATIC_INLINE nrf_gpiote_task_t nrfy_gpiote_set_task_get | ( | uint8_t | index | ) |
| [in] | index | Channel index. |
| NRFY_STATIC_INLINE void nrfy_gpiote_subscribe_clear | ( | NRF_GPIOTE_Type * | p_reg, |
| nrf_gpiote_task_t | task ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task for which to clear the configuration. |
| NRFY_STATIC_INLINE void nrfy_gpiote_subscribe_set | ( | NRF_GPIOTE_Type * | p_reg, |
| nrf_gpiote_task_t | task, | ||
| uint8_t | channel ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task for which to set the configuration. |
| [in] | channel | Channel through which to subscribe events. |
| NRFY_STATIC_INLINE uint32_t nrfy_gpiote_task_address_get | ( | NRF_GPIOTE_Type const * | p_reg, |
| nrf_gpiote_task_t | task ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task. |
| NRFY_STATIC_INLINE void nrfy_gpiote_task_configure | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | idx, | ||
| uint32_t | pin, | ||
| nrf_gpiote_polarity_t | polarity, | ||
| nrf_gpiote_outinit_t | init_val ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| [in] | pin | Pin associated with event. |
| [in] | polarity | Transition that should generate an event. |
| [in] | init_val | Initial value of the pin. |
| NRFY_STATIC_INLINE void nrfy_gpiote_task_disable | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | idx ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| NRFY_STATIC_INLINE void nrfy_gpiote_task_enable | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | idx ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| NRFY_STATIC_INLINE void nrfy_gpiote_task_force | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | idx, | ||
| nrf_gpiote_outinit_t | init_val ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| [in] | init_val | Pin state. |
| NRFY_STATIC_INLINE void nrfy_gpiote_task_trigger | ( | NRF_GPIOTE_Type * | p_reg, |
| nrf_gpiote_task_t | task ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task. |
| NRFY_STATIC_INLINE void nrfy_gpiote_te_default | ( | NRF_GPIOTE_Type * | p_reg, |
| uint32_t | idx ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| NRFY_STATIC_INLINE bool nrfy_gpiote_te_is_enabled | ( | NRF_GPIOTE_Type const * | p_reg, |
| uint32_t | idx ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Task-Event index. |
| true | The Task-Event mode is set to Task or Event. |
| false | The Task-Event mode is set to Disabled. |