ISSDK  1.8
IoT Sensing Software Development Kit
Data Fields
PhysicalSensor Struct Reference

An instance of PhysicalSensor structure type should be allocated for each physical sensors (combo devices = 1) More...

#include <sensor_fusion.h>

Collaboration diagram for PhysicalSensor:
Collaboration graph

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_tbusInfo
 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 PhysicalSensornext
 pointer to next sensor in this linked list More...
 
uint16_t schedule
 Parameter to control sensor sampling rate. More...
 
initializeSensor_tinitialize
 pointer to function to initialize sensor using the supplied drivers More...
 
readSensor_tread
 pointer to function to read sensor using the supplied drivers More...
 

Detailed Description

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.

Field Documentation

◆ addr

uint16_t addr

◆ bus_driver

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().

◆ busInfo

information required for bus power management

Definition at line 158 of file sensor_fusion.h.

◆ deviceInfo

◆ initialize

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().

◆ isInitialized

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().

◆ next

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().

◆ read

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().

◆ schedule

uint16_t schedule

Parameter to control sensor sampling rate.

Definition at line 163 of file sensor_fusion.h.

Referenced by installSensor(), and readSensors().

◆ 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().


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