Hardware access layer (HAL) for managing the Floating Point Unit configuration. More...
Enumerations | |
enum | nrf_fpu_event_t { NRF_FPU_EVENT_INVALIDOPERATION = offsetof(NRF_FPU_Type, EVENTS_INVALIDOPERATION) , NRF_FPU_EVENT_DIVIDEBYZERO = offsetof(NRF_FPU_Type, EVENTS_DIVIDEBYZERO) , NRF_FPU_EVENT_OVERFLOW = offsetof(NRF_FPU_Type, EVENTS_OVERFLOW) , NRF_FPU_EVENT_UNDERFLOW = offsetof(NRF_FPU_Type, EVENTS_UNDERFLOW) , NRF_FPU_EVENT_INEXACT = offsetof(NRF_FPU_Type, EVENTS_INEXACT) , NRF_FPU_EVENT_DENORMALINPUT = offsetof(NRF_FPU_Type, EVENTS_DENORMALINPUT) } |
FPU events. More... | |
enum | nrf_fpu_int_mask_t { NRF_FPU_INT_INVALIDOPERATION = FPU_INTEN_INVALIDOPERATION_Msk , NRF_FPU_INT_DIVIDEBYZERO = FPU_INTEN_DIVIDEBYZERO_Msk , NRF_FPU_INT_OVERFLOW = FPU_INTEN_OVERFLOW_Msk , NRF_FPU_INT_UNDERFLOW = FPU_INTEN_UNDERFLOW_Msk , NRF_FPU_INT_INEXACT = FPU_INTEN_INEXACT_Msk , NRF_FPU_INT_DENORMALINPUT = FPU_INTEN_DENORMALINPUT_Msk } |
FPU interrupts. More... | |
Functions | |
NRF_STATIC_INLINE void | nrf_fpu_event_clear (NRF_FPU_Type *p_reg, nrf_fpu_event_t event) |
Function for clearing the specified FPU event. | |
NRF_STATIC_INLINE bool | nrf_fpu_event_check (NRF_FPU_Type const *p_reg, nrf_fpu_event_t event) |
Function for retrieving the state of the FPU event. | |
NRF_STATIC_INLINE void | nrf_fpu_int_enable (NRF_FPU_Type *p_reg, uint32_t mask) |
Function for enabling specified interrupts. | |
NRF_STATIC_INLINE void | nrf_fpu_int_disable (NRF_FPU_Type *p_reg, uint32_t mask) |
Function for disabling specified interrupts. | |
NRF_STATIC_INLINE uint32_t | nrf_fpu_int_enable_check (NRF_FPU_Type const *p_reg, uint32_t mask) |
Function for checking if the specified interrupts are enabled. | |
Hardware access layer (HAL) for managing the Floating Point Unit configuration.
enum nrf_fpu_event_t |
FPU events.
enum nrf_fpu_int_mask_t |
FPU interrupts.
NRF_STATIC_INLINE bool nrf_fpu_event_check | ( | NRF_FPU_Type const * | p_reg, |
nrf_fpu_event_t | event | ||
) |
Function for retrieving the state of the FPU event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
true | The event has been generated. |
false | The event has not been generated. |
NRF_STATIC_INLINE void nrf_fpu_event_clear | ( | NRF_FPU_Type * | p_reg, |
nrf_fpu_event_t | event | ||
) |
Function for clearing the specified FPU event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
NRF_STATIC_INLINE void nrf_fpu_int_disable | ( | NRF_FPU_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for disabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_fpu_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_fpu_int_enable | ( | NRF_FPU_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for enabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_fpu_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_fpu_int_enable_check | ( | NRF_FPU_Type const * | p_reg, |
uint32_t | mask | ||
) |
Function for checking if the specified interrupts are enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. Use nrf_fpu_int_mask_t values for bit masking. |