Hi, I am trying to write a driver to communicate to the BMA456 from Cypress's CYBLE 212006-01 through SPI. I have been using your API provided here: https://github.com/BoschSensortec/BMA456-Sensor-API I am writing the bus_read and bus_write functions, and I keep seeing dev-> intf_ptr. Do I need to initialize this pointer to something? I am just confused as to what this pointer should be doing. I know it is part of the device struct, but I do not see any examples using this pointer. This line of code is from bma4.c : dev-> intf_rslt = dev-> bus_write (addr, data, len, dev-> intf_ptr ); https://github.com/BoschSensortec/BMA456-Sensor-API/blob/master/bma4.c Any help on this would be great, thank you.
... View more
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!
... View more