*************************************************************************************************************
* This simple example code has been written for the NXP FRDM-KL25Z + FRDMSTBC-A8471 
* boards and demonstrates how to use the embedded transient detection function
* in conjunction with the auto-wake/sleep mode for reducing current consumption
* of the FXLS8471Q.
* 
* The transient threshold is set to 312.5mg (5 counts) on the X and Y axis.
* Once this threshold is exceeded, the FXLS8471Q is waken up and an interrupt
* is generated on the INT1 pin. If the acceleration is below this threshold 
* within the 1s period, the FXLS8471Q goes back to sleep mode and also 
* generates an interrupt on the INT1 pin. 
*************************************************************************************************************