ISSDK  1.8
IoT Sensing Software Development Kit
Macros | Functions | Variables
driver_FXLS8471Q.c File Reference

Provides init() and read() functions for the FXLS8471Q 3-axis accel. More...

#include "board.h"
#include "sensor_fusion.h"
#include "sensor_drv.h"
#include "register_io_spi.h"
#include "sensor_io_spi.h"
#include "sensor_io_i2c.h"
#include "fxls8471q.h"
#include "fxls8471q_drv.h"
#include "drivers.h"
Include dependency graph for driver_FXLS8471Q.c:

Go to the source code of this file.

Macros

#define FXLS8471Q_COUNTSPERG   8192.0
 
#define FXLS8471Q_ACCEL_FIFO_SIZE   32
 

Functions

int8_t FXLS8471Q_Init (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg)
 
int8_t FXLS8471Q_Read (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg)
 
int8_t FXLS8471Q_Idle (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg)
 

Variables

const registerreadlist_t FXLS8471Q_WHO_AM_I_READ []
 
const registerreadlist_t FXLS8471Q_F_STATUS_READ []
 
registerreadlist_t FXLS8471Q_DATA_READ []
 
const registerwritelist_t FXLS8471Q_Initialization []
 
const registerwritelist_t FXLS8471Q_IDLE []
 

Detailed Description

Provides init() and read() functions for the FXLS8471Q 3-axis accel.

Supports both I2C and SPI Interfaces. Supply sensor address=0x00 when when installing sensor for SPI. Supply I2C address otherwise.

Definition in file driver_FXLS8471Q.c.

Macro Definition Documentation

◆ FXLS8471Q_ACCEL_FIFO_SIZE

#define FXLS8471Q_ACCEL_FIFO_SIZE   32

Definition at line 26 of file driver_FXLS8471Q.c.

Referenced by FXLS8471Q_Read().

◆ FXLS8471Q_COUNTSPERG

#define FXLS8471Q_COUNTSPERG   8192.0

Definition at line 25 of file driver_FXLS8471Q.c.

Referenced by FXLS8471Q_Init().

Function Documentation

◆ FXLS8471Q_Idle()

int8_t FXLS8471Q_Idle ( struct PhysicalSensor sensor,
SensorFusionGlobals sfg 
)

◆ FXLS8471Q_Init()

int8_t FXLS8471Q_Init ( struct PhysicalSensor sensor,
SensorFusionGlobals sfg 
)

◆ FXLS8471Q_Read()

int8_t FXLS8471Q_Read ( struct PhysicalSensor sensor,
SensorFusionGlobals sfg 
)

Variable Documentation

◆ FXLS8471Q_DATA_READ

registerreadlist_t FXLS8471Q_DATA_READ[]
Initial value:
=
{
{ .readFrom = FXLS8471Q_OUT_X_MSB, .numBytes = 6 }, __END_READ_DATA__
}
#define __END_READ_DATA__
Definition: sensor_drv.h:51

Definition at line 41 of file driver_FXLS8471Q.c.

◆ FXLS8471Q_F_STATUS_READ

const registerreadlist_t FXLS8471Q_F_STATUS_READ[]
Initial value:
=
{
{ .readFrom = FXLS8471Q_F_STATUS, .numBytes = 1 }, __END_READ_DATA__
}
#define __END_READ_DATA__
Definition: sensor_drv.h:51

Definition at line 35 of file driver_FXLS8471Q.c.

◆ FXLS8471Q_IDLE

const registerwritelist_t FXLS8471Q_IDLE[]
Initial value:
=
{
{ FXLS8471Q_CTRL_REG1, 0x00, 0x01 },
}
#define __END_WRITE_DATA__
Definition: sensor_drv.h:45

Definition at line 205 of file driver_FXLS8471Q.c.

◆ FXLS8471Q_Initialization

const registerwritelist_t FXLS8471Q_Initialization[]

Definition at line 47 of file driver_FXLS8471Q.c.

◆ FXLS8471Q_WHO_AM_I_READ

const registerreadlist_t FXLS8471Q_WHO_AM_I_READ[]
Initial value:
=
{
{ .readFrom = FXLS8471Q_WHO_AM_I, .numBytes = 1 }, __END_READ_DATA__
}
#define __END_READ_DATA__
Definition: sensor_drv.h:51

Definition at line 29 of file driver_FXLS8471Q.c.