Hi everyone, I am new to embedded coding and have been trying to write a driver for the BMA456. This sensor will be controlled via Cypress's CYBLE-212006-01.
I have been using the API and examples provided here: https://github.com/BoschSensortec/BMA456-Sensor-API
I am struggling to start writing the Data Ready interrupt and do not see many resources on this other than the datasheet. If anyone has resources on the Data Ready or Any Motion interrupts that would be very helpful.
So far I have functions for initialization, configuration, reading accelerometer data, and detecting any motion. Would it be okay to have one function for initialization and configuration, or should I keep them separated them into two?
Any extra tips or resources for writing this driver would be appreciated, thank you!
From the github, we provide motion examples related to any-motion feature for user to follow, examples/bma456/generic/motion.c .
If you scroll down BMA456 API page, you could find how to enabling-and-mapping-line-interrupt-to-that-of-bma456-sensor-interrupt .
Please try to run you function success, then consider how to use it better. From my side, I don't think there much difference.