FPU HAL¶
-
group
nrf_fpu_hal
Hardware access layer (HAL) for managing the Floating Point Unit configuration.
Enums
-
enum
nrf_fpu_event_t
¶ FPU events.
Values:
-
enumerator
NRF_FPU_EVENT_INVALIDOPERATION
¶ An FPUIOC exception triggered by an invalid operation has occurred in the FPU.
-
enumerator
NRF_FPU_EVENT_DIVIDEBYZERO
¶ An FPUDZC exception triggered by a floating-point divide-by-zero operation has occurred in the FPU.
-
enumerator
NRF_FPU_EVENT_OVERFLOW
¶ An FPUOFC exception triggered by a floating-point overflow has occurred in the FPU.
-
enumerator
NRF_FPU_EVENT_UNDERFLOW
¶ An FPUUFC exception triggered by a floating-point underflow has occurred in the FPU.
-
enumerator
NRF_FPU_EVENT_INEXACT
¶ An FPUIXC exception triggered by an inexact floating-point operation has occurred in the FPU.
-
enumerator
NRF_FPU_EVENT_DENORMALINPUT
¶ An FPUIDC exception triggered by a denormal floating-point input has occurred in the FPU.
-
enumerator
-
enum
nrf_fpu_int_mask_t
¶ FPU interrupts.
Values:
-
enumerator
NRF_FPU_INT_INVALIDOPERATION
¶ Interrupt on event INVALIDOPERATION.
-
enumerator
NRF_FPU_INT_DIVIDEBYZERO
¶ Interrupt on event DIVIDEBYZERO.
-
enumerator
NRF_FPU_INT_OVERFLOW
¶ Interrupt on event OVERFLOW.
-
enumerator
NRF_FPU_INT_UNDERFLOW
¶ Interrupt on event UNDERFLOW.
-
enumerator
NRF_FPU_INT_INEXACT
¶ Interrupt on event INEXACT.
-
enumerator
NRF_FPU_INT_DENORMALINPUT
¶ Interrupt on event DENORMALINPUT.
-
enumerator
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.
- Parameters
p_reg – [in] Pointer to the structure of registers of the peripheral.
event – [in] Event to be cleared.
-
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.
- Parameters
p_reg – [in] Pointer to the structure of registers of the peripheral.
event – [in] Event to be checked.
- Returns true
The event has been generated.
- Returns false
The event has not been generated.
-
NRF_STATIC_INLINE void
nrf_fpu_int_enable
(NRF_FPU_Type *p_reg, uint32_t mask)¶ Function for enabling specified interrupts.
- Parameters
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] Mask of interrupts to be enabled.
-
NRF_STATIC_INLINE void
nrf_fpu_int_disable
(NRF_FPU_Type *p_reg, uint32_t mask)¶ Function for disabling specified interrupts.
- Parameters
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] Mask of interrupts to be disabled.
-
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.
- Parameters
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] Mask of interrupts to be checked.
- Returns
Mask of enabled interrupts.
-
enum