This is a driver for nRF52832 hardware sensor.
More...
|
| static int | value (int type) |
| | Returns device temperature. More...
|
| |
| static int | configure (int type, int c) |
| | Configures temperature sensor. More...
|
| |
| static int | status (int type) |
| | Return temperature sensor status. More...
|
| |
|
|
const struct sensors_sensor | temperature_sensor |
| | NOTE: For the temperature measurement, the ADC extended range mode is needed; but this is inaccurate due to the high voltage mode bug of the general purpose ADC (see STM32W108 errata).
|
| |
|
const struct sensors_sensor | temperature_sensor |
| | NOTE: For the temperature measurement, the ADC extended range mode is needed; but this is inaccurate due to the high voltage mode bug of the general purpose ADC (see STM32W108 errata).
|
| |
This is a driver for nRF52832 hardware sensor.
| static int configure |
( |
int |
type, |
|
|
int |
c |
|
) |
| |
|
static |
Configures temperature sensor.
- Parameters
-
| type | initializes the hardware sensor when type is set to SENSORS_HW_INIT |
| c | ignored |
- Returns
- 1
- Note
- This function does nothing when SoftDevice is present
Definition at line 84 of file temperature-sensor.c.
| static int status |
( |
int |
type | ) |
|
|
static |
| static int value |
( |
int |
type | ) |
|
|
static |
Returns device temperature.
- Parameters
-
- Returns
- Device temperature in degrees Celsius
Definition at line 64 of file temperature-sensor.c.