Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
TEMP (temperature) abstraction
Temperature module init and read functions. More...
Functions | |
static __INLINE void | nrf_temp_init (void) |
Function for preparing the temp module for temperature measurement. | |
static __INLINE int32_t | nrf_temp_read (void) |
Function for reading temperature measurement. |
Detailed Description
Temperature module init and read functions.
Function Documentation
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:
-
none
- Note:
- Workaround for PAN_028 rev2.0A anomaly 31 - TEMP: Temperature offset value has to be manually loaded to the TEMP module
Definition at line 55 of file nrf_temp.h.
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:
-
none
- Note:
- Workaround for PAN_028 rev2.0A anomaly 28 - TEMP: Negative measured values are not represented correctly
Definition at line 73 of file nrf_temp.h.
Generated on Tue Jul 12 2022 21:00:17 by
