Microchip® Advanced Software Framework

sensor_hal Struct Reference

Sensor Platform Hardware Abstraction Descriptor.

#include <sensor.h>

Data Fields

int16_t bandwidth
 Sensor bandwidth (Hz) More...
 
uint8_t burst_addr
 Sensor Burst Read Address. More...
 
bus_desc_t bus
 Platform Bus Descriptor. More...
 
sensor_type_t dev_type
 Sensor Device Type. More...
 
uint32_t mcu_sigint
 I/O input to MCU from sensor. More...
 
uint32_t mcu_sigout
 I/O output from MCU to sensor. More...
 
sensor_orient_t orientation
 Sensor axis/sign used as X,Y,Z. More...
 
int16_t range
 Sensor range (engineering units) More...
 
int16_t resolution
 Sensor sample resolution (bits) More...
 
int16_t sample_rate
 Sensor sample rate (Hz) More...
 
bool(* sensor_init )(sensor_t *, int)
 

sensor_type_t sensor_hal::dev_type

Sensor Device Type.

Referenced by sensor_device_enum().

uint32_t sensor_hal::mcu_sigint
uint32_t sensor_hal::mcu_sigout

I/O output from MCU to sensor.

int16_t sensor_hal::sample_rate
bool(* sensor_hal::sensor_init)(sensor_t *, int)

Referenced by sensor_attach().