Hardware : DK-20948
Application : EMD-App-ICM20948
What I'm trying to do is modify the EMD-App-ICM20948 code to only raise an event when the watermark event fires.
I'm using the EMD-App-ICM20948 code base running on a DK-20948. The sensors are being started using the sensor-cli application shipped with the codebase. It seems like it should be straight forward, but nothing I do to the interrupt buffers appears to change the output on the sensor-cli application.
From what I can find, all the interrupts are enabled in inv_icm20948_initialize_lower_driver() located in Icm20948DataBaseDriver.c. I’ve tried writing 0 to REG_INT_ENABLE, REG_INT_ENABLE_1, and REG_INT_ENABLE_2 and 0x1 to REG_INT_ENABLE_3. This should disable the DMP, Raw data, FIFO overflow interrupt, and enable the FIFO watermark interrupt.
When sensor start is called in sensor-cli, the event still fires on every measurement instead of waiting for the watermark threshold to be reached and then firing. The watermark threshold is already set in the example application.
is there an event that I'm not configuring properly? or does the sensor-cli application write its own event settings when "en" is called?
Thanks in advance.