Adafruit Unified Sensor Library
Public Attributes | List of all members
sensor_t Struct Reference

#include <Adafruit_Sensor.h>

Public Attributes

char name [12]
 
int32_t version
 
int32_t sensor_id
 
int32_t type
 
float max_value
 
float min_value
 
float resolution
 
int32_t min_delay
 

Detailed Description

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

Member Data Documentation

◆ name

char sensor_t::name[12]

sensor name

◆ version

int32_t sensor_t::version

version of the hardware + driver

◆ sensor_id

int32_t sensor_t::sensor_id

unique sensor identifier

◆ type

int32_t sensor_t::type

this sensor's type (ex. SENSOR_TYPE_LIGHT)

◆ max_value

float sensor_t::max_value

maximum value of this sensor's value in SI units

◆ min_value

float sensor_t::min_value

minimum value of this sensor's value in SI units

◆ resolution

float sensor_t::resolution

smallest difference between two values reported by this sensor

◆ min_delay

int32_t sensor_t::min_delay

min delay in microseconds between events. zero = not a constant rate


The documentation for this struct was generated from the following file: