Hello Nordic,
I'm struggling to initialize and configure my LIS2DH12 accelerometer for Stream mode after an activity wake.
Platform: Running FreeRTOS with Nordic nRF52840 host MCU connected over I2C to LIS2DH12 device
I'm trying to use the Nordic SDK driver included in the SDK for this part (components\drivers_ext\lis2dh12\lis2dh12.c and .h) but having a hard time finding any examples of usage. The driver does not have API for individual register Write and handles registers via macros that modify multiple registers at a time ie:
LIS2DH12_DATA_CFG(...), LIS2DH12_INT1_PIN_CFG(...)
LIS2DH12_INT1_CFG(...), LIS2DH12_FIFO_CFG(...)
My ultimate goal is to
1) wake the MCU using the INT2 activity interrupt and
2) Stream FIFO data using the INT1 (OVRN_FIFO) interrupt when fifo is full and ready for reading
I can read individual samples but have not seen the OVRN_FIFO driven to the INT1 pin. I assume I'm not interacting with the registers correctly but not sure of the correct way.
Can you point me to a relevant example using this Nordic driver?
- Edwin