nrfx 2.5
Enumerations | Functions
FPU HAL

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. More...
 
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. More...
 
NRF_STATIC_INLINE void nrf_fpu_int_enable (NRF_FPU_Type *p_reg, uint32_t mask)
 Function for enabling specified interrupts. More...
 
NRF_STATIC_INLINE void nrf_fpu_int_disable (NRF_FPU_Type *p_reg, uint32_t mask)
 Function for disabling specified interrupts. More...
 
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. More...
 

Detailed Description

Hardware access layer (HAL) for managing the Floating Point Unit configuration.

Enumeration Type Documentation

◆ nrf_fpu_event_t

FPU events.

Enumerator
NRF_FPU_EVENT_INVALIDOPERATION 

An FPUIOC exception triggered by an invalid operation has occurred in the FPU.

NRF_FPU_EVENT_DIVIDEBYZERO 

An FPUDZC exception triggered by a floating-point divide-by-zero operation has occurred in the FPU.

NRF_FPU_EVENT_OVERFLOW 

An FPUOFC exception triggered by a floating-point overflow has occurred in the FPU.

NRF_FPU_EVENT_UNDERFLOW 

An FPUUFC exception triggered by a floating-point underflow has occurred in the FPU.

NRF_FPU_EVENT_INEXACT 

An FPUIXC exception triggered by an inexact floating-point operation has occurred in the FPU.

NRF_FPU_EVENT_DENORMALINPUT 

An FPUIDC exception triggered by a denormal floating-point input has occurred in the FPU.

◆ nrf_fpu_int_mask_t

FPU interrupts.

Enumerator
NRF_FPU_INT_INVALIDOPERATION 

Interrupt on event INVALIDOPERATION.

NRF_FPU_INT_DIVIDEBYZERO 

Interrupt on event DIVIDEBYZERO.

NRF_FPU_INT_OVERFLOW 

Interrupt on event OVERFLOW.

NRF_FPU_INT_UNDERFLOW 

Interrupt on event UNDERFLOW.

NRF_FPU_INT_INEXACT 

Interrupt on event INEXACT.

NRF_FPU_INT_DENORMALINPUT 

Interrupt on event DENORMALINPUT.

Function Documentation

◆ nrf_fpu_event_check()

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
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be checked.
Return values
trueThe event has been generated.
falseThe event has not been generated.

◆ nrf_fpu_event_clear()

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
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be cleared.

◆ nrf_fpu_int_disable()

NRF_STATIC_INLINE void nrf_fpu_int_disable ( NRF_FPU_Type *  p_reg,
uint32_t  mask 
)

Function for disabling specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be disabled.

◆ nrf_fpu_int_enable()

NRF_STATIC_INLINE void nrf_fpu_int_enable ( NRF_FPU_Type *  p_reg,
uint32_t  mask 
)

Function for enabling specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be enabled.

◆ nrf_fpu_int_enable_check()

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
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be checked.
Returns
Mask of enabled interrupts.

Documentation feedback | Developer Zone | Subscribe | Updated