ISSDK  1.7
IoT Sensing Software Development Kit
mma865x_demo.c
Go to the documentation of this file.
1 /*
2  * The Clear BSD License
3  * Copyright (c) 2016, Freescale Semiconductor, Inc.
4  * Copyright 2016-2017 NXP
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification,
8  * are permitted (subject to the limitations in the disclaimer below) provided
9  * that the following conditions are met:
10  *
11  * o Redistributions of source code must retain the above copyright notice, this list
12  * of conditions and the following disclaimer.
13  *
14  * o Redistributions in binary form must reproduce the above copyright notice, this
15  * list of conditions and the following disclaimer in the documentation and/or
16  * other materials provided with the distribution.
17  *
18  * o Neither the name of the copyright holder nor the names of its
19  * contributors may be used to endorse or promote products derived from this
20  * software without specific prior written permission.
21  *
22  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 /**
36  * @file mma865x_demo.c
37  * @brief The mma865x_demo.c file implements the ISSDK MMA865x sensor
38  * demo example demonstration with interrupt mode.
39  */
40 
41 //-----------------------------------------------------------------------
42 // SDK Includes
43 //-----------------------------------------------------------------------
44 #include "board.h"
45 #include "pin_mux.h"
46 #include "clock_config.h"
47 
48 //-----------------------------------------------------------------------
49 // CMSIS Includes
50 //-----------------------------------------------------------------------
51 #include "Driver_I2C.h"
52 #include "Driver_USART.h"
53 
54 //-----------------------------------------------------------------------
55 // ISSDK Includes
56 //-----------------------------------------------------------------------
57 #include "issdk_hal.h"
58 #include "mma865x_drv.h"
59 #include "gpio_driver.h"
60 #include "host_io_uart.h"
61 #include "systick_utils.h"
62 #include "auto_detection_service.h"
63 
64 //-----------------------------------------------------------------------
65 // Macros
66 //-----------------------------------------------------------------------
67 #define MMA865x_ACCEL_DATA_SIZE 6 /* 2 byte X,Y,Z Axis Data each. */
68 #define MMA865x_STREAM_DATA_SIZE 11
69 
70 /*! @brief Unique Name for this application which should match the target GUI pkg name. */
71 #define APPLICATION_NAME "MMA8652 Accelerometer Demo"
72 /*! @brief Version to distinguish between instances the same application based on target Shield and updates. */
73 #define APPLICATION_VERSION "2.5"
74 
75 typedef struct
76 {
77  uint32_t timestamp; /*!< Time stamp value in micro-seconds. */
78  int16_t accel[3]; /*!< The accel data */
79  uint8_t intsrc;
81 
82 //-----------------------------------------------------------------------
83 // Constants
84 //-----------------------------------------------------------------------
85 /*! Prepare the register write list to configure MMA865x in non-FIFO and ISR mode. */
87 { /*! Clear F_SETUP. */
88  {MMA865x_F_SETUP, 0x00, 0},
89  /*! Configure the MMA865x to set FS Range as 2g. */
91  /*! Configure the MMA865x to set ODR to 100Hz. */
93  /*! Configure the MMA865x to set High Resolution mode. */
95  /*! Configure the MMA865x to set interrupt polarity as Active High. */
97  /*! Configure the MMA865x to set interrupt polarity as Active High. */
99  /*! Configure the MMA865x to set interrupt polarity as Active High. */
100  {MMA865x_PL_COUNT, 0xFF, 0},
101  /*! Configure the MMA865x to set interrupt polarity as Active High. */
103  /*! Configure the MMA865x to set interrupt polarity as Active High. */
104  {MMA865x_FF_MT_COUNT, 0x01, 0},
105  /*! Configure the MMA865x to set interrupt polarity as Active High. */
107  /*! Configure the MMA865x to set interrupt polarity as Active High. */
110  {MMA865x_TRANSIENT_COUNT, 0x0C, 0},
111  /*! Configure the MMA865x to set interrupt polarity as Active High. */
113  {MMA865x_PULSE_THSX, 0x37, 0},
114  /*! Configure the MMA865x to set interrupt polarity as Active High. */
115  {MMA865x_PULSE_THSY, 0x37, 0},
116  /*! Configure the MMA865x to set interrupt polarity as Active High. */
117  {MMA865x_PULSE_THSZ, 0x52, 0},
118  /*! Configure the MMA865x to set interrupt polarity as Active High. */
119  {MMA865x_PULSE_TMLT, 0x30, 0},
120  /*! Configure the MMA865x to set interrupt polarity as Active High. */
121  {MMA865x_PULSE_LTCY, 0x3C, 0},
122  /*! Configure the MMA865x to enable Interrupts for Data Ready. */
124  /*! Configure the MMA865x to route Data Ready Interrupts to INT1. */
127 
128 /*! Prepare the register read list to read the raw Accel data from MMA865x. */
131 /*! Prepare the register read for INT Status Register. */
133 /*! Prepare the register read for PL Status Register. */
135 
136 //-----------------------------------------------------------------------
137 // Global Variables
138 //-----------------------------------------------------------------------
141 volatile bool bStreamingEnabled = false, bMma865xDataReady = false, bMma865xReady = false;
142 uint8_t gStreamID; /* The auto assigned Stream ID. */
145 
146 //-----------------------------------------------------------------------
147 // Functions
148 //-----------------------------------------------------------------------
149 /* This is the Sensor Data Ready ISR implementation.*/
150 void mma865x_int_data_ready_callback(void *pUserData)
151 { /*! @brief Set flag to indicate Sensor has signalled data ready. */
152  bMma865xDataReady = true;
153 }
154 
155 /* Handler for Device Info and Streaming Control Commands. */
157  uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)
158 {
159  bool success = false;
160 
161  /* If it is Host requesting Device Info, send Board Name and Shield Name. */
162  if (tag == HOST_PRO_INT_DEV_TAG)
163  { /* Byte 1 : Payload - Length of APPLICATION_NAME (b)
164  * Bytes=b : Payload Application Name
165  * Byte b+1 : Payload - Length of BOARD_NAME (s)
166  * Bytes=s : Payload Board Name
167  * Byte b+s+2 : Payload - Length of SHIELD_NAME (v)
168  * Bytes=v : Payload Shield Name */
169 
170  size_t appNameLen = strlen(embAppName);
171  size_t boardNameLen = strlen(boardString);
172  size_t shieldNameLen = strlen(shieldString);
173 
174  if (respBufferSize >= boardNameLen + shieldNameLen + appNameLen + 3)
175  { /* We have sufficient buffer. */
176  *hostMsgSize = 0;
177  }
178  else
179  {
180  return false;
181  }
182 
183  hostResponse[*hostMsgSize] = appNameLen;
184  *hostMsgSize += 1;
185 
186  memcpy(hostResponse + *hostMsgSize, embAppName, appNameLen);
187  *hostMsgSize += appNameLen;
188 
189  hostResponse[*hostMsgSize] = boardNameLen;
190  *hostMsgSize += 1;
191 
192  memcpy(hostResponse + *hostMsgSize, boardString, boardNameLen);
193  *hostMsgSize += boardNameLen;
194 
195  hostResponse[*hostMsgSize] = shieldNameLen;
196  *hostMsgSize += 1;
197 
198  memcpy(hostResponse + *hostMsgSize, shieldString, shieldNameLen);
199  *hostMsgSize += shieldNameLen;
200 
201  return true;
202  }
203 
204  /* If it is Host sending Streaming Commands, take necessary actions. */
205  if ((tag == (HOST_PRO_INT_CMD_TAG | HOST_PRO_CMD_W_CFG_TAG)) &&
207  { /* Byte 1 : Payload - Operation Code (Start/Stop Operation Code)
208  * Byte 2 : Payload - Stream ID (Target Stream for carrying out operation) */
209  switch (hostCommand[0]) /* Execute desired operation (Start/Stop) on the requested Stream. */
210  {
211  case HOST_CMD_START:
212  if (hostCommand[1] == gStreamID && bMma865xReady && bStreamingEnabled == false)
213  {
215  bStreamingEnabled = true;
216  success = true;
217  }
218  break;
219  case HOST_CMD_STOP:
220  if (hostCommand[1] == gStreamID && bMma865xReady && bStreamingEnabled == true)
221  {
222  pGpioDriver->clr_pin(&GREEN_LED);
223  bStreamingEnabled = false;
224  success = true;
225  }
226  break;
227  default:
228  break;
229  }
230  *hostMsgSize = 0; /* Zero payload in response. */
231  }
232 
233  return success;
234 }
235 
236 /*!
237  * @brief Main function
238  */
239 int main(void)
240 {
241  int32_t status;
243 
244  mma865x_i2c_sensorhandle_t mma865xDriver;
246 
247  ARM_DRIVER_I2C *pI2Cdriver = &I2C_S_DRIVER;
248  ARM_DRIVER_USART *pUartDriver = &HOST_S_DRIVER;
249 
250  /*! Initialize the MCU hardware. */
253 
254  /* Create the Short Application Name String for ADS. */
255  sprintf(embAppName, "%s:%s", APPLICATION_NAME, APPLICATION_VERSION);
256 
257  /* Run ADS. */
259 
260  /* Create the Full Application Name String for Device Info Response. */
262 
263  /*! Initialize MMA865x pin used by FRDM board */
265 
266  /*! Initialize RGB LED pin used by FRDM board */
267  pGpioDriver->pin_init(&GREEN_LED, GPIO_DIRECTION_OUT, NULL, NULL, NULL);
268 
269  /*! Initialize the I2C driver. */
270  status = pI2Cdriver->Initialize(I2C_S_SIGNAL_EVENT);
271  if (ARM_DRIVER_OK != status)
272  {
273  return -1;
274  }
275 
276  /*! Set the I2C Power mode. */
277  status = pI2Cdriver->PowerControl(ARM_POWER_FULL);
278  if (ARM_DRIVER_OK != status)
279  {
280  return -1;
281  }
282 
283  /*! Set the I2C bus speed. */
284  status = pI2Cdriver->Control(ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_FAST);
285  if (ARM_DRIVER_OK != status)
286  {
287  return -1;
288  }
289 
290  /*! Initialize the UART driver. */
291  status = pUartDriver->Initialize(HOST_S_SIGNAL_EVENT);
292  if (ARM_DRIVER_OK != status)
293  {
294  return -1;
295  }
296 
297  /*! Set the UART Power mode. */
298  status = pUartDriver->PowerControl(ARM_POWER_FULL);
299  if (ARM_DRIVER_OK != status)
300  {
301  return -1;
302  }
303 
304  /*! Set UART Baud Rate. */
305  status = pUartDriver->Control(ARM_USART_MODE_ASYNCHRONOUS, BOARD_DEBUG_UART_BAUDRATE);
306  if (ARM_DRIVER_OK != status)
307  {
308  return -1;
309  }
310 
311  /*! Initialize MMA865x sensor driver. */
314  if (SENSOR_ERROR_NONE == status)
315  {
316  /*! Set the task to be executed while waiting for SPI transactions to complete. */
318 
319  /*! Configure the MMA865x sensor. */
320  status = MMA865x_I2C_Configure(&mma865xDriver, cMma865xConfigInterrupt);
321  if (SENSOR_ERROR_NONE == status)
322  {
323  bMma865xReady = true;
324  }
325  }
326 
327  /*! Initialize streaming and assign a Stream ID. */
328  gStreamID =
329  Host_IO_Init(pUartDriver, (void *)mma865xDriver.pCommDrv, &mma865xDriver.deviceInfo, NULL, MMA8652_I2C_ADDR);
330  /* Confirm if a valid Stream ID has been allocated for this stream. */
331  if (0 == gStreamID)
332  {
333  bMma865xReady = false;
334  }
335  else
336  {
337  /*! Populate streaming header. */
339  pGpioDriver->clr_pin(&GREEN_LED);
340  }
341 
342  for (;;) /* Forever loop */
343  { /* Call UART Non-Blocking Receive. */
345 
346  /* Process packets only if streaming has been enabled by Host and ISR is available.
347  * In ISR Mode we do not need to check Data Ready Register.
348  * The receipt of interrupt will indicate data is ready. */
349  if (false == bStreamingEnabled || false == bMma865xDataReady)
350  {
351  SMC_SetPowerModeWait(SMC); /* Power save, wait if nothing to do. */
352  continue;
353  }
354  else
355  { /*! Clear the data ready flag, it will be set again by the ISR. */
356  bMma865xDataReady = false;
357  pGpioDriver->toggle_pin(&GREEN_LED);
358  }
359 
360  /*! Read new raw sensor data from the MMA865x. */
361  status = MMA865x_I2C_ReadData(&mma865xDriver, cMma865xOutputValues, data);
362  if (ARM_DRIVER_OK != status)
363  { /* Loop, if sample read failed. */
364  continue;
365  }
366 
367  /* Update timestamp from Systick framework. */
369 
370  /*! Convert the raw sensor data to signed 16-bit container for display to the debug port. */
371  rawData.accel[0] = ((int16_t)data[0] << 8) | data[1];
372  rawData.accel[0] /= 16;
373  rawData.accel[1] = ((int16_t)data[2] << 8) | data[3];
374  rawData.accel[1] /= 16;
375  rawData.accel[2] = ((int16_t)data[4] << 8) | data[5];
376  rawData.accel[2] /= 16;
377 
378  /*! Read INT_SRC 0x0C from MMA865x. */
379  status = MMA865x_I2C_ReadData(&mma865xDriver, cMma8652qStatus, &intsrcdata);
380  /*! Read PL_STATUS 0x10 from MMA865x. */
381  status = MMA865x_I2C_ReadData(&mma865xDriver, cMma8652qPLStatus, &PLstatusdata);
382  /* Send INTSRC */
383  rawData.intsrc = intsrcdata;
384 
385  /* Copy Raw samples to Streaming Buffer. */
386  memcpy(streamingPacket + STREAMING_HEADER_LEN, &rawData, MMA865x_STREAM_DATA_SIZE);
387  /* Send streaming packet to Host. */
388  Host_IO_Send(streamingPacket, sizeof(streamingPacket), HOST_FORMAT_HDLC);
389  }
390 }
uint32_t BOARD_SystickElapsedTime_us(int32_t *pStart)
Function to compute the Elapsed Time.
Definition: systick_utils.c:99
#define MMA865x_CTRL_REG3_IPOL_MASK
Definition: mma865x.h:1664
#define MMA865x_XYZ_DATA_CFG_FS_MASK
Definition: mma865x.h:530
#define __END_WRITE_DATA__
Definition: sensor_drv.h:71
int32_t MMA865x_I2C_Initialize(mma865x_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: mma865x_drv.c:48
#define HOST_PRO_CMD_W_CFG_TAG
Definition: host_io_uart.h:89
#define MMA865x_TRANSIENT_THS_DBCNTM_INC_CLR
Definition: mma865x.h:1191
#define HOST_S_SIGNAL_EVENT
Definition: frdm_k64f.h:120
#define MMA865x_PULSE_CFG_ZSPEFE_EN
Definition: mma865x.h:1282
volatile bool bMma865xDataReady
Definition: mma865x_demo.c:141
void Host_IO_Receive(host_cmd_proc_fn_t process_host_command, uint8_t encoding)
Definition: host_io_uart.c:233
void(* pin_init)(pinID_t aPinId, gpio_direction_t dir, void *apPinConfig, gpio_isr_handler_t aIsrHandler, void *apUserData)
Definition: Driver_GPIO.h:67
#define BOARD_BootClockRUN
Definition: clock_config.h:45
#define MMA865x_CTRL_REG3_IPOL_ACTIVE_HIGH
Definition: mma865x.h:1701
uint8_t data[FXLS8962_DATA_SIZE]
int32_t MMA865x_I2C_ReadData(mma865x_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
Definition: mma865x_drv.c:132
int32_t status
#define MMA865x_TRANSIENT_CFG_ZTEFE_EN
Definition: mma865x.h:1062
void(* toggle_pin)(pinID_t aPinId)
Definition: Driver_GPIO.h:74
GENERIC_DRIVER_GPIO * pGpioDriver
Definition: mma865x_demo.c:144
volatile bool bMma865xReady
Definition: mma865x_demo.c:141
#define SHIELD_NAME
const registerreadlist_t cMma865xOutputValues[]
Definition: mma865x_demo.c:129
uint8_t gStreamID
Definition: mma865x_demo.c:142
#define MMA865x_PL_CFG_PL_EN_EN
Definition: mma865x.h:700
#define MMA865x_ACCEL_DATA_SIZE
Definition: mma865x_demo.c:67
#define ADS_MAX_STRING_LENGTH
This defines the sensor specific information.
Definition: mma865x_drv.h:55
registerDeviceInfo_t deviceInfo
Definition: mma865x_drv.h:57
#define HOST_PRO_INT_DEV_TAG
Definition: host_io_uart.h:85
uint8_t streamingPacket[STREAMING_HEADER_LEN+FXLS8962_STREAM_DATA_SIZE]
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
Definition: sensor_drv.h:123
#define HOST_PRO_INT_CMD_TAG
Bit aligned values for Host Protocol Interface IDs (Bits 5-6).
Definition: host_io_uart.h:83
const registerreadlist_t cMma8652qStatus[]
Definition: mma865x_demo.c:132
#define MMA865x_CTRL_REG1_DR_MASK
Definition: mma865x.h:1534
#define __END_READ_DATA__
Definition: sensor_drv.h:77
#define MMA865x_CTRL_REG4_INT_EN_LNDPRT_EN
Definition: mma865x.h:1772
volatile bool bStreamingEnabled
Definition: mma865x_demo.c:141
#define MMA8652_I2C_ADDR
#define MMA865x_CTRL_REG1_DR_100HZ
Definition: mma865x.h:1551
void MMA865x_I2C_SetIdleTask(mma865x_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
Definition: mma865x_drv.c:79
#define MMA8652_WHOAMI_VALUE
Definition: mma865x.h:65
#define MMA865x_CTRL_REG4_INT_EN_FF_MT_EN
Definition: mma865x.h:1776
gpioHandleKSDK_t GREEN_LED
Definition: frdm_k64f.c:214
#define MMA865x_FF_MT_CFG_OAE_FREEFALL
Definition: mma865x.h:872
#define MMA865x_CTRL_REG4_INT_EN_DRDY_EN
Definition: mma865x.h:1778
int32_t MMA865x_I2C_Configure(mma865x_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
Definition: mma865x_drv.c:87
#define MMA865x_FF_MT_CFG_XEFE_EN
Definition: mma865x.h:881
#define MMA865x_XYZ_DATA_CFG_FS_2G
Definition: mma865x.h:542
void Host_IO_Add_ISO_Header(uint8_t streamID, uint8_t *pStreamingPacket, size_t sizePayload)
Definition: host_io_uart.c:112
void Host_IO_Send(uint8_t *pMsg, size_t size, uint8_t encoding)
Definition: host_io_uart.c:162
char boardString[ADS_MAX_STRING_LENGTH]
Definition: mma865x_demo.c:139
void(* clr_pin)(pinID_t aPinId)
Definition: Driver_GPIO.h:73
#define MMA865x_CTRL_REG2_MODS_MASK
Definition: mma865x.h:1592
#define MMA865x_FF_MT_CFG_ZEFE_EN
Definition: mma865x.h:875
void mma865x_int_data_ready_callback(void *pUserData)
Definition: mma865x_demo.c:150
void BOARD_SystickEnable(void)
Function to enable systicks framework.
Definition: systick_utils.c:70
#define MMA865x_CTRL_REG4_INT_EN_PULSE_EN
Definition: mma865x.h:1774
#define MMA865x_STREAM_DATA_SIZE
Definition: mma865x_demo.c:68
char shieldString[ADS_MAX_STRING_LENGTH]
Definition: mma865x_demo.c:139
#define MMA865x_PL_CFG_DBCNTM_CLEAR
Definition: mma865x.h:697
#define I2C_S_DEVICE_INDEX
Definition: issdk_hal.h:61
#define MMA8652_INT1
#define MMA865x_PULSE_CFG_YSPEFE_EN
Definition: mma865x.h:1286
#define MMA865x_PULSE_CFG_XSPEFE_EN
Definition: mma865x.h:1290
#define APPLICATION_VERSION
Version to distinguish between instances the same application based on target Shield and updates...
Definition: mma865x_demo.c:73
#define MMA865x_CTRL_REG5_INT_CFG_DRDY_INT1
Definition: mma865x.h:1853
const registerreadlist_t cMma8652qPLStatus[]
Definition: mma865x_demo.c:134
#define I2C_S_DRIVER
Definition: issdk_hal.h:59
The mma865x_drv.h file describes the MMA865x driver interface and structures.
int main(void)
Main function.
Definition: mma865x_demo.c:239
GENERIC_DRIVER_GPIO Driver_GPIO_KSDK
Definition: gpio_driver.c:203
#define MMA865x_TRANSIENT_CFG_XTEFE_EN
Definition: mma865x.h:1070
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
#define MMA865x_FF_MT_THS_DBCNTM_INC_CLR
Definition: mma865x.h:994
#define BOARD_DEBUG_UART_BAUDRATE
Definition: board.h:57
bool process_host_command(uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)
Definition: mma865x_demo.c:156
Access structure of the GPIO Driver.
Definition: Driver_GPIO.h:64
void BOARD_SystickStart(int32_t *pStart)
Function to Record the Start systick.
Definition: systick_utils.c:79
ARM Systick Utilities.
void BOARD_RunADS(const char *appName, char *boardString, char *shieldString, size_t bufferLength)
The function to register Application Name and initialte ADS.
fxls8962_acceldataUser_t rawData
uint8_t Host_IO_Init(ARM_DRIVER_USART *pDrv, void *pBus, void *pDevInfo, void *spiSlaveParams, uint16_t slaveAddress)
Definition: host_io_uart.c:126
#define MMA865x_CTRL_REG2_MODS_HR
Definition: mma865x.h:1623
This structure defines the Write command List.
Definition: sensor_drv.h:94
This structure defines the Read command List.
Definition: sensor_drv.h:104
#define SMC
Definition: lpc54114.h:144
#define MMA865x_FF_MT_CFG_YEFE_EN
Definition: mma865x.h:878
The host_io_uart.h file contains the Host Protocol interface definitions and configuration.
#define MMA865x_CTRL_REG4_INT_EN_TRANS_EN
Definition: mma865x.h:1770
#define STREAMING_HEADER_LEN
Definition: host_io_uart.h:51
char embAppName[ADS_MAX_STRING_LENGTH]
Definition: mma865x_demo.c:140
const registerwritelist_t cMma865xConfigInterrupt[]
Definition: mma865x_demo.c:86
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:181
#define MMA865x_TRANSIENT_CFG_YTEFE_EN
Definition: mma865x.h:1066
#define I2C_S_SIGNAL_EVENT
Definition: issdk_hal.h:60
int32_t gSystick
Definition: mma865x_demo.c:143
#define HOST_S_DRIVER
Definition: frdm_k64f.h:119
#define APPLICATION_NAME
Unique Name for this application which should match the target GUI pkg name.
Definition: mma865x_demo.c:71
ARM_DRIVER_I2C * pCommDrv
Definition: mma865x_drv.h:58