53 const struct sensors_sensor temperature_sensor;
64 int32_t
volatile temp;
66 NRF_TEMP->TASKS_START = 1;
69 NRF_TEMP->EVENTS_DATARDY = 0;
70 temp = nrf_temp_read();
71 NRF_TEMP->TASKS_STOP = 1;
86 if(type == SENSORS_HW_INIT) {
Temperature sensor header file.
#define RTIMER_BUSYWAIT_UNTIL(cond, max_time)
Busy-wait until a condition for at most max_time.
#define RTIMER_SECOND
Number of rtimer ticks for 1 second.
static int status(int type)
Return temperature sensor status.
static int configure(int type, int c)
Configures temperature sensor.
static int value(int type)
Returns device temperature.