/* Stop Accelerometer Measure. This function can be used to set accelerometer into standby mode, then you can read three axis data from accelerometer register. This function must be called after  */
Result LIS302DLStop(void)
/* Stop Accelerometer Measure. This function can be used to set accelerometer into standby mode, then you can read three axis data from accelerometer register. This function must be called after  */
Result LIS302DLStop(void)
{
    Result    retv     =   SUCCESS;
    uint8_t   TmpReg   =   0;
    retv = LIS302DLRegReadByte(CTRL_REG1, &TmpReg);
    if(retv != SUCCESS)
    {
        return (FAILURE);
    }
    TmpReg &= ~CTRL_REG1_PD;
    retv = LIS302DLRegWriteByte(CTRL_REG1, TmpReg);
    if(retv != SUCCESS)
    {
        return (FAILURE);
    }
    return (SUCCESS);
}