Hardware access layer for managing the Temperature sensor (TEMP). More...
Enumerations |
|
| enum |
nrf_temp_task_t
{
NRF_TEMP_TASK_START = offsetof(NRF_TEMP_Type, TASKS_START), NRF_TEMP_TASK_STOP = offsetof(NRF_TEMP_Type, TASKS_STOP) } |
|
TEMP tasks.
More...
|
|
| enum | nrf_temp_event_t { NRF_TEMP_EVENT_DATARDY = offsetof(NRF_TEMP_Type, EVENTS_DATARDY) } |
|
TEMP events.
More...
|
|
| enum | nrf_temp_int_mask_t { NRF_TEMP_INT_DATARDY_MASK = TEMP_INTENSET_DATARDY_Msk } |
|
TEMP interrupts.
More...
|
|
Functions |
|
| __STATIC_INLINE void | nrf_temp_int_enable (NRF_TEMP_Type *p_reg, uint32_t mask) |
|
Function for enabling specified interrupts.
More...
|
|
| __STATIC_INLINE void | nrf_temp_int_disable (NRF_TEMP_Type *p_reg, uint32_t mask) |
|
Function for disabling specified interrupts.
More...
|
|
| __STATIC_INLINE bool | nrf_temp_int_enable_check (NRF_TEMP_Type const *p_reg, nrf_temp_int_mask_t temp_int) |
|
Function for retrieving the state of a given interrupt.
More...
|
|
| __STATIC_INLINE uint32_t | nrf_temp_task_address_get (NRF_TEMP_Type const *p_reg, nrf_temp_task_t task) |
|
Function for getting the address of the specified TEMP task register.
More...
|
|
| __STATIC_INLINE void | nrf_temp_task_trigger (NRF_TEMP_Type *p_reg, nrf_temp_task_t task) |
|
Function for activating the specified TEMP task.
More...
|
|
| __STATIC_INLINE uint32_t | nrf_temp_event_address_get (NRF_TEMP_Type const *p_reg, nrf_temp_event_t event) |
|
Function for getting the address of the specified TEMP event register.
More...
|
|
| __STATIC_INLINE void | nrf_temp_event_clear (NRF_TEMP_Type *p_reg, nrf_temp_event_t event) |
|
Function for clearing the specified TEMP event.
More...
|
|
| __STATIC_INLINE bool | nrf_temp_event_check (NRF_TEMP_Type const *p_reg, nrf_temp_event_t event) |
|
Function for getting the state of a specific event.
More...
|
|
| __STATIC_INLINE int32_t | nrf_temp_result_get (NRF_TEMP_Type const *p_reg) |
|
Function for getting the result of temperature measurement.
More...
|
|
Detailed Description
Hardware access layer for managing the Temperature sensor (TEMP).
Enumeration Type Documentation
| enum nrf_temp_event_t |
| enum nrf_temp_int_mask_t |
| enum nrf_temp_task_t |
Function Documentation
| __STATIC_INLINE uint32_t nrf_temp_event_address_get | ( | NRF_TEMP_Type const * | p_reg , |
| nrf_temp_event_t | event | ||
| ) |
Function for getting the address of the specified TEMP event register.
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral. [in] event Requested event.
- Returns
- Address of the requested event register.
| __STATIC_INLINE bool nrf_temp_event_check | ( | NRF_TEMP_Type const * | p_reg , |
| nrf_temp_event_t | event | ||
| ) |
Function for getting the state of a specific event.
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral. [in] event Event to be checked.
- Return values
-
true The event has been generated. false The event has not been generated.
| __STATIC_INLINE void nrf_temp_event_clear | ( | NRF_TEMP_Type * | p_reg , |
| nrf_temp_event_t | event | ||
| ) |
Function for clearing the specified TEMP event.
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral. [in] event Event to clear.
| __STATIC_INLINE void nrf_temp_int_disable | ( | NRF_TEMP_Type * | p_reg , |
| uint32_t | mask | ||
| ) |
Function for disabling specified interrupts.
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral. [in] mask Mask of interrupts to be disabled.
| __STATIC_INLINE void nrf_temp_int_enable | ( | NRF_TEMP_Type * | p_reg , |
| uint32_t | mask | ||
| ) |
Function for enabling specified interrupts.
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral. [in] mask Mask of interrupts to be enabled.
| __STATIC_INLINE bool nrf_temp_int_enable_check | ( | NRF_TEMP_Type const * | p_reg , |
| nrf_temp_int_mask_t | temp_int | ||
| ) |
Function for retrieving the state of a given interrupt.
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral. [in] temp_int Interrupt to be checked.
- Return values
-
true The interrupt is enabled. false The interrupt is not enabled.
| __STATIC_INLINE int32_t nrf_temp_result_get | ( | NRF_TEMP_Type const * | p_reg | ) |
Function for getting the result of temperature measurement.
- Note
- Returned value is in 2's complement format, 0.25 °C steps
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral.
- Returns
- Temperature value register contents.
| __STATIC_INLINE uint32_t nrf_temp_task_address_get | ( | NRF_TEMP_Type const * | p_reg , |
| nrf_temp_task_t | task | ||
| ) |
Function for getting the address of the specified TEMP task register.
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral. [in] task Requested task.
- Returns
- Address of the requested task register.
| __STATIC_INLINE void nrf_temp_task_trigger | ( | NRF_TEMP_Type * | p_reg , |
| nrf_temp_task_t | task | ||
| ) |
Function for activating the specified TEMP task.
- Parameters
-
[in] p_reg Pointer to the structure of registers of the peripheral. [in] task Task to be activated.