ISSDK  1.8
IoT Sensing Software Development Kit
fxls8471_demo.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, Freescale Semiconductor, Inc.
3  * Copyright 2016-2017 NXP
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 /**
10  * @file fxls8471_demo.c
11  * @brief The fxls8471_demo.c file implements the ISSDK FXLS8471 sensor
12  * demo example demonstration with interrupt mode.
13  */
14 
15 //-----------------------------------------------------------------------
16 // SDK Includes
17 //-----------------------------------------------------------------------
18 #include "board.h"
19 #include "pin_mux.h"
20 #include "clock_config.h"
21 
22 //-----------------------------------------------------------------------
23 // CMSIS Includes
24 //-----------------------------------------------------------------------
25 #include "Driver_SPI.h"
26 #include "Driver_USART.h"
27 
28 //-----------------------------------------------------------------------
29 // ISSDK Includes
30 //-----------------------------------------------------------------------
31 #include "issdk_hal.h"
32 #include "gpio_driver.h"
33 #include "host_io_uart.h"
34 #include "systick_utils.h"
35 #include "fxls8471q_drv.h"
36 #include "auto_detection_service.h"
37 
38 //-----------------------------------------------------------------------
39 // Macros
40 //-----------------------------------------------------------------------
41 #define FXLS8471_STREAM_DATA_SIZE 11
42 /*! @brief Unique Name for this application which should match the target GUI pkg name. */
43 #define APPLICATION_NAME "FXLS8471 Accelerometer Demo"
44 /*! @brief Version to distinguish between instances the same application based on target Shield and updates. */
45 #define APPLICATION_VERSION "2.5"
46 
47 typedef struct
48 {
49  uint32_t timestamp; /*! The time, this sample was recorded. */
50  int16_t accel[3]; /*!< The accel data */
51  uint8_t intsrc;
53 
54 //-----------------------------------------------------------------------
55 // Constants
56 //-----------------------------------------------------------------------
57 /*! Prepare the register write list to configure FXLS8471Q in non-FIFO mode. */
59  /*! Clear F_SETUP. */
60  {FXLS8471Q_F_SETUP, 0x00, 0x00},
61  /*! Set FS Range 2G. */
63  /*! Configure CTRL_REG1 register to put FXLS8471Q to 100Hz sampling rate. */
65  /*! Configure CTRL_REG2 register to put FXLS8471Q to High Resolution mode. */
67  /*! Configure settings for interrupt notification. */
68  /*! Active High, Push-Pull */
71  //{FXLS8471Q_CTRL_REG4, FXLS8471Q_CTRL_REG4_INT_EN_DRDY_ENABLED,
72  // FXLS8471Q_CTRL_REG4_INT_EN_DRDY_MASK}, /*! Data Ready Event. */
74  {FXLS8471Q_CTRL_REG4,255,0x00},
75 
76  //PL registers
79  {FXLS8471Q_PL_COUNT, 0x40, 0x00},//FF
82  {FXLS8471Q_PL_THS_REG,132,0x00},
83 
84 
85  //Freefall registers
92  //{FXLS8471Q_A_FFMT_THS,FXLS8471Q_A_FFMT_THS_DBCNTM_CLR,FXLS8471Q_A_FFMT_THS_THS_MASK},
93  {FXLS8471Q_A_FFMT_COUNT,6,0x00},//2
94 
95  //Pulse registers
96  {FXLS8471Q_PULSE_CFG,21,0x00},
97  {FXLS8471Q_PULSE_TMLT,80,0x00},//48
98  {FXLS8471Q_PULSE_LTCY,240,0x00},
99  {FXLS8471Q_PULSE_THSX,55,0x00},
100  {FXLS8471Q_PULSE_THSY,55,0x00},
101  {FXLS8471Q_PULSE_THSZ,82,0x00},
102 
103  //VECM
104  { FXLS8471Q_A_VECM_CNT,15,0x00},
105  { FXLS8471Q_A_VECM_THS_LSB,88,0x00},
106  { FXLS8471Q_A_VECM_CFG,72,0x00},
110 
111 /*! Prepare the register read list to read the raw accel data from the FXLS8471Q. */
114 
116  {.readFrom = FXLS8471Q_INT_SOURCE, .numBytes = 1}, __END_READ_DATA__};
117 
119  {.readFrom = FXLS8471Q_A_FFMT_SRC , .numBytes = 1}, __END_READ_DATA__};
120 
122  {.readFrom = FXLS8471Q_PL_STATUS, .numBytes = 1}, __END_READ_DATA__};
123 
124 //-----------------------------------------------------------------------
125 // Global Variables
126 //-----------------------------------------------------------------------
129 volatile bool bStreamingEnabled = false, bFxls8471DataReady = false, bFxls8471Ready = false;
130 uint8_t gStreamID; /* The auto assigned Stream ID. */
133 
134 //-----------------------------------------------------------------------
135 // Functions
136 //-----------------------------------------------------------------------
137 /* This is the Sensor Data Ready ISR implementation.*/
138 void fxls8471_int_data_ready_callback(void *pUserData)
139 { /*! @brief Set flag to indicate Sensor has signalled data ready. */
140  bFxls8471DataReady = true;
141 }
142 
143 /* Handler for Device Info and Streaming Control Commands. */
145  uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)
146 {
147  bool success = false;
148 
149  /* If it is Host requesting Device Info, send Board Name and Shield Name. */
150  if (tag == HOST_PRO_INT_DEV_TAG)
151  { /* Byte 1 : Payload - Length of APPLICATION_NAME (b)
152  * Bytes=b : Payload Application Name
153  * Byte b+1 : Payload - Length of BOARD_NAME (s)
154  * Bytes=s : Payload Board Name
155  * Byte b+s+2 : Payload - Length of SHIELD_NAME (v)
156  * Bytes=v : Payload Shield Name */
157 
158  size_t appNameLen = strlen(embAppName);
159  size_t boardNameLen = strlen(boardString);
160  size_t shieldNameLen = strlen(shieldString);
161 
162  if (respBufferSize >= boardNameLen + shieldNameLen + appNameLen + 3)
163  { /* We have sufficient buffer. */
164  *hostMsgSize = 0;
165  }
166  else
167  {
168  return false;
169  }
170 
171  hostResponse[*hostMsgSize] = appNameLen;
172  *hostMsgSize += 1;
173 
174  memcpy(hostResponse + *hostMsgSize, embAppName, appNameLen);
175  *hostMsgSize += appNameLen;
176 
177  hostResponse[*hostMsgSize] = boardNameLen;
178  *hostMsgSize += 1;
179 
180  memcpy(hostResponse + *hostMsgSize, boardString, boardNameLen);
181  *hostMsgSize += boardNameLen;
182 
183  hostResponse[*hostMsgSize] = shieldNameLen;
184  *hostMsgSize += 1;
185 
186  memcpy(hostResponse + *hostMsgSize, shieldString, shieldNameLen);
187  *hostMsgSize += shieldNameLen;
188 
189  return true;
190  }
191 
192  /* If it is Host sending Streaming Commands, take necessary actions. */
193  if ((tag == (HOST_PRO_INT_CMD_TAG | HOST_PRO_CMD_W_CFG_TAG)) &&
195  { /* Byte 1 : Payload - Operation Code (Start/Stop Operation Code)
196  * Byte 2 : Payload - Stream ID (Target Stream for carrying out operation) */
197  switch (hostCommand[0]) /* Execute desired operation (Start/Stop) on the requested Stream. */
198  {
199  case HOST_CMD_START:
200  if (hostCommand[1] == gStreamID && bFxls8471Ready && bStreamingEnabled == false)
201  {
203  bStreamingEnabled = true;
204  success = true;
205  }
206  break;
207  case HOST_CMD_STOP:
208  if (hostCommand[1] == gStreamID && bFxls8471Ready && bStreamingEnabled == true)
209  {
210  pGpioDriver->clr_pin(&GREEN_LED);
211  bStreamingEnabled = false;
212  success = true;
213  }
214  break;
215  default:
216  break;
217  }
218  *hostMsgSize = 0; /* Zero payload in response. */
219  }
220 
221  return success;
222 }
223 
224 /*!
225  * @brief Main function
226  */
227 int main(void)
228 {
229  int32_t status;
231  fxls8471q_spi_sensorhandle_t fxls8471Driver;
233 
234  ARM_DRIVER_SPI *pSPIdriver = &SPI_S_DRIVER;
235  ARM_DRIVER_USART *pUartDriver = &HOST_S_DRIVER;
236 
237  /*! Initialize the MCU hardware. */
240 
241  /* Create the Short Application Name String for ADS. */
242  sprintf(embAppName, "%s:%s", APPLICATION_NAME, APPLICATION_VERSION);
243 
244  /* Run ADS. */
246 
247  /* Create the Full Application Name String for Device Info Response. */
249 
250  /*! Initialize FXLS8471 pin used by FRDM board */
252 
253  /*! Initialize RGB LED pin used by FRDM board */
254  pGpioDriver->pin_init(&GREEN_LED, GPIO_DIRECTION_OUT, NULL, NULL, NULL);
255 
256  /*! Initialize the SPI driver. */
257  status = pSPIdriver->Initialize(SPI_S_SIGNAL_EVENT);
258  if (ARM_DRIVER_OK != status)
259  {
260  return -1;
261  }
262 
263  /*! Set the SPI Power mode. */
264  status = pSPIdriver->PowerControl(ARM_POWER_FULL);
265  if (ARM_DRIVER_OK != status)
266  {
267  return -1;
268  }
269 
270  /*! Set the SPI Slave speed. */
271  status = pSPIdriver->Control(ARM_SPI_MODE_MASTER | ARM_SPI_CPOL0_CPHA0, SPI_S_BAUDRATE);
272  if (ARM_DRIVER_OK != status)
273  {
274  return -1;
275  }
276 
277  /*! Initialize the UART driver. */
278  status = pUartDriver->Initialize(HOST_S_SIGNAL_EVENT);
279  if (ARM_DRIVER_OK != status)
280  {
281  return -1;
282  }
283 
284  /*! Set the UART Power mode. */
285  status = pUartDriver->PowerControl(ARM_POWER_FULL);
286  if (ARM_DRIVER_OK != status)
287  {
288  return -1;
289  }
290 
291  /*! Set UART Baud Rate. */
292  status = pUartDriver->Control(ARM_USART_MODE_ASYNCHRONOUS, BOARD_DEBUG_UART_BAUDRATE);
293  if (ARM_DRIVER_OK != status)
294  {
295  return -1;
296  }
297 
298  /*! Initialize FXLS8471 sensor driver. */
301  if (SENSOR_ERROR_NONE == status)
302  {
303  /*! Set the task to be executed while waiting for SPI transactions to complete. */
305 
306  /*! Configure the FXLS8471 sensor. */
307  status = FXLS8471Q_SPI_Configure(&fxls8471Driver, cFxls8471q_Config_Isr);
308  if (SENSOR_ERROR_NONE == status)
309  {
310  bFxls8471Ready = true;
311  }
312  }
313 
314  /*! Initialize streaming and assign a Stream ID. */
315  gStreamID = Host_IO_Init(pUartDriver, (void *)fxls8471Driver.pCommDrv, &fxls8471Driver.deviceInfo,
317  /* Confirm if a valid Stream ID has been allocated for this stream. */
318  if (0 == gStreamID)
319  {
320  bFxls8471Ready = false;
321  }
322  else
323  {
324  /*! Populate streaming header. */
326  pGpioDriver->clr_pin(&GREEN_LED);
327  }
328 
329  for (;;) /* Forever loop */
330  { /* Call UART Non-Blocking Receive. */
332 
333  /* Process packets only if streaming has been enabled by Host and ISR is available.
334  * In ISR Mode we do not need to check Data Ready Register.
335  * The receipt of interrupt will indicate data is ready. */
336  if (false == bStreamingEnabled || false == bFxls8471DataReady)
337  {
338  SMC_SetPowerModeWait(SMC); /* Power save, wait if nothing to do. */
339  continue;
340  }
341  else
342  { /*! Clear the data ready flag, it will be set again by the ISR. */
343  bFxls8471DataReady = false;
344  pGpioDriver->toggle_pin(&GREEN_LED);
345  }
346 
347  /*! Read new raw sensor data from the FXLS8471. */
348  status = FXLS8471Q_SPI_ReadData(&fxls8471Driver, cFxls8471q_Output_Values, data);
349  if (ARM_DRIVER_OK != status)
350  { /* Loop, if sample read failed. */
351  continue;
352  }
353 
354  /* Update timestamp from Systick framework. */
356 
357  /*! Convert the raw sensor data to signed 16-bit container for display to the debug port. */
358  rawData.accel[0] = ((int16_t)data[0] << 8) | (int16_t)data[1];
359  rawData.accel[0] /= 4;
360  rawData.accel[1] = ((int16_t)data[2] << 8) | (int16_t)data[3];
361  rawData.accel[1] /= 4;
362  rawData.accel[2] = ((int16_t)data[4] << 8) | (int16_t)data[5];
363  rawData.accel[2] /= 4;
364 
365  status = FXLS8471Q_SPI_ReadData(&fxls8471Driver, cFxls8471q_int_src, &regdata);
366 
367  // The following condition checks for multiple interrupts occurring at the same time and sends only one out as per occurrence order.
368  // Check for Free-fall interrupt
369  if((regdata & 0x04) == 0x04)
370  {
371  rawData.intsrc = 0x04;
372  }
373  // Check for Vector Magnitude change interrupt
374  else if((regdata & 0x02) == 0x02)
375  {
376  rawData.intsrc = 0x02;
377  }
378  // Else send other interrupts
379  else
380  {
381  rawData.intsrc = regdata;
382  }
383 
384  // read FFMT/PL/interrupt source registers to clear flags
385  status = FXLS8471Q_SPI_ReadData(&fxls8471Driver, cFxls8471q_int_src, &regdata);
386  status = FXLS8471Q_SPI_ReadData(&fxls8471Driver, cFxls8471q_ffmt_src, &regdata);
387  status = FXLS8471Q_SPI_ReadData(&fxls8471Driver, cFxls8471q_pl_status, &regdata);
388 
389  /* Copy Raw samples to Streaming Buffer. */
390  memcpy(streamingPacket + STREAMING_HEADER_LEN, &rawData, FXLS8471_STREAM_DATA_SIZE);
391  /* Send streaming packet to Host. */
392  Host_IO_Send(streamingPacket, sizeof(streamingPacket), HOST_FORMAT_HDLC);
393  }
394 }
#define FXLS8471Q_CTRL_REG5_INT_CFG_DRDY_MASK
Definition: fxls8471q.h:1946
This defines the sensor specific information for SPI.
Definition: fxls8471q_drv.h:31
#define FXLS8471_SPI_CS
#define FXLS8471Q_XYZ_DATA_CFG_FS_FS_RANGE_2G
Definition: fxls8471q.h:546
uint8_t Host_IO_Init(ARM_DRIVER_USART *pDrv, void *pBus, void *pDevInfo, void *spiSlaveParams, uint16_t slaveAddress)
Definition: host_io_uart.c:100
void Host_IO_Receive(host_cmd_proc_fn_t process_host_command, uint8_t encoding)
Definition: host_io_uart.c:207
registerDeviceInfo_t deviceInfo
Definition: fxls8471q_drv.h:33
This structure defines the Write command List.
Definition: sensor_drv.h:68
#define FXLS8471Q_A_FFMT_CFG_ELE_ENABLED
Definition: fxls8471q.h:896
int32_t status
#define FXLS8471Q_A_FFMT_CFG_OAE_FREEFALL
Definition: fxls8471q.h:893
int32_t FXLS8471Q_SPI_Initialize(fxls8471q_spi_sensorhandle_t *pSensorHandle, ARM_DRIVER_SPI *pBus, uint8_t index, void *pSlaveSelect, uint8_t whoAmi)
The interface function to initialize the sensor for I2C.
Definition: fxls8471q_drv.c:67
int32_t FXLS8471Q_SPI_ReadData(fxls8471q_spi_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
status_t SMC_SetPowerModeVlpr(void *arg)
Configures the system to VLPR power mode. API name used from Kinetis family to maintain compatibility...
Definition: lpc54114.c:169
The host_io_uart.h file contains the Host Protocol interface definitions and configuration.
#define FXLS8471Q_CTRL_REG3_PP_OD_PUSHPULL
Definition: fxls8471q.h:1804
#define FXLS8471Q_CTRL_REG5_INT_CFG_DRDY_INT1
Definition: fxls8471q.h:1975
#define FXLS8471Q_CTRL_REG2_MODS_HIGHRES
Definition: fxls8471q.h:1728
#define FXLS8471Q_A_FFMT_CFG_YEFE_MASK
Definition: fxls8471q.h:868
#define HOST_PRO_CMD_W_CFG_TAG
Definition: host_io_uart.h:63
#define FXLS8471Q_ACCEL_DATA_SIZE
The size of the FXLS8471Q accel data.
Definition: fxls8471q_drv.h:48
Access structure of the GPIO Driver.
Definition: Driver_GPIO.h:38
char boardString[ADS_MAX_STRING_LENGTH]
#define SMC
Definition: lpc54114.h:118
#define FXLS8471Q_CTRL_REG3_PP_OD_MASK
Definition: fxls8471q.h:1776
The fxls8471q_drv.h file describes the fxls8471q driver interface and structures. ...
void FXLS8471Q_SPI_SetIdleTask(fxls8471q_spi_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the SPI Idle Task.
#define __END_WRITE_DATA__
Definition: sensor_drv.h:45
#define FXLS8471Q_A_FFMT_CFG_ZEFE_MASK
Definition: fxls8471q.h:871
#define FXLS8471Q_WHO_AM_I_WHOAMI_VALUE
Definition: fxls8471q.h:512
void fxls8471_int_data_ready_callback(void *pUserData)
void(* clr_pin)(pinID_t aPinId)
Definition: Driver_GPIO.h:47
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
#define HOST_S_SIGNAL_EVENT
Definition: frdm_k64f.h:94
#define FXLS8471Q_PL_CFG_DBCNTM_MASK
Definition: fxls8471q.h:690
#define SPI_S_BAUDRATE
Transfer baudrate - 500k.
Definition: frdm_k64f.h:88
char embAppName[ADS_MAX_STRING_LENGTH]
#define SPI_S_DEVICE_INDEX
Definition: frdm_k64f.h:89
#define FXLS8471_INT1
#define FXLS8471Q_PL_BF_ZCOMP_BKFR_MASK
Definition: fxls8471q.h:757
void Host_IO_Add_ISO_Header(uint8_t streamID, uint8_t *pStreamingPacket, size_t sizePayload)
Definition: host_io_uart.c:86
#define BOARD_DEBUG_UART_BAUDRATE
Definition: board.h:31
#define BOARD_BootClockRUN
Definition: clock_config.h:19
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
Definition: sensor_drv.h:97
const registerwritelist_t cFxls8471q_Config_Isr[]
Definition: fxls8471_demo.c:58
#define APPLICATION_VERSION
Version to distinguish between instances the same application based on target Shield and updates...
Definition: fxls8471_demo.c:45
#define FXLS8471Q_A_FFMT_CFG_ZEFE_ENABLED
Definition: fxls8471q.h:891
#define FXLS8471Q_A_FFMT_CFG_ELE_MASK
Definition: fxls8471q.h:877
uint8_t streamingPacket[STREAMING_HEADER_LEN+FXLS8962_STREAM_DATA_SIZE]
GENERIC_DRIVER_GPIO Driver_GPIO_KSDK
Definition: gpio_driver.c:177
void Host_IO_Send(uint8_t *pMsg, size_t size, uint8_t encoding)
Definition: host_io_uart.c:136
void BOARD_SystickStart(int32_t *pStart)
Function to Record the Start systick.
Definition: systick_utils.c:44
int main(void)
Main function.
uint32_t BOARD_SystickElapsedTime_us(int32_t *pStart)
Function to compute the Elapsed Time.
Definition: systick_utils.c:64
spiSlaveSpecificParams_t slaveParams
Definition: fxls8471q_drv.h:36
uint8_t data[FXLS8962_DATA_SIZE]
#define FXLS8471Q_A_FFMT_CFG_YEFE_ENABLED
Definition: fxls8471q.h:888
#define __END_READ_DATA__
Definition: sensor_drv.h:51
#define HOST_PRO_INT_DEV_TAG
Definition: host_io_uart.h:59
#define FXLS8471Q_PL_CFG_PL_EN_ENABLED
Definition: fxls8471q.h:698
void BOARD_RunADS(const char *appName, char *boardString, char *shieldString, size_t bufferLength)
The function to register Application Name and initialte ADS.
#define FXLS8471Q_CTRL_REG3_IPOL_MASK
Definition: fxls8471q.h:1779
volatile bool bFxls8471DataReady
#define FXLS8471Q_PL_BF_ZCOMP_ZLOCK_MASK
Definition: fxls8471q.h:754
GENERIC_DRIVER_GPIO * pGpioDriver
fxos8700_accelmagdata_t rawData
volatile bool bFxls8471Ready
#define FXLS8471_STREAM_DATA_SIZE
Definition: fxls8471_demo.c:41
#define FXLS8471Q_PL_CFG_DBCNTM_CLR
Definition: fxls8471q.h:701
bool process_host_command(uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)
#define FXLS8471Q_CTRL_REG3_IPOL_HIGH
Definition: fxls8471q.h:1807
#define APPLICATION_NAME
Unique Name for this application which should match the target GUI pkg name.
Definition: fxls8471_demo.c:43
#define FXLS8471Q_CTRL_REG2_MODS_MASK
Definition: fxls8471q.h:1707
#define FXLS8471Q_CTRL_REG1_DR_100HZ
Definition: fxls8471q.h:1667
uint16_t readFrom
Definition: sensor_drv.h:80
uint8_t gStreamID
#define FXLS8471Q_XYZ_DATA_CFG_FS_MASK
Definition: fxls8471q.h:536
char shieldString[ADS_MAX_STRING_LENGTH]
void(* toggle_pin)(pinID_t aPinId)
Definition: Driver_GPIO.h:48
#define ADS_MAX_STRING_LENGTH
#define FXLS8471Q_A_FFMT_CFG_XEFE_ENABLED
Definition: fxls8471q.h:885
const registerreadlist_t cFxls8471q_ffmt_src[]
const registerreadlist_t cFxls8471q_Output_Values[]
#define FXLS8471Q_CTRL_REG1_DR_MASK
Definition: fxls8471q.h:1648
volatile bool bStreamingEnabled
#define FXLS8471Q_A_VECM_THS_MSB_A_VECM_THS_MASK
Definition: fxls8471q.h:2160
void BOARD_SystickEnable(void)
Function to enable systicks framework.
Definition: systick_utils.c:35
#define STREAMING_HEADER_LEN
Definition: host_io_uart.h:25
status_t SMC_SetPowerModeWait(void *arg)
Configures the system to WAIT power mode. API name used from Kinetis family to maintain compatibility...
Definition: lpc54114.c:155
void(* pin_init)(pinID_t aPinId, gpio_direction_t dir, void *apPinConfig, gpio_isr_handler_t aIsrHandler, void *apUserData)
Definition: Driver_GPIO.h:41
This structure defines the Read command List.
Definition: sensor_drv.h:78
int32_t gSystick
ARM Systick Utilities.
#define SPI_S_DRIVER
Definition: frdm_k64f.h:87
#define FXLS8471Q_I2C_ADDRESS_SA0_0_SA1_0
Definition: fxls8471q.h:20
gpioHandleKSDK_t GREEN_LED
Definition: frdm_k64f.c:188
#define SPI_S_SIGNAL_EVENT
Definition: frdm_k64f.h:90
#define FXLS8471Q_A_VECM_THS_MSB_A_VECM_DBCNTM_MASK
Definition: fxls8471q.h:2163
const registerreadlist_t cFxls8471q_int_src[]
#define HOST_PRO_INT_CMD_TAG
Bit aligned values for Host Protocol Interface IDs (Bits 5-6).
Definition: host_io_uart.h:57
#define FXLS8471Q_A_FFMT_THS_THS_MASK
Definition: fxls8471q.h:995
#define SHIELD_NAME
const registerreadlist_t cFxls8471q_pl_status[]
#define FXLS8471Q_A_FFMT_CFG_OAE_MASK
Definition: fxls8471q.h:874
int32_t FXLS8471Q_SPI_Configure(fxls8471q_spi_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
#define FXLS8471Q_A_FFMT_CFG_XEFE_MASK
Definition: fxls8471q.h:865
#define FXLS8471Q_PL_CFG_PL_EN_MASK
Definition: fxls8471q.h:687
#define HOST_S_DRIVER
Definition: frdm_k64f.h:93