This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

LIS2DH12 interrupt configuration

Hello,

I'm currently trying to configure the LIS2DH12 interrupt pin to wake up the CPU from sleep. I'm using SDK 15.2 with nRF52832. In the SDK there are files on the LIS2DH12 and there are two functions that I think might be for my case:

#define LIS2DH12_INT1_PIN_CFG(_s, _cl, _ia1, _ia2, _zyxda, _wtm, _ovr, _pol, _d4d) \
    LIS2DH12_INTERNAL_INT1_PIN_CFG(_s, _cl, _ia1, _ia2, _zyxda, _wtm, _ovr, _pol, _d4d)

#define LIS2DH12_INT1_CFG(_s, _thr, _dur, _aoi, _6d, _zh, _zl, _yh, yl, _xh, _xl, _lir) \
    LIS2DH12_INTERNAL_INT1_CFG(_s, _thr, _dur, _aoi, _6d, _zh, _zl, _yh, yl, _xh, _xl, _lir)

I'm not sure if I have to use both or one of them and I don't know what is the correct configuration to give for my case. Can anybody help me please?

Parents Reply Children
Related