![]() |
nrfx 4.5.0
|
Hardware access layer for managing the Temperature sensor (TEMP). More...
Macros | |
| #define | NRF_TEMP_HAS_CALIBRATION 1 |
| Symbol indicating whether the calibration of temperature measurement is present. | |
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 | |
| NRF_STATIC_INLINE void | nrf_temp_int_enable (NRF_TEMP_Type *p_reg, uint32_t mask) |
| Function for enabling specified interrupts. | |
| NRF_STATIC_INLINE void | nrf_temp_int_disable (NRF_TEMP_Type *p_reg, uint32_t mask) |
| Function for disabling specified interrupts. | |
| NRF_STATIC_INLINE uint32_t | nrf_temp_int_enable_check (NRF_TEMP_Type const *p_reg, uint32_t mask) |
| Function for checking if the specified interrupts are enabled. | |
| NRF_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. | |
| NRF_STATIC_INLINE void | nrf_temp_task_trigger (NRF_TEMP_Type *p_reg, nrf_temp_task_t task) |
| Function for activating the specified TEMP task. | |
| NRF_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. | |
| NRF_STATIC_INLINE void | nrf_temp_event_clear (NRF_TEMP_Type *p_reg, nrf_temp_event_t event) |
| Function for clearing the specified TEMP event. | |
| NRF_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. | |
| NRF_STATIC_INLINE int32_t | nrf_temp_result_get (NRF_TEMP_Type const *p_reg) |
| Function for getting the result of temperature measurement. | |
| NRF_STATIC_INLINE void | nrf_temp_calibration_coeff_set (NRF_TEMP_Type *p_reg, uint32_t coeff) |
| Function for setting the calibration coefficient for the temperature measurement. | |
| NRF_STATIC_INLINE uint32_t | nrf_temp_calibration_coeff_get (NRF_TEMP_Type const *p_reg) |
| Function for getting the calibration coefficient for the temperature measurement. | |
| NRF_STATIC_INLINE void | nrf_temp_subscribe_set (NRF_TEMP_Type *p_reg, nrf_temp_task_t task, uint8_t channel) |
| Function for setting the subscribe configuration for a given TEMP task. | |
| NRF_STATIC_INLINE void | nrf_temp_subscribe_clear (NRF_TEMP_Type *p_reg, nrf_temp_task_t task) |
| Function for clearing the subscribe configuration for a given TEMP task. | |
| NRF_STATIC_INLINE uint32_t | nrf_temp_subscribe_get (NRF_TEMP_Type const *p_reg, nrf_temp_task_t task) |
| Function for getting the subscribe configuration for a given TEMP task. | |
| NRF_STATIC_INLINE void | nrf_temp_publish_set (NRF_TEMP_Type *p_reg, nrf_temp_event_t event, uint8_t channel) |
| Function for setting the publish configuration for a given TEMP event. | |
| NRF_STATIC_INLINE void | nrf_temp_publish_clear (NRF_TEMP_Type *p_reg, nrf_temp_event_t event) |
| Function for clearing the publish configuration for a given TEMP event. | |
| NRF_STATIC_INLINE uint32_t | nrf_temp_publish_get (NRF_TEMP_Type const *p_reg, nrf_temp_event_t event) |
| Function for getting the publish configuration for a given TEMP event. | |
Hardware access layer for managing the Temperature sensor (TEMP).
| enum nrf_temp_event_t |
| enum nrf_temp_int_mask_t |
| enum nrf_temp_task_t |
| NRF_STATIC_INLINE uint32_t nrf_temp_calibration_coeff_get | ( | NRF_TEMP_Type const * | p_reg | ) |
Function for getting the calibration coefficient for the temperature measurement.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_temp_calibration_coeff_set | ( | NRF_TEMP_Type * | p_reg, |
| uint32_t | coeff ) |
Function for setting the calibration coefficient for the temperature measurement.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | coeff | Calibration coefficient. |
| NRF_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.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Requested event. |
| NRF_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.
| [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_temp_event_clear | ( | NRF_TEMP_Type * | p_reg, |
| nrf_temp_event_t | event ) |
Function for clearing the specified TEMP event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to clear. |
| NRF_STATIC_INLINE void nrf_temp_int_disable | ( | NRF_TEMP_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_temp_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE void nrf_temp_int_enable | ( | NRF_TEMP_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_temp_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE uint32_t nrf_temp_int_enable_check | ( | NRF_TEMP_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_temp_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE void nrf_temp_publish_clear | ( | NRF_TEMP_Type * | p_reg, |
| nrf_temp_event_t | event ) |
Function for clearing the publish configuration for a given TEMP event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event for which to clear the configuration. |
| NRF_STATIC_INLINE uint32_t nrf_temp_publish_get | ( | NRF_TEMP_Type const * | p_reg, |
| nrf_temp_event_t | event ) |
Function for getting the publish configuration for a given TEMP event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event for which to read the configuration. |
| NRF_STATIC_INLINE void nrf_temp_publish_set | ( | NRF_TEMP_Type * | p_reg, |
| nrf_temp_event_t | event, | ||
| uint8_t | channel ) |
Function for setting the publish configuration for a given TEMP event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event for which to set the configuration. |
| [in] | channel | Channel through which to publish the event. |
| NRF_STATIC_INLINE int32_t nrf_temp_result_get | ( | NRF_TEMP_Type const * | p_reg | ) |
Function for getting the result of temperature measurement.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_temp_subscribe_clear | ( | NRF_TEMP_Type * | p_reg, |
| nrf_temp_task_t | task ) |
Function for clearing the subscribe configuration for a given TEMP task.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task for which to clear the configuration. |
| NRF_STATIC_INLINE uint32_t nrf_temp_subscribe_get | ( | NRF_TEMP_Type const * | p_reg, |
| nrf_temp_task_t | task ) |
Function for getting the subscribe configuration for a given TEMP task.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task for which to read the configuration. |
| NRF_STATIC_INLINE void nrf_temp_subscribe_set | ( | NRF_TEMP_Type * | p_reg, |
| nrf_temp_task_t | task, | ||
| uint8_t | channel ) |
Function for setting the subscribe configuration for a given TEMP task.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task for which to set the configuration. |
| [in] | channel | Channel through which to subscribe events. |
| NRF_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.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Requested task. |
| NRF_STATIC_INLINE void nrf_temp_task_trigger | ( | NRF_TEMP_Type * | p_reg, |
| nrf_temp_task_t | task ) |
Function for activating the specified TEMP task.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task to be activated. |