Hardware access layer with cache and barrier support for managing the Temperature sensor (TEMP).
More...
|
NRFY_STATIC_INLINE void | nrfy_temp_int_init (NRF_TEMP_Type *p_reg, uint32_t mask, uint8_t irq_priority, bool enable) |
| Function for initializing the specified TEMP interrupts.
|
|
NRFY_STATIC_INLINE void | nrfy_temp_int_uninit (NRF_TEMP_Type *p_reg) |
| Function for uninitializing the TEMP interrupts.
|
|
NRFY_STATIC_INLINE void | nrfy_temp_int_enable (NRF_TEMP_Type *p_reg, uint32_t mask) |
|
NRFY_STATIC_INLINE void | nrfy_temp_int_disable (NRF_TEMP_Type *p_reg, uint32_t mask) |
|
NRFY_STATIC_INLINE uint32_t | nrfy_temp_int_enable_check (NRF_TEMP_Type const *p_reg, uint32_t mask) |
|
NRFY_STATIC_INLINE uint32_t | nrfy_temp_task_address_get (NRF_TEMP_Type const *p_reg, nrf_temp_task_t task) |
|
NRFY_STATIC_INLINE void | nrfy_temp_task_trigger (NRF_TEMP_Type *p_reg, nrf_temp_task_t task) |
|
NRFY_STATIC_INLINE uint32_t | nrfy_temp_event_address_get (NRF_TEMP_Type const *p_reg, nrf_temp_event_t event) |
|
NRFY_STATIC_INLINE void | nrfy_temp_event_clear (NRF_TEMP_Type *p_reg, nrf_temp_event_t event) |
|
NRFY_STATIC_INLINE bool | nrfy_temp_event_check (NRF_TEMP_Type const *p_reg, nrf_temp_event_t event) |
|
NRFY_STATIC_INLINE int32_t | nrfy_temp_result_get (NRF_TEMP_Type const *p_reg) |
|
NRFY_STATIC_INLINE void | nrfy_temp_calibration_coeff_set (NRF_TEMP_Type *p_reg, uint32_t coeff) |
|
NRFY_STATIC_INLINE uint32_t | nrfy_temp_calibration_coeff_get (NRF_TEMP_Type const *p_reg) |
|
NRFY_STATIC_INLINE void | nrfy_temp_subscribe_set (NRF_TEMP_Type *p_reg, nrf_temp_task_t task, uint8_t channel) |
|
NRFY_STATIC_INLINE void | nrfy_temp_subscribe_clear (NRF_TEMP_Type *p_reg, nrf_temp_task_t task) |
|
NRFY_STATIC_INLINE void | nrfy_temp_publish_set (NRF_TEMP_Type *p_reg, nrf_temp_event_t event, uint8_t channel) |
|
NRFY_STATIC_INLINE void | nrfy_temp_publish_clear (NRF_TEMP_Type *p_reg, nrf_temp_event_t event) |
|
Hardware access layer with cache and barrier support for managing the Temperature sensor (TEMP).
◆ NRFY_TEMP_HAS_CALIBRATION
#define NRFY_TEMP_HAS_CALIBRATION 1 |
◆ nrfy_temp_calibration_coeff_get()
NRFY_STATIC_INLINE uint32_t nrfy_temp_calibration_coeff_get |
( |
NRF_TEMP_Type const * |
p_reg | ) |
|
- See also
- nrf_temp_calibration_coeff_get Function for getting the calibration coefficient for the temperature measurement.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Returns
- Calibration coefficient.
◆ nrfy_temp_calibration_coeff_set()
NRFY_STATIC_INLINE void nrfy_temp_calibration_coeff_set |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
uint32_t |
coeff |
|
) |
| |
- See also
- nrf_temp_calibration_coeff_set Function for setting the calibration coefficient for the temperature measurement.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | coeff | Calibration coefficient. |
◆ nrfy_temp_event_address_get()
NRFY_STATIC_INLINE uint32_t nrfy_temp_event_address_get |
( |
NRF_TEMP_Type const * |
p_reg, |
|
|
nrf_temp_event_t |
event |
|
) |
| |
- See also
- nrf_temp_event_address_get 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.
◆ nrfy_temp_event_check()
NRFY_STATIC_INLINE bool nrfy_temp_event_check |
( |
NRF_TEMP_Type const * |
p_reg, |
|
|
nrf_temp_event_t |
event |
|
) |
| |
- See also
- nrf_temp_event_check 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. |
◆ nrfy_temp_event_clear()
NRFY_STATIC_INLINE void nrfy_temp_event_clear |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
nrf_temp_event_t |
event |
|
) |
| |
- See also
- nrf_temp_event_clear 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. |
◆ nrfy_temp_int_disable()
NRFY_STATIC_INLINE void nrfy_temp_int_disable |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
uint32_t |
mask |
|
) |
| |
- See also
- nrf_temp_int_disable 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. Use nrf_temp_int_mask_t values for bit masking. |
◆ nrfy_temp_int_enable()
NRFY_STATIC_INLINE void nrfy_temp_int_enable |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
uint32_t |
mask |
|
) |
| |
- See also
- nrf_temp_int_enable 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. Use nrf_temp_int_mask_t values for bit masking. |
◆ nrfy_temp_int_enable_check()
NRFY_STATIC_INLINE uint32_t nrfy_temp_int_enable_check |
( |
NRF_TEMP_Type const * |
p_reg, |
|
|
uint32_t |
mask |
|
) |
| |
- See also
- nrf_temp_int_enable_check Function for checking if the specified interrupts are enabled.
- Parameters
-
[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. |
- Returns
- Mask of enabled interrupts.
◆ nrfy_temp_int_init()
NRFY_STATIC_INLINE void nrfy_temp_int_init |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
uint32_t |
mask, |
|
|
uint8_t |
irq_priority, |
|
|
bool |
enable |
|
) |
| |
Function for initializing the specified TEMP interrupts.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be initialized. |
[in] | irq_priority | Interrupt priority. |
[in] | enable | True if the interrupts are to be enabled, false otherwise. |
◆ nrfy_temp_int_uninit()
NRFY_STATIC_INLINE void nrfy_temp_int_uninit |
( |
NRF_TEMP_Type * |
p_reg | ) |
|
Function for uninitializing the TEMP interrupts.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
◆ nrfy_temp_publish_clear()
NRFY_STATIC_INLINE void nrfy_temp_publish_clear |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
nrf_temp_event_t |
event |
|
) |
| |
- See also
- nrf_temp_publish_clear Function for clearing the publish configuration for a given TEMP event.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event for which to clear the configuration. |
◆ nrfy_temp_publish_set()
NRFY_STATIC_INLINE void nrfy_temp_publish_set |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
nrf_temp_event_t |
event, |
|
|
uint8_t |
channel |
|
) |
| |
- See also
- nrf_temp_publish_set Function for setting the publish configuration for a given TEMP event.
- Parameters
-
[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. |
◆ nrfy_temp_result_get()
NRFY_STATIC_INLINE int32_t nrfy_temp_result_get |
( |
NRF_TEMP_Type const * |
p_reg | ) |
|
- See also
- nrf_temp_result_get 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.
◆ nrfy_temp_subscribe_clear()
NRFY_STATIC_INLINE void nrfy_temp_subscribe_clear |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
nrf_temp_task_t |
task |
|
) |
| |
- See also
- nrf_temp_subscribe_clear Function for clearing the subscribe configuration for a given TEMP task.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task for which to clear the configuration. |
◆ nrfy_temp_subscribe_set()
NRFY_STATIC_INLINE void nrfy_temp_subscribe_set |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
nrf_temp_task_t |
task, |
|
|
uint8_t |
channel |
|
) |
| |
- See also
- nrf_temp_subscribe_set Function for setting the subscribe configuration for a given TEMP task.
- Parameters
-
[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. |
◆ nrfy_temp_task_address_get()
NRFY_STATIC_INLINE uint32_t nrfy_temp_task_address_get |
( |
NRF_TEMP_Type const * |
p_reg, |
|
|
nrf_temp_task_t |
task |
|
) |
| |
- See also
- nrf_temp_task_address_get 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.
◆ nrfy_temp_task_trigger()
NRFY_STATIC_INLINE void nrfy_temp_task_trigger |
( |
NRF_TEMP_Type * |
p_reg, |
|
|
nrf_temp_task_t |
task |
|
) |
| |
- See also
- nrf_temp_task_trigger 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. |