ISSDK  1.8
IoT Sensing Software Development Kit
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
fxls8974cf_freemaster_demo.c File Reference

The fxls8974cf_freemaster_demo.c file implements FreeMASTER demo using the ISSDK FXLS8974CF sensor driver example demonstration with interrupt mode. More...

#include "pin_mux.h"
#include "clock_config.h"
#include "board.h"
#include "fsl_debug_console.h"
#include "math.h"
#include "fsl_uart.h"
#include "fsl_common.h"
#include "freemaster.h"
#include "freemaster_serial_uart.h"
#include "Driver_I2C.h"
#include "issdk_hal.h"
#include "gpio_driver.h"
#include "fxls8974_drv.h"
#include "systick_utils.h"
Include dependency graph for fxls8974cf_freemaster_demo.c:

Go to the source code of this file.

Data Structures

struct  fxls8974_allregs_t
 This structure defines the fxls8974 all registers metadata. More...
 
struct  fxls8974_offset_noise_t
 This structure defines the fxls8974 offset and noise calculation parameters. More...
 
struct  fxls8974_selftest_t
 This structure defines variables to compute self-test output change (STOC) and self-test offset (STOF). More...
 
struct  sensor_data
 This structure defines the fxls8962 raw data buffer. More...
 
union  rawdata
 

Macros

#define FXLS8974_NUM_REGISTERS   (FXLS8974_SELF_TEST_CONFIG2 + 1)
 
#define FF_A_FFMT_THS   (0x08) /* FreeFall Threshold Value. */
 
#define A_FFMT_COUNT   (0x18) /* Freefall/motion debounce count value. */
 
#define PL_COUNT   (0x15) /* Pulse debounce count value. */
 
#define ASLP_COUNTER   (0x07) /* Auto Sleep after ~5s. */
 
#define ACCEL_2G_SENS   (0.000976) /* Sensitivity factor for 2G FS */
 
#define ACCEL_4G_SENS   (0.001953) /* Sensitivity factor for 4G FS */
 
#define ACCEL_8G_SENS   (0.003906) /* Sensitivity factor for 8G FS */
 
#define ACCEL_16G_SENS   (0.007813) /* Sensitivity factor for 16G FS */
 
#define N   (100U) /* Number of samples used to measure offset/noise */
 
#define RAW_ACCEL_DATA_SIZE   (6U) /* Accel Data Size */
 
#define MAX8BITSTORAGE   (255U)
 
#define FXLS8974_DATA_SIZE   6
 

Typedefs

typedef union rawdata RAW_DATA
 
typedef enum fxls8974_operation_type fxls8974_operation_type_t
 This structure defines the fxls8974 host operation type. More...
 

Enumerations

enum  fxls8974_operation_type {
  FXLS8974_REG_WRITE = 1U, FXLS8974_REG_READ = 2U, FXLS8974_ALLREG_READ = 3U, FXLS8974_ACCEL_CONFIG_END,
  FXLS8974_REG_WRITE = 1U, FXLS8974_REG_READ = 2U, FXLS8974_ALLREG_READ = 3U, FXLS8974_ACCEL_CONFIG_END
}
 This structure defines the fxls8974 host operation type. More...
 

Functions

void fxls8974_isr_callback (void *pUserData)
 ISR for FXLS8974 interrupt source event. More...
 
int32_t apply_register_write (fxls8974_i2c_sensorhandle_t fxls8974Driver, uint8_t offset, uint8_t value)
 Function to apply FXLS8974 register write operation. More...
 
int32_t apply_register_read (fxls8974_i2c_sensorhandle_t fxls8974Driver, uint8_t offset, uint8_t *value)
 Function to apply FXLS8974 register read operation. More...
 
int32_t apply_register_readall (fxls8974_i2c_sensorhandle_t fxls8974Driver)
 Function to apply FXLS8974 register read-all operation. More...
 
int32_t update_dropdown_selection (fxls8974_allregs_t *registers, uint8_t caller)
 Function to update dropdown selection. More...
 
void offset_noise_init (fxls8974_offset_noise_t *offnoiseptr)
 Function to initialize offset noise measurement. More...
 
void accel_off_noise (fxls8974_acceldata_t *rawData, fxls8974_offset_noise_t *offnoiseptr, float sens)
 Function to measure accelerometer offset noise. More...
 
void selftest_init (fxls8974_selftest_t *selftest)
 Function to initialize FXLS8974 self test metadata. More...
 
int32_t perform_selftest (fxls8974_i2c_sensorhandle_t fxls8974Driver, fxls8974_selftest_t *selftest)
 Function to perform FXLS8974 self test. More...
 
void FRM_Recorder_Init ()
 
 FMSTR_TSA_TABLE_BEGIN (main_table)
 Target Side Addressable (TSA) table created for this application. More...
 
int main (void)
 Main function. More...
 

Variables

const registerwritelist_t cFxls8974ConfigNormal []
 Defines the register write list to configure FXLS8974 in Interrupt mode. More...
 
const registerwritelist_t cFxls8974STXP []
 Register settings for Self-Test in X Axis (Positive polarity). More...
 
const registerwritelist_t cFxls8974STXN []
 Register settings for Self-Test in X Axis (Negative polarity). More...
 
const registerwritelist_t cFxls8974STYP []
 Register settings for Self-Test in Y Axis (Positive polarity). More...
 
const registerwritelist_t cFxls8974STYN []
 Register settings for Self-Test in Y Axis (Negative polarity). More...
 
const registerwritelist_t cFxls8974STZP []
 Register settings for Self-Test in Z Axis (Positive polarity). More...
 
const registerwritelist_t cFxls8974STZN []
 Register settings for Self-Test in Z Axis (Negative polarity). More...
 
const registerreadlist_t cFxls8974OutputNormal []
 Address of Raw Accel Data in Normal Mode. More...
 
const registerreadlist_t cFXLS8974_whoami []
 
const registerreadlist_t cFXLS8974_int_src []
 Prepare the register read for INT Status Register. More...
 
const registerreadlist_t cFXLS8974_fs_src []
 Prepare the register read for FullScale range Register. More...
 
const registerreadlist_t FXLS8974_ALL_REG_READ []
 FXLS8974 register list to read all registers. More...
 
fxls8974_acceldata_t rawData
 
fxls8974_allregs_t registers
 
fxls8974_offset_noise_t offnoise_data
 
fxls8974_selftest_t selftest
 
uint8_t prev_toggle = 1
 
volatile bool bFxls8974IntFlag = false
 
FMSTR_REC_BUFF recBuffCfg
 
FMSTR_REC_VAR recVar
 
FMSTR_REC_CFG recCfg
 
int32_t status
 
int32_t gSystick
 
uint8_t axis =0
 
int16_t XSTP [2] ={0,0}
 
int16_t YSTP [2] ={0,0}
 
int16_t ZSTP [2] ={0,0}
 
int16_t XSTN [2] ={0,0}
 
int16_t YSTN [2] ={0,0}
 
int16_t ZSTN [2] ={0,0}
 

Detailed Description

The fxls8974cf_freemaster_demo.c file implements FreeMASTER demo using the ISSDK FXLS8974CF sensor driver example demonstration with interrupt mode.

Definition in file fxls8974cf_freemaster_demo.c.

Macro Definition Documentation

◆ A_FFMT_COUNT

#define A_FFMT_COUNT   (0x18) /* Freefall/motion debounce count value. */

Definition at line 44 of file fxls8974cf_freemaster_demo.c.

◆ ACCEL_16G_SENS

#define ACCEL_16G_SENS   (0.007813) /* Sensitivity factor for 16G FS */

Definition at line 50 of file fxls8974cf_freemaster_demo.c.

◆ ACCEL_2G_SENS

#define ACCEL_2G_SENS   (0.000976) /* Sensitivity factor for 2G FS */

Definition at line 47 of file fxls8974cf_freemaster_demo.c.

◆ ACCEL_4G_SENS

#define ACCEL_4G_SENS   (0.001953) /* Sensitivity factor for 4G FS */

Definition at line 48 of file fxls8974cf_freemaster_demo.c.

Referenced by main().

◆ ACCEL_8G_SENS

#define ACCEL_8G_SENS   (0.003906) /* Sensitivity factor for 8G FS */

Definition at line 49 of file fxls8974cf_freemaster_demo.c.

◆ ASLP_COUNTER

#define ASLP_COUNTER   (0x07) /* Auto Sleep after ~5s. */

Definition at line 46 of file fxls8974cf_freemaster_demo.c.

◆ FF_A_FFMT_THS

#define FF_A_FFMT_THS   (0x08) /* FreeFall Threshold Value. */

Definition at line 43 of file fxls8974cf_freemaster_demo.c.

◆ FXLS8974_DATA_SIZE

#define FXLS8974_DATA_SIZE   6

Definition at line 54 of file fxls8974cf_freemaster_demo.c.

◆ FXLS8974_NUM_REGISTERS

#define FXLS8974_NUM_REGISTERS   (FXLS8974_SELF_TEST_CONFIG2 + 1)

Definition at line 42 of file fxls8974cf_freemaster_demo.c.

Referenced by apply_register_read(), and apply_register_write().

◆ MAX8BITSTORAGE

#define MAX8BITSTORAGE   (255U)

Definition at line 53 of file fxls8974cf_freemaster_demo.c.

◆ N

#define N   (100U) /* Number of samples used to measure offset/noise */

Definition at line 51 of file fxls8974cf_freemaster_demo.c.

Referenced by accel_off_noise().

◆ PL_COUNT

#define PL_COUNT   (0x15) /* Pulse debounce count value. */

Definition at line 45 of file fxls8974cf_freemaster_demo.c.

◆ RAW_ACCEL_DATA_SIZE

#define RAW_ACCEL_DATA_SIZE   (6U) /* Accel Data Size */

Definition at line 52 of file fxls8974cf_freemaster_demo.c.

Typedef Documentation

◆ fxls8974_operation_type_t

This structure defines the fxls8974 host operation type.

◆ RAW_DATA

typedef union rawdata RAW_DATA

Enumeration Type Documentation

◆ fxls8974_operation_type

This structure defines the fxls8974 host operation type.

Enumerator
FXLS8974_REG_WRITE 
FXLS8974_REG_READ 
FXLS8974_ALLREG_READ 
FXLS8974_ACCEL_CONFIG_END 
FXLS8974_REG_WRITE 
FXLS8974_REG_READ 
FXLS8974_ALLREG_READ 
FXLS8974_ACCEL_CONFIG_END 

Definition at line 219 of file fxls8974cf_freemaster_demo.c.

Function Documentation

◆ accel_off_noise()

void accel_off_noise ( fxls8974_acceldata_t rawData,
fxls8974_offset_noise_t offnoiseptr,
float  sens 
)

Function to measure accelerometer offset noise.

This function measures accelerometer offset noise.

Parameters
[in]fxls8974_acceldata_t*rawData, pointer to FXLS8974 rawdata metadata.

Definition at line 827 of file fxls8974cf_freemaster_demo.c.

References fxls8974_acceldata_t::accel, fxls8974_offset_noise_t::complete_accel_offnoise, N, offset_noise_init(), fxls8974_offset_noise_t::offx, fxls8974_offset_noise_t::offy, fxls8974_offset_noise_t::offz, fxls8974_offset_noise_t::rmsx, fxls8974_offset_noise_t::rmsy, and fxls8974_offset_noise_t::rmsz.

Here is the call graph for this function:

◆ apply_register_read()

int32_t apply_register_read ( fxls8974_i2c_sensorhandle_t  fxls8974Driver,
uint8_t  offset,
uint8_t *  value 
)

Function to apply FXLS8974 register read operation.

Service register read trigger from Host.

This function apply FXLS8974 register read based on read trigger from host.

Parameters
[in]fxls8974_i2c_sensorhandle_tfxls8974Driver, FXLS8974 sensor I2C handle.
[in]uint8_toffset, the address of the register to read from.

Set register offset with provided value

Definition at line 704 of file fxls8974cf_freemaster_demo.c.

References __END_READ_DATA__, FXLS8974_I2C_ReadData(), FXLS8974_NUM_REGISTERS, int32_t(), registerreadlist_t::readFrom, SENSOR_ERROR_INVALID_PARAM, SENSOR_ERROR_NONE, SENSOR_ERROR_WRITE, and status.

Here is the call graph for this function:

◆ apply_register_readall()

int32_t apply_register_readall ( fxls8974_i2c_sensorhandle_t  fxls8974Driver)

Function to apply FXLS8974 register read-all operation.

Service register read all trigger from Host.

This function apply FXLS8974 all-registers read based on read-all trigger from host.

Parameters
[in]fxls8974_i2c_sensorhandle_tfxls8974Driver, FXLS8974 sensor I2C handle.
Returns
returns the status of the operation.

Set register offset with provided value

Definition at line 729 of file fxls8974cf_freemaster_demo.c.

References __END_READ_DATA__, FXLS8974_I2C_ReadData(), FXLS8974_INT_STATUS, FXLS8974_SELF_TEST_CONFIG2, int32_t(), fxls8974_allregs_t::readall_value, registerreadlist_t::readFrom, SENSOR_ERROR_NONE, SENSOR_ERROR_READ, and status.

Here is the call graph for this function:

◆ apply_register_write()

int32_t apply_register_write ( fxls8974_i2c_sensorhandle_t  fxls8974Driver,
uint8_t  offset,
uint8_t  value 
)

Function to apply FXLS8974 register write operation.

Service register write trigger from Host.

This function apply FXLS8974 register write based on write trigger from host.

Parameters
[in]fxls8974_i2c_sensorhandle_tfxls8974Driver, FXLS8974 sensor I2C handle.
[in]uint8_toffset, the address of the register to start writing from.
[in]uint8_tvalue, value to write on register offset.
Returns
returns the status of the operation.

Set register offset with provided value

Definition at line 678 of file fxls8974cf_freemaster_demo.c.

References __END_WRITE_DATA__, FXLS8974_I2C_Configure(), FXLS8974_NUM_REGISTERS, int32_t(), SENSOR_ERROR_INVALID_PARAM, SENSOR_ERROR_NONE, SENSOR_ERROR_WRITE, and status.

Here is the call graph for this function:

◆ FMSTR_TSA_TABLE_BEGIN()

FMSTR_TSA_TABLE_BEGIN ( main_table  )

Target Side Addressable (TSA) table created for this application.

FreeMASTER recorder initialization

Definition at line 338 of file fxls8974cf_freemaster_demo.c.

References recBuffCfg.

◆ FRM_Recorder_Init()

void FRM_Recorder_Init ( )

◆ fxls8974_isr_callback()

void fxls8974_isr_callback ( void *  pUserData)

ISR for FXLS8974 interrupt source event.

This function implements ISR for FXLS8974 INT source.

Parameters
[in]void*.
Returns
void.

Set flag to indicate Sensor has signalled data ready.

Definition at line 329 of file fxls8974cf_freemaster_demo.c.

References bFxls8974IntFlag.

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( void  )

Main function.

Initialize the MCU hardware.

Initialize FXLS8974_INT1 pin used by FRDM board

Initialize RGB LED pin used by FRDM board

FreeMASTER communication layer initialization

Initialize the I2C driver.

Set the I2C Power mode.

Set the I2C bus speed.

Initialize FXLS8974 sensor driver.

Set the task to be executed while waiting for I2C transactions to complete.

Configure the FXLS8974 sensor.

FreeMASTER Driver Initialization

FreeMASTER Recorder Initialization

Open FreeMASTER Pipe and get a Pipe handle

Initialize trigger flags

Calling Recorder#0 in execution loop for generic high-speed variables sampling.

FreeMASTER host communication polling mode

Check for any write register trigger from Host

Apply Register Write

Update drop down menu selection based on updated register write

Check for any read register trigger from Host

Apply Register Write

Update drop down menu selection based on updated register read

Check for any read all register trigger from Host

Apply Register Write

Update drop down menu selection based on updated all register read

Wait for data ready interrupt from the FXLS8974.

Clear the data ready flag, it will be set again by the ISR.

Calling Recorder#1 for sampling sensor data when we get sensor data ready interrupt based on ODR.

Read new raw sensor data from the FXLS8974.

Increment data ready counter and check for rollover

Convert the raw sensor data to signed 16-bit container for display to the debug port.

Add data log into Pipe TX

Check the FS and apply sensitivity

Convert raw values to Gs

Call offset and noise calculation function for FXLS8974

Call self-test function

Re-Configure the FXLS8974 sensor to default configuration

Definition at line 419 of file fxls8974cf_freemaster_demo.c.

References ACCEL_4G_SENS, BOARD_BootClockRUN, BOARD_InitDebugConsole(), BOARD_InitPins(), BOARD_SystickEnable(), Driver_GPIO_KSDK, FXLS8974_INT1, fxls8974_isr_callback(), fxls8974Driver, GPIO_DIRECTION_IN, GPIO_DIRECTION_OUT, GREEN_LED, I2C_S_DRIVER, I2Cdrv, int32_t(), pGpioDriver, GENERIC_DRIVER_GPIO::pin_init, and status.

Here is the call graph for this function:

◆ offset_noise_init()

void offset_noise_init ( fxls8974_offset_noise_t offnoiseptr)

Function to initialize offset noise measurement.

Initialize Offset-Noise Variables.

This function initializes offset noise measurement metadata.

Parameters

Definition at line 814 of file fxls8974cf_freemaster_demo.c.

References fxls8974_offset_noise_t::complete_accel_offnoise, fxls8974_offset_noise_t::offx, fxls8974_offset_noise_t::offy, fxls8974_offset_noise_t::offz, fxls8974_offset_noise_t::rmsx, fxls8974_offset_noise_t::rmsy, and fxls8974_offset_noise_t::rmsz.

Referenced by accel_off_noise().

Here is the caller graph for this function:

◆ perform_selftest()

int32_t perform_selftest ( fxls8974_i2c_sensorhandle_t  fxls8974Driver,
fxls8974_selftest_t selftest 
)

◆ selftest_init()

void selftest_init ( fxls8974_selftest_t selftest)

Function to initialize FXLS8974 self test metadata.

Initialize Offset-Noise Variables.

This function initializes FXLS8974 self test metadata.

Parameters

Definition at line 913 of file fxls8974cf_freemaster_demo.c.

References fxls8974_selftest_t::complete_selftest, fxls8974_selftest_t::x_stoc, fxls8974_selftest_t::x_stof, fxls8974_selftest_t::y_stoc, fxls8974_selftest_t::y_stof, fxls8974_selftest_t::z_stoc, and fxls8974_selftest_t::z_stof.

Referenced by perform_selftest().

Here is the caller graph for this function:

◆ update_dropdown_selection()

int32_t update_dropdown_selection ( fxls8974_allregs_t registers,
uint8_t  caller 
)

Function to update dropdown selection.

Update drop down selection values based on register write, read or readall.

This function updates the dropdown selection values in real-time based on read/write/read-all triggers.

Parameters

Update drop down option based on updated read value

Update drop down option based on updated read value

Update drop down option based on updated read values

Definition at line 752 of file fxls8974cf_freemaster_demo.c.

References fxls8974_allregs_t::fs_value, FXLS8974_ALLREG_READ, FXLS8974_REG_READ, FXLS8974_REG_WRITE, FXLS8974_SENS_CONFIG1, FXLS8974_SENS_CONFIG2, FXLS8974_SENS_CONFIG3, int32_t(), fxls8974_allregs_t::mods_value, fxls8974_allregs_t::odr_value, fxls8974_allregs_t::offset, fxls8974_allregs_t::read_offset, fxls8974_allregs_t::read_value, fxls8974_allregs_t::reg_addr, SENSOR_ERROR_INVALID_PARAM, SENSOR_ERROR_NONE, status, and fxls8974_allregs_t::value.

Here is the call graph for this function:

Variable Documentation

◆ axis

uint8_t axis =0

Definition at line 248 of file fxls8974cf_freemaster_demo.c.

Referenced by perform_selftest().

◆ bFxls8974IntFlag

volatile bool bFxls8974IntFlag = false

Definition at line 237 of file fxls8974cf_freemaster_demo.c.

Referenced by fxls8974_isr_callback(), and perform_selftest().

◆ cFXLS8974_fs_src

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

Prepare the register read for FullScale range Register.

Definition at line 141 of file fxls8974cf_freemaster_demo.c.

◆ cFXLS8974_int_src

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

Prepare the register read for INT Status Register.

Definition at line 137 of file fxls8974cf_freemaster_demo.c.

◆ cFXLS8974_whoami

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

Definition at line 133 of file fxls8974cf_freemaster_demo.c.

◆ cFxls8974ConfigNormal

const registerwritelist_t cFxls8974ConfigNormal[]
Initial value:
= {
{FXLS8974_SENS_CONFIG2, 0x00, 0x00},
{0x38,0x05,0x00},
{0x2F,0x38,0x00},
{0x30,0xD8,0x00},
{0x33,0xC0,0x00},
{0x34,0xFF,0x00},
{0x35,0x40,0x00},
#define FXLS8974_INT_EN_DRDY_EN_MASK
Definition: fxls8974.h:850
#define FXLS8974_SENS_CONFIG1_FSR_MASK
Definition: fxls8974.h:423
#define FXLS8974_SENS_CONFIG1_ST_AXIS_SEL_DISABLED
Definition: fxls8974.h:442
#define FXLS8974_INT_EN_DRDY_EN_EN
Definition: fxls8974.h:857
#define FXLS8974_SENS_CONFIG2_ANIC_TEMP_EN
Definition: fxls8974.h:521
#define __END_WRITE_DATA__
Definition: sensor_drv.h:45
#define FXLS8974_SENS_CONFIG1_FSR_4G
Definition: fxls8974.h:455
#define FXLS8974_SENS_CONFIG3_WAKE_ODR_12_5HZ
Definition: fxls8974.h:565
#define FXLS8974_SENS_CONFIG2_ANIC_TEMP_MASK
Definition: fxls8974.h:496
#define FXLS8974_SENS_CONFIG3_WAKE_ODR_MASK
Definition: fxls8974.h:551
#define FXLS8974_SENS_CONFIG1_ST_AXIS_SEL_MASK
Definition: fxls8974.h:432

Defines the register write list to configure FXLS8974 in Interrupt mode.

Definition at line 59 of file fxls8974cf_freemaster_demo.c.

◆ cFxls8974OutputNormal

const registerreadlist_t cFxls8974OutputNormal[]
Initial value:
= {{.readFrom = FXLS8974_OUT_X_LSB, .numBytes = FXLS8974_DATA_SIZE},
#define FXLS8974_DATA_SIZE
#define __END_READ_DATA__
Definition: sensor_drv.h:51

Address of Raw Accel Data in Normal Mode.

Definition at line 130 of file fxls8974cf_freemaster_demo.c.

◆ cFxls8974STXN

const registerwritelist_t cFxls8974STXN[]
Initial value:

Register settings for Self-Test in X Axis (Negative polarity).

Definition at line 90 of file fxls8974cf_freemaster_demo.c.

◆ cFxls8974STXP

const registerwritelist_t cFxls8974STXP[]
Initial value:

Register settings for Self-Test in X Axis (Positive polarity).

Definition at line 82 of file fxls8974cf_freemaster_demo.c.

◆ cFxls8974STYN

const registerwritelist_t cFxls8974STYN[]
Initial value:

Register settings for Self-Test in Y Axis (Negative polarity).

Definition at line 106 of file fxls8974cf_freemaster_demo.c.

◆ cFxls8974STYP

const registerwritelist_t cFxls8974STYP[]
Initial value:

Register settings for Self-Test in Y Axis (Positive polarity).

Definition at line 98 of file fxls8974cf_freemaster_demo.c.

◆ cFxls8974STZN

const registerwritelist_t cFxls8974STZN[]
Initial value:

Register settings for Self-Test in Z Axis (Negative polarity).

Definition at line 122 of file fxls8974cf_freemaster_demo.c.

◆ cFxls8974STZP

const registerwritelist_t cFxls8974STZP[]
Initial value:

Register settings for Self-Test in Z Axis (Positive polarity).

Definition at line 114 of file fxls8974cf_freemaster_demo.c.

◆ FXLS8974_ALL_REG_READ

const registerreadlist_t FXLS8974_ALL_REG_READ[]
Initial value:
= {{.readFrom = FXLS8974_INT_STATUS, .numBytes = FXLS8974_NUM_REGISTERS},
#define FXLS8974_NUM_REGISTERS
#define __END_READ_DATA__
Definition: sensor_drv.h:51

FXLS8974 register list to read all registers.

Definition at line 145 of file fxls8974cf_freemaster_demo.c.

◆ gSystick

int32_t gSystick

Definition at line 244 of file fxls8974cf_freemaster_demo.c.

◆ offnoise_data

fxls8974_offset_noise_t offnoise_data

Definition at line 234 of file fxls8974cf_freemaster_demo.c.

◆ prev_toggle

uint8_t prev_toggle = 1

Definition at line 236 of file fxls8974cf_freemaster_demo.c.

◆ rawData

Definition at line 232 of file fxls8974cf_freemaster_demo.c.

◆ recBuffCfg

FMSTR_REC_BUFF recBuffCfg

Definition at line 240 of file fxls8974cf_freemaster_demo.c.

Referenced by FMSTR_TSA_TABLE_BEGIN().

◆ recCfg

FMSTR_REC_CFG recCfg

Definition at line 242 of file fxls8974cf_freemaster_demo.c.

◆ recVar

FMSTR_REC_VAR recVar

Definition at line 241 of file fxls8974cf_freemaster_demo.c.

◆ registers

fxls8974_allregs_t registers

Definition at line 233 of file fxls8974cf_freemaster_demo.c.

◆ selftest

Definition at line 235 of file fxls8974cf_freemaster_demo.c.

◆ status

int32_t status

◆ XSTN

int16_t XSTN[2] ={0,0}

Definition at line 250 of file fxls8974cf_freemaster_demo.c.

Referenced by perform_selftest().

◆ XSTP

int16_t XSTP[2] ={0,0}

Definition at line 250 of file fxls8974cf_freemaster_demo.c.

Referenced by perform_selftest().

◆ YSTN

int16_t YSTN[2] ={0,0}

Definition at line 250 of file fxls8974cf_freemaster_demo.c.

Referenced by perform_selftest().

◆ YSTP

int16_t YSTP[2] ={0,0}

Definition at line 250 of file fxls8974cf_freemaster_demo.c.

Referenced by perform_selftest().

◆ ZSTN

int16_t ZSTN[2] ={0,0}

Definition at line 250 of file fxls8974cf_freemaster_demo.c.

Referenced by perform_selftest().

◆ ZSTP

int16_t ZSTP[2] ={0,0}

Definition at line 250 of file fxls8974cf_freemaster_demo.c.

Referenced by perform_selftest().