Temperature module init and read functions.
More...
|
#define | MASK_SIGN (0x00000200UL) |
|
#define | MASK_SIGN_EXTENSION (0xFFFFFC00UL) |
|
|
static __INLINE void | nrf_temp_init (void) |
| Function for preparing the temp module for temperature measurement. More...
|
|
static __INLINE int32_t | nrf_temp_read (void) |
| Function for reading temperature measurement. More...
|
|
Temperature module init and read functions.
static __INLINE void nrf_temp_init |
( |
void |
| ) |
|
|
static |
Function for preparing the temp module for temperature measurement.
This function initializes the TEMP module and writes to the hidden configuration register.
- Parameters
-
- Note
- Workaround for PAN_028 rev2.0A anomaly 31 - TEMP: Temperature offset value has to be manually loaded to the TEMP module
static __INLINE int32_t nrf_temp_read |
( |
void |
| ) |
|
|
static |
Function for reading temperature measurement.
The function reads the 10 bit 2's complement value and transforms it to a 32 bit 2's complement value.
- Parameters
-
- Note
- Workaround for PAN_028 rev2.0A anomaly 28 - TEMP: Negative measured values are not represented correctly