Port of Adafruit Arduino code

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

sensor_t Struct Reference

sensor_t Struct Reference

struct sensor_s is used to describe basic information about a specific sensor. More...

#include <Adafruit_Sensor.h>

Data Fields

char name [12]
 sensor name
int32_t version
 version of the hardware + driver
int32_t sensor_id
 unique sensor identifier
int32_t type
 this sensor's type (ex.
float max_value
 maximum value of this sensor's value in SI units
float min_value
 minimum value of this sensor's value in SI units
float resolution
 smallest difference between two values reported by this sensor
int32_t min_delay
 min delay in microseconds between events.

Detailed Description

struct sensor_s is used to describe basic information about a specific sensor.

Definition at line 124 of file Adafruit_Sensor.h.


Field Documentation

float max_value

maximum value of this sensor's value in SI units

Definition at line 130 of file Adafruit_Sensor.h.

int32_t min_delay

min delay in microseconds between events.

zero = not a constant rate

Definition at line 133 of file Adafruit_Sensor.h.

float min_value

minimum value of this sensor's value in SI units

Definition at line 131 of file Adafruit_Sensor.h.

char name[12]

sensor name

Definition at line 126 of file Adafruit_Sensor.h.

float resolution

smallest difference between two values reported by this sensor

Definition at line 132 of file Adafruit_Sensor.h.

int32_t sensor_id

unique sensor identifier

Definition at line 128 of file Adafruit_Sensor.h.

int32_t type

this sensor's type (ex.

SENSOR_TYPE_LIGHT)

Definition at line 129 of file Adafruit_Sensor.h.

int32_t version

version of the hardware + driver

Definition at line 127 of file Adafruit_Sensor.h.