ISSDK  1.8
IoT Sensing Software Development Kit
fxos8700_poll_demo.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 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 fxos8700_demo.c
11  * @brief The fxos8700_demo.c file implements the ISSDK FXOS8700 sensor
12  * driver example demonstration with Poll 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_I2C.h"
26 #include "Driver_USART.h"
27 
28 //-----------------------------------------------------------------------
29 // ISSDK Includes
30 //-----------------------------------------------------------------------
31 #include "issdk_hal.h"
32 #include "gpio_driver.h"
33 #include "fxos8700_drv.h"
34 #include "host_io_uart.h"
35 #include "systick_utils.h"
36 #include "auto_detection_service.h"
37 
38 //-----------------------------------------------------------------------
39 // Macros
40 //-----------------------------------------------------------------------
41 #define RAW_ACCEL_MAG_DATA_SIZE 12
42 #define FXOS8700_STREAM_DATA_SIZE 17
43 
44 /*! @brief Unique Name for this application which should match the target GUI pkg name. */
45 #define APPLICATION_NAME "FXOS8700 6-axis (Accel, Mag) Demo"
46 /*! @brief Version to distinguish between instances the same application based on target Shield and updates. */
47 #define APPLICATION_VERSION "2.5"
48 
49 /*! @brief This structure defines the fxos8700 raw data buffer.*/
50 typedef struct
51 {
52  uint32_t timestamp; /*! The time, this sample was recorded. */
53  int16_t accel[3]; /*!< The accel data */
54  int16_t mag[3]; /*!< The mag data */
55  uint8_t intsrc;
57 
58 //-----------------------------------------------------------------------
59 // Constants
60 //-----------------------------------------------------------------------
61 /*! Prepare the register write list to configure FXOS8700 in non-FIFO mode. */
63  /*! Clear F_SETUP. */
64  {FXOS8700_F_SETUP, 0x00, 0x00},
65  /*! Set FS 2G Mode. */
67  /*! Configure the FXOS8700 to 100Hz sampling rate. */
69  /*! Configure the FXOS8700 to Set High Resolution Mode. */
74  {FXOS8700_CTRL_REG5,0x7E,0x00},
75  {FXOS8700_CTRL_REG4,255,0x00},
76 
77  //PL registers
80  {FXOS8700_PL_COUNT, 0x40, 0x00},//ff
83  {FXOS8700_PL_THS_REG,132,0x00},
84 
85  //Freefall registers
91  {FXOS8700_A_FFMT_COUNT,6,0x00},
92 
93  //Pulse registers
94  {FXOS8700_PULSE_CFG,21,0x00},
95  {FXOS8700_PULSE_TMLT,80,0x00},
96  {FXOS8700_PULSE_LTCY,240,0x00},
97  {FXOS8700_PULSE_THSX,55,0x00},
98  {FXOS8700_PULSE_THSY,55,0x00},
99  {FXOS8700_PULSE_THSZ,82,0x00},
100 
101  //VECM
102  { FXOS8700_A_VECM_CNT,15,0x00},
103  { FXOS8700_A_VECM_THS_LSB,88,0x00},
104  { FXOS8700_A_VECM_CFG,72,0x00},
107 
109 
110 /*! Command definition to read the Accel+Mag Data */
113 
114 /*! Command definition to read the Data Ready Status */
116 
118  {.readFrom = FXOS8700_INT_SOURCE, .numBytes = 1}, __END_READ_DATA__};
119 
121  {.readFrom = FXOS8700_A_FFMT_SRC , .numBytes = 1}, __END_READ_DATA__};
122 
124  {.readFrom = FXOS8700_PL_STATUS, .numBytes = 1}, __END_READ_DATA__};
125 
126 //-----------------------------------------------------------------------
127 // Global Variables
128 //-----------------------------------------------------------------------
131 volatile bool bStreamingEnabled = false, bFxos8700Ready = false;
132 uint8_t gStreamID; /* The auto assigned Stream ID. */
135 
136 //-----------------------------------------------------------------------
137 // Functions
138 //-----------------------------------------------------------------------
139 /* Handler for Device Info and Streaming Control Commands. */
141  uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)
142 {
143  bool success = false;
144 
145  /* If it is Host requesting Device Info, send Board Name and Shield Name. */
146  if (tag == HOST_PRO_INT_DEV_TAG)
147  { /* Byte 1 : Payload - Length of APPLICATION_NAME (b)
148  * Bytes=b : Payload Application Name
149  * Byte b+1 : Payload - Length of BOARD_NAME (s)
150  * Bytes=s : Payload Board Name
151  * Byte b+s+2 : Payload - Length of SHIELD_NAME (v)
152  * Bytes=v : Payload Shield Name */
153 
154  size_t appNameLen = strlen(embAppName);
155  size_t boardNameLen = strlen(boardString);
156  size_t shieldNameLen = strlen(shieldString);
157 
158  if (respBufferSize >= boardNameLen + shieldNameLen + appNameLen + 3)
159  { /* We have sufficient buffer. */
160  *hostMsgSize = 0;
161  }
162  else
163  {
164  return false;
165  }
166 
167  hostResponse[*hostMsgSize] = appNameLen;
168  *hostMsgSize += 1;
169 
170  memcpy(hostResponse + *hostMsgSize, embAppName, appNameLen);
171  *hostMsgSize += appNameLen;
172 
173  hostResponse[*hostMsgSize] = boardNameLen;
174  *hostMsgSize += 1;
175 
176  memcpy(hostResponse + *hostMsgSize, boardString, boardNameLen);
177  *hostMsgSize += boardNameLen;
178 
179  hostResponse[*hostMsgSize] = shieldNameLen;
180  *hostMsgSize += 1;
181 
182  memcpy(hostResponse + *hostMsgSize, shieldString, shieldNameLen);
183  *hostMsgSize += shieldNameLen;
184 
185  return true;
186  }
187 
188  /* If it is Host sending Streaming Commands, take necessary actions. */
189  if ((tag == (HOST_PRO_INT_CMD_TAG | HOST_PRO_CMD_W_CFG_TAG)) &&
191  { /* Byte 1 : Payload - Operation Code (Start/Stop Operation Code)
192  * Byte 2 : Payload - Stream ID (Target Stream for carrying out operation) */
193  switch (hostCommand[0]) /* Execute desired operation (Start/Stop) on the requested Stream. */
194  {
195  case HOST_CMD_START:
196  if (hostCommand[1] == gStreamID && bFxos8700Ready && bStreamingEnabled == false)
197  {
199  bStreamingEnabled = true;
200  success = true;
201  }
202  break;
203  case HOST_CMD_STOP:
204  if (hostCommand[1] == gStreamID && bFxos8700Ready && bStreamingEnabled == true)
205  {
206  pGpioDriver->clr_pin(&GREEN_LED);
207  bStreamingEnabled = false;
208  success = true;
209  }
210  break;
211  default:
212  break;
213  }
214  *hostMsgSize = 0; /* Zero payload in response. */
215  }
216 
217  return success;
218 }
219 
220 /*!
221  * @brief Main function
222  */
223 int main(void)
224 {
225  int32_t status;
227 
228  fxos8700_i2c_sensorhandle_t fxos8700Driver;
230 
231  ARM_DRIVER_I2C *I2Cdrv = &I2C_S_DRIVER;
232  ARM_DRIVER_USART *pUartDriver = &HOST_S_DRIVER;
233 
234  /*! Initialize the MCU hardware. */
237 
238  /* Create the Short Application Name String for ADS. */
239  sprintf(embAppName, "%s:%s", APPLICATION_NAME, APPLICATION_VERSION);
240 
241  /* Run ADS. */
243 
244  /* Create the Full Application Name String for Device Info Response. */
246 
247  /*! Initialize RGB LED pin used by FRDM board */
248  pGpioDriver->pin_init(&GREEN_LED, GPIO_DIRECTION_OUT, NULL, NULL, NULL);
249 
250  /*! Initialize the I2C driver. */
251  status = I2Cdrv->Initialize(I2C_S_SIGNAL_EVENT);
252  if (ARM_DRIVER_OK != status)
253  {
254  return -1;
255  }
256 
257  /*! Set the I2C Power mode. */
258  status = I2Cdrv->PowerControl(ARM_POWER_FULL);
259  if (ARM_DRIVER_OK != status)
260  {
261  return -1;
262  }
263 
264  /*! Set the I2C bus speed. */
265  status = I2Cdrv->Control(ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_FAST);
266  if (ARM_DRIVER_OK != status)
267  {
268  return -1;
269  }
270 
271  /*! Initialize the UART driver. */
272  status = pUartDriver->Initialize(HOST_S_SIGNAL_EVENT);
273  if (ARM_DRIVER_OK != status)
274  {
275  return -1;
276  }
277 
278  /*! Set the UART Power mode. */
279  status = pUartDriver->PowerControl(ARM_POWER_FULL);
280  if (ARM_DRIVER_OK != status)
281  {
282  return -1;
283  }
284 
285  /*! Set UART Baud Rate. */
286  status = pUartDriver->Control(ARM_USART_MODE_ASYNCHRONOUS, BOARD_DEBUG_UART_BAUDRATE);
287  if (ARM_DRIVER_OK != status)
288  {
289  return -1;
290  }
291 
292  /*! Initialize the FXOS8700 sensor driver. */
295  if (SENSOR_ERROR_NONE == status)
296  {
297  /*! Set the task to be executed while waiting for I2C transactions to complete. */
299 
300  /*! Configure the fxos8700 sensor driver. */
301  status = FXOS8700_I2C_Configure(&fxos8700Driver, fxos8700_Config_InterruptHybrid);
302  if (SENSOR_ERROR_NONE == status)
303  {
304  bFxos8700Ready = true;
305  }
306  }
307 
308  /*! Initialize streaming and assign a Stream ID. */
309  gStreamID =
310  Host_IO_Init(pUartDriver, (void *)fxos8700Driver.pCommDrv, &fxos8700Driver.deviceInfo, NULL, FXOS8700_I2C_ADDR);
311  /* Confirm if a valid Stream ID has been allocated for this stream. */
312  if (0 == gStreamID)
313  {
314  bFxos8700Ready = false;
315  }
316  else
317  {
318  /*! Populate streaming header. */
320  pGpioDriver->clr_pin(&GREEN_LED);
321  }
322 
323  for (;;) /* Forever loop */
324  { /* Call UART Non-Blocking Receive. */
326 
327  /* Process packets only if streaming has been enabled by Host and ISR is available.
328  * In ISR Mode we do not need to check Data Ready Register.
329  * The receipt of interrupt will indicate data is ready. */
330  if (false == bStreamingEnabled)
331  {
332  SMC_SetPowerModeWait(SMC); /* Power save, wait if nothing to do. */
333  continue;
334  }
335 
336  do /*! Keep checking the Status FLAG for completion. */
337  {
338  status = FXOS8700_I2C_ReadData(&fxos8700Driver, FXOS8700_STATUS_READ, &dataReady);
339  if (ARM_DRIVER_OK != status)
340  {
341  return -1;
342  }
343  /* Call UART Non-Blocking Receive while waiting for OST. */
345  } /* Loop, untill sample acquisition is not completed. */
346  while (0 == (dataReady & FXOS8700_DR_STATUS_ZYXDR_MASK));
347  pGpioDriver->toggle_pin(&GREEN_LED);
348 
349  /*! Read the raw sensor data from the fxos8700. */
350  status = FXOS8700_I2C_ReadData(&fxos8700Driver, FXOS8700_ACCEL_READ, data);
351  if (ARM_DRIVER_OK != status)
352  { /* Loop, if sample read failed. */
353  continue;
354  }
355 
356  /* Update timestamp from Systick framework. */
358 
359  /*! Convert the raw sensor data to signed 16-bit container for display to the debug port. */
360  rawData.accel[0] = ((int16_t)data[0] << 8) | data[1];
361  rawData.accel[0] /= 4;
362  rawData.accel[1] = ((int16_t)data[2] << 8) | data[3];
363  rawData.accel[1] /= 4;
364  rawData.accel[2] = ((int16_t)data[4] << 8) | data[5];
365  rawData.accel[2] /= 4;
366  rawData.mag[0] = ((int16_t)data[6] << 8) | data[7];
367  rawData.mag[1] = ((int16_t)data[8] << 8) | data[9];
368  rawData.mag[2] = ((int16_t)data[10] << 8) | data[11];
369 
370  status = FXOS8700_I2C_ReadData(&fxos8700Driver, cFXOS8700_int_src, &regdata);
371 
372  // The following condition checks for multiple interrupts occuring at the same time and sends only one out as per order below.
373  // Check for Freefall interrupt
374  if((regdata & 0x04) == 0x04)
375  {
376  rawData.intsrc = 0x04;
377  }
378  // Check for Vector Magnitude change interrupt
379  else if((regdata & 0x02) == 0x02)
380  {
381  rawData.intsrc = 0x02;
382  }
383  // Else send other interrupts
384  else
385  {
386  rawData.intsrc = regdata;
387  }
388 
389  // read FFMT interrupt source register to clear flags
390  status = FXOS8700_I2C_ReadData(&fxos8700Driver, cFXOS8700_int_src, &regdata);
391  status = FXOS8700_I2C_ReadData(&fxos8700Driver, cFXOS8700_ffmt_src, &regdata);
392  status = FXOS8700_I2C_ReadData(&fxos8700Driver, cFXOS8700_pl_status, &regdata);
393 
394  /* Copy Raw samples to Streaming Buffer. */
395  memcpy(streamingPacket + STREAMING_HEADER_LEN, &rawData, FXOS8700_STREAM_DATA_SIZE);
396  /* Send streaming packet to Host. */
397  Host_IO_Send(streamingPacket, sizeof(streamingPacket), HOST_FORMAT_HDLC);
398  }
399 }
int32_t FXOS8700_I2C_Initialize(fxos8700_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t whoAmi)
The interface function to initialize the sensor.
Definition: fxos8700_drv.c:222
#define FXOS8700_PL_CFG_DBCNTM_CLEAR_MODE
Definition: fxos8700.h:779
#define FXOS8700_A_FFMT_CFG_YEFE_RAISE_EVENT
Definition: fxos8700.h:956
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
This structure defines the Write command List.
Definition: sensor_drv.h:68
#define FXOS8700_M_CTRL_REG2_M_AUTOINC_MASK
Definition: fxos8700.h:2634
int32_t status
#define FXOS8700_A_FFMT_CFG_XEFE_MASK
Definition: fxos8700.h:929
ARM_DRIVER_I2C * pCommDrv
Definition: fxos8700_drv.h:47
char boardString[ADS_MAX_STRING_LENGTH]
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
volatile bool bFxos8700Ready
const registerreadlist_t cFXOS8700_int_src[]
#define FXOS8700_M_CTRL_REG1_M_OS_MASK
Definition: fxos8700.h:2550
The host_io_uart.h file contains the Host Protocol interface definitions and configuration.
#define FXOS8700_M_CTRL_REG1_M_HMS_MASK
Definition: fxos8700.h:2547
#define FXOS8700_WHO_AM_I_PROD_VALUE
Definition: fxos8700.h:146
#define FXOS8700_CTRL_REG1_DR_MASK
Definition: fxos8700.h:1504
#define HOST_PRO_CMD_W_CFG_TAG
Definition: host_io_uart.h:63
char embAppName[ADS_MAX_STRING_LENGTH]
Access structure of the GPIO Driver.
Definition: Driver_GPIO.h:38
#define FXOS8700_M_CTRL_REG1_M_HMS_HYBRID_MODE
Definition: fxos8700.h:2595
#define SMC
Definition: lpc54114.h:118
#define FXOS8700_A_FFMT_CFG_OAE_FREEFALL
Definition: fxos8700.h:950
#define __END_WRITE_DATA__
Definition: sensor_drv.h:45
#define FXOS8700_M_CTRL_REG2_M_AUTOINC_HYBRID_MODE
Definition: fxos8700.h:2641
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 FXOS8700_A_FFMT_CFG_OAE_MASK
Definition: fxos8700.h:938
#define APPLICATION_VERSION
Version to distinguish between instances the same application based on target Shield and updates...
#define I2C_S_SIGNAL_EVENT
Definition: issdk_hal.h:34
This defines the sensor specific information for I2C.
Definition: fxos8700_drv.h:44
#define I2C_S_DRIVER
Definition: issdk_hal.h:33
int32_t FXOS8700_I2C_Configure(fxos8700_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
Definition: fxos8700_drv.c:260
void Host_IO_Add_ISO_Header(uint8_t streamID, uint8_t *pStreamingPacket, size_t sizePayload)
Definition: host_io_uart.c:86
#define FXOS8700_STREAM_DATA_SIZE
#define BOARD_DEBUG_UART_BAUDRATE
Definition: board.h:31
int main(void)
Main function.
int32_t FXOS8700_I2C_ReadData(fxos8700_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
Definition: fxos8700_drv.c:305
uint8_t gStreamID
#define BOARD_BootClockRUN
Definition: clock_config.h:19
#define FXOS8700_PL_CFG_DBCNTM_MASK
Definition: fxos8700.h:770
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
Definition: sensor_drv.h:97
uint8_t streamingPacket[STREAMING_HEADER_LEN+FXLS8962_STREAM_DATA_SIZE]
GENERIC_DRIVER_GPIO Driver_GPIO_KSDK
Definition: gpio_driver.c:177
#define FXOS8700_M_CTRL_REG1_M_ACAL_EN
Definition: fxos8700.h:2566
#define FXOS8700_A_FFMT_CFG_ZEFE_RAISE_EVENT
Definition: fxos8700.h:953
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
#define FXOS8700_M_CTRL_REG1_M_ACAL_MASK
Definition: fxos8700.h:2559
This structure defines the fxos8700 raw data buffer.
Definition: fxos8700_demo.c:50
uint32_t BOARD_SystickElapsedTime_us(int32_t *pStart)
Function to compute the Elapsed Time.
Definition: systick_utils.c:64
const registerreadlist_t FXOS8700_STATUS_READ[]
GENERIC_DRIVER_GPIO * pGpioDriver
uint8_t data[FXLS8962_DATA_SIZE]
#define __END_READ_DATA__
Definition: sensor_drv.h:51
const registerwritelist_t fxos8700_Config_InterruptHybrid[]
#define HOST_PRO_INT_DEV_TAG
Definition: host_io_uart.h:59
void BOARD_RunADS(const char *appName, char *boardString, char *shieldString, size_t bufferLength)
The function to register Application Name and initialte ADS.
#define FXOS8700_XYZ_DATA_CFG_FS_MASK
Definition: fxos8700.h:647
#define FXOS8700_CTRL_REG1_DR_HYBRID_100_HZ
Definition: fxos8700.h:1528
bool process_host_command(uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)
#define APPLICATION_NAME
Unique Name for this application which should match the target GUI pkg name.
const registerreadlist_t cFXOS8700_ffmt_src[]
ARM_DRIVER_I2C * I2Cdrv
fxos8700_accelmagdata_t rawData
#define FXOS8700_CTRL_REG2_MODS_HIGH_RES
Definition: fxos8700.h:1599
#define FXOS8700_XYZ_DATA_CFG_FS_2G_0P244
Definition: fxos8700.h:660
#define FXOS8700_A_VECM_THS_MSB_A_VBECM_THS_MASK
Definition: fxos8700.h:2827
volatile bool bStreamingEnabled
uint16_t readFrom
Definition: sensor_drv.h:80
#define FXOS8700_PL_BF_ZCOMP_ZLOCK_MASK
Definition: fxos8700.h:831
void(* toggle_pin)(pinID_t aPinId)
Definition: Driver_GPIO.h:48
#define ADS_MAX_STRING_LENGTH
The fxos8700_drv.h file describes the fxos8700 driver interface and structures.
#define FXOS8700_PL_BF_ZCOMP_BKFR_MASK
Definition: fxos8700.h:834
#define FXOS8700_CTRL_REG2_MODS_MASK
Definition: fxos8700.h:1568
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
#define RAW_ACCEL_MAG_DATA_SIZE
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
ARM Systick Utilities.
gpioHandleKSDK_t GREEN_LED
Definition: frdm_k64f.c:188
#define I2C_S_DEVICE_INDEX
Definition: issdk_hal.h:35
int32_t gSystick
void FXOS8700_I2C_SetIdleTask(fxos8700_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
Definition: fxos8700_drv.c:252
#define FXOS8700_A_FFMT_THS_THS_MASK
Definition: fxos8700.h:1033
#define HOST_PRO_INT_CMD_TAG
Bit aligned values for Host Protocol Interface IDs (Bits 5-6).
Definition: host_io_uart.h:57
#define FXOS8700_PL_CFG_PL_EN_MASK
Definition: fxos8700.h:767
#define FXOS8700_A_VECM_THS_MSB_A_VBECM_DBCNTM_MASK
Definition: fxos8700.h:2830
#define FXOS8700_DR_STATUS_ZYXDR_MASK
Definition: fxos8700.h:186
#define FXOS8700_I2C_ADDR
#define SHIELD_NAME
#define FXOS8700_A_FFMT_CFG_YEFE_MASK
Definition: fxos8700.h:932
#define FXOS8700_A_FFMT_CFG_ZEFE_MASK
Definition: fxos8700.h:935
const registerreadlist_t cFXOS8700_pl_status[]
registerDeviceInfo_t deviceInfo
Definition: fxos8700_drv.h:46
char shieldString[ADS_MAX_STRING_LENGTH]
#define FXOS8700_PL_CFG_PL_EN_ENABLE
Definition: fxos8700.h:782
#define FXOS8700_M_CTRL_REG1_M_OS_OSR0
Definition: fxos8700.h:2577
#define HOST_S_DRIVER
Definition: frdm_k64f.h:93
#define FXOS8700_A_FFMT_CFG_XEFE_RAISE_EVENT
Definition: fxos8700.h:959
const registerreadlist_t FXOS8700_ACCEL_READ[]