Contiki-NG
Loading...
Searching...
No Matches

Driver for the CC2538 on-chip temperature sensor. More...

Files

file  arch/cpu/cc2538/dev/cc2538-temp-sensor.c
 Driver for the CC2538 On-Chip temperature sensor.
file  arch/cpu/cc2538/dev/cc2538-temp-sensor.h
 Header file for the CC2538 on-chip temperature Sensor Driver.

Functions

static int value (int type)

Variables

const struct sensors_sensor cc2538_temp_sensor
 Exports a global symbol to be used by the sensor API.

Detailed Description

Driver for the CC2538 on-chip temperature sensor.

This driver can return the raw as well as the converted value of the sensor reading. This is controlled by the type argument of the sensor driver's value() function. The choices for the type argument are:

  • CC2538_SENSORS_VALUE_TYPE_RAW (value() returns the raw reading)
  • CC2538_SENSORS_VALUE_TYPE_CONVERTED (value() returns degrees mC)

Function Documentation

◆ value()