Contiki-NG

Generic header usable by all CC2538 sensor drivers. More...

#include "lib/sensors.h"
#include "dev/cc2538-temp-sensor.h"
#include "dev/vdd3-sensor.h"

Go to the source code of this file.

Macros

CC2538 sensor constants

These constants are used by various sensors on the CC2538.

They can be used to differentiate between raw and converted readings, to configure ADC decimation rate (where applicable).

#define CC2538_SENSORS_VALUE_TYPE_RAW   0
 Request the raw reading.
 
#define CC2538_SENSORS_VALUE_TYPE_CONVERTED   1
 Request the converted reading.
 
#define CC2538_SENSORS_ERROR   0x80000000
 Generic Error.
 

Detailed Description

Generic header usable by all CC2538 sensor drivers.

Definition in file cc2538-sensors.h.