Tool/software: Code Composer Studio
Hi,
In the last days I have been trying to obtain data of xAxis, yAxis and zAxis from ADXL362 in a periodic way instead of only when the accelerometer tilts (default case for LPSTK-CC1352R). I followed your instructions in my previous post, reviewing the SPI accelerometer code at Sensor Controller Studio, but still cannot find a way to report data from the accelerometer with the same reporting interval as for the other sensors of the LPSTK board. Is it possible? From the code of SPI accelerometer, I guess it would necessary to generate interruptions (fwGenAlertInterrupt()) with the reporting interval but I am not sure how to do it.
I already added the lines pMsg->accelerometerSensor.xAxis, pMsg->accelerometerSensor.yAxis, pMsg->accelerometerSensor.zAxis at the code, as said here, but I get 0,0,0 except when the accelerometer is tilted that I get different values (and the rest of sensors are 0).
Just to clarify, I need to read data from all the sensors simultaneously (at the same reporting interval). Can this be done with the Sensor Controller? Or I need to avoid its use for this case?
Thank you in advance,
Mario