![]() |
nrfx 4.5.0
|
Common module. More...
Typedefs | |
| typedef void(* | nrfx_irq_handler_t) (void *p_context) |
| IRQ handler type. | |
Enumerations | |
| enum | nrfx_drv_state_t { NRFX_DRV_STATE_UNINITIALIZED , NRFX_DRV_STATE_INITIALIZED , NRFX_DRV_STATE_POWERED_ON } |
| Driver state. More... | |
Functions | |
| __STATIC_INLINE bool | nrfx_is_in_ram (void const *p_object) |
| Function for checking if an object is placed in the Data RAM region. | |
| __STATIC_INLINE bool | nrfx_is_word_aligned (void const *p_object) |
| Function for checking if an object is aligned to a 32-bit word. | |
| __STATIC_INLINE IRQn_Type | nrfx_get_irq_number (void const *p_reg) |
| Function for getting the interrupt number for the specified peripheral. | |
| __STATIC_INLINE uint32_t | nrfx_bitpos_to_event (uint32_t bit) |
| Function for converting an INTEN register bit position to the corresponding event identifier. | |
| __STATIC_INLINE uint32_t | nrfx_event_to_bitpos (uint32_t event) |
| Function for converting an event identifier to the corresponding INTEN register bit position. | |
Common module.
| typedef void(* nrfx_irq_handler_t) (void *p_context) |
IRQ handler type.
| [in] | p_context | Context passed to the interrupt handler. |
| enum nrfx_drv_state_t |
| __STATIC_INLINE uint32_t nrfx_bitpos_to_event | ( | uint32_t | bit | ) |
Function for converting an INTEN register bit position to the corresponding event identifier.
The event identifier is the offset between the event register address and the peripheral base address, and is equal (thus, can be directly cast) to the corresponding value of the enumerated type from HAL (nrf_*_event_t).
| [in] | bit | INTEN register bit position. |
| __STATIC_INLINE uint32_t nrfx_event_to_bitpos | ( | uint32_t | event | ) |
Function for converting an event identifier to the corresponding INTEN register bit position.
The event identifier is the offset between the event register address and the peripheral base address, and is equal (thus, can be directly cast) to the corresponding value of the enumerated type from HAL (nrf_*_event_t).
| [in] | event | Event identifier. |
| __STATIC_INLINE IRQn_Type nrfx_get_irq_number | ( | void const * | p_reg | ) |
Function for getting the interrupt number for the specified peripheral.
| [in] | p_reg | Peripheral base pointer. |
| __STATIC_INLINE bool nrfx_is_in_ram | ( | void const * | p_object | ) |
Function for checking if an object is placed in the Data RAM region.
Several peripherals (the ones using EasyDMA) require the transfer buffers to be placed in the Data RAM region. This function can be used to check if this condition is met.
| [in] | p_object | Pointer to an object whose location is to be checked. |
| true | The pointed object is located in the Data RAM region. |
| false | The pointed object is not located in the Data RAM region. |
| __STATIC_INLINE bool nrfx_is_word_aligned | ( | void const * | p_object | ) |
Function for checking if an object is aligned to a 32-bit word.
Several peripherals (the ones using EasyDMA) require the transfer buffers to be aligned to a 32-bit word. This function can be used to check if this condition is met.
| [in] | p_object | Pointer to an object whose location is to be checked. |
| true | The pointed object is aligned to a 32-bit word. |
| false | The pointed object is not aligned to a 32-bit word. |