![]() |
ISSDK
1.8
IoT Sensing Software Development Kit
|
An instance of PhysicalSensor structure type should be allocated for each physical sensors (combo devices = 1) More...
#include <sensor_fusion.h>
Data Fields | |
registerDeviceInfo_t | deviceInfo |
I2C device context. More... | |
void * | bus_driver |
should be of type (ARM_DRIVER_I2C* for I2C-based sensors, ARM_DRIVER_SPI* for SPI) More... | |
registerDeviceInfo_t * | busInfo |
information required for bus power management More... | |
uint16_t | addr |
I2C address if applicable. More... | |
uint16_t | isInitialized |
Bitfields to indicate sensor is active (use SensorBitFields from build.h) More... | |
spiSlaveSpecificParams_t | slaveParams |
SPI specific parameters. Not used for I2C. More... | |
struct PhysicalSensor * | next |
pointer to next sensor in this linked list More... | |
uint16_t | schedule |
Parameter to control sensor sampling rate. More... | |
initializeSensor_t * | initialize |
pointer to function to initialize sensor using the supplied drivers More... | |
readSensor_t * | read |
pointer to function to read sensor using the supplied drivers More... | |
An instance of PhysicalSensor structure type should be allocated for each physical sensors (combo devices = 1)
These structures sit 'on-top-of' the pre-7.0 sensor fusion structures and give us the ability to do run time driver installation.
Definition at line 155 of file sensor_fusion.h.
uint16_t addr |
I2C address if applicable.
Definition at line 159 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), FXOS8700_Idle(), FXOS8700_Init(), FXOS8700_ReadMagData(), installSensor(), MAG3110_Idle(), MAG3110_Init(), and MAG3110_Read().
void* bus_driver |
should be of type (ARM_DRIVER_I2C* for I2C-based sensors, ARM_DRIVER_SPI* for SPI)
Definition at line 157 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), FXOS8700_Idle(), FXOS8700_Init(), FXOS8700_ReadMagData(), installSensor(), MAG3110_Idle(), MAG3110_Init(), and MAG3110_Read().
registerDeviceInfo_t* busInfo |
information required for bus power management
Definition at line 158 of file sensor_fusion.h.
registerDeviceInfo_t deviceInfo |
I2C device context.
Definition at line 156 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), FXOS8700_Idle(), FXOS8700_Init(), FXOS8700_ReadMagData(), installSensor(), MAG3110_Idle(), MAG3110_Init(), and MAG3110_Read().
initializeSensor_t* initialize |
pointer to function to initialize sensor using the supplied drivers
Definition at line 164 of file sensor_fusion.h.
Referenced by initializeSensors(), and installSensor().
uint16_t isInitialized |
Bitfields to indicate sensor is active (use SensorBitFields from build.h)
Definition at line 160 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), FXOS8700_Idle(), FXOS8700_Init(), FXOS8700_ReadMagData(), MAG3110_Idle(), MAG3110_Init(), MAG3110_Read(), and readSensors().
struct PhysicalSensor* next |
pointer to next sensor in this linked list
Definition at line 162 of file sensor_fusion.h.
Referenced by initializeSensors(), installSensor(), and readSensors().
readSensor_t* read |
pointer to function to read sensor using the supplied drivers
Definition at line 165 of file sensor_fusion.h.
Referenced by installSensor(), and readSensors().
uint16_t schedule |
Parameter to control sensor sampling rate.
Definition at line 163 of file sensor_fusion.h.
Referenced by installSensor(), and readSensors().
spiSlaveSpecificParams_t slaveParams |
SPI specific parameters. Not used for I2C.
Definition at line 161 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), and installSensor().