Microchip® Advanced Software Framework

sensor_desc Struct Reference

Generic Sensor API Descriptor.

#include <sensor.h>

Data Fields

void * aux
 API extensions. More...
 
int16_t channel
 Channel number within sensor. More...
 
const sensor_device_tdrv
 Driver functions & capabilities. More...
 
sensor_error_t err
 Runtime errors. More...
 
sensor_hal_thal
 Platform interface. More...
 
sensor_state_t mod
 Runtime state. More...
 
sensor_type_t type
 Sensor type (operational mode) More...
 

void* sensor_desc::aux

API extensions.

Referenced by imu3000_init(), and sensor_attach().

int16_t sensor_desc::channel

Channel number within sensor.

Referenced by sensor_get_channel(), sensor_set_channel(), and sfh7770_ioctl().

sensor_type_t sensor_desc::type

Sensor type (operational mode)

Referenced by sensor_attach(), sfh7770_init(), and sfh7770_ioctl().