/* Configure LIS302DL Click function. you can use this function to configure LIS302DL Click function.  */
Result LIS302DLClickCfg(uint32_t Cfg)
/* Configure LIS302DL Click function. you can use this function to configure LIS302DL Click function.  */
Result LIS302DLClickCfg(uint32_t Cfg)
{
    Result    retv     =   SUCCESS;
    uint8_t   TmpReg   =   0;
    ASSERT((Cfg & (~CLK_INT_MASK)) == 0);
    retv = LIS302DLRegReadByte(CLICK_CFG, &TmpReg);
    if(retv != SUCCESS)
    {
        return (FAILURE);
    }
    TmpReg &= (uint8_t) ((~Cfg) >> 8);
    TmpReg |= (uint8_t)(Cfg);
    retv = LIS302DLRegWriteByte(CLICK_CFG, TmpReg);
    if(retv != SUCCESS)
    {
        return (FAILURE);
    }
    return (SUCCESS);
}