Hello everyone, I'm new to the MSP microcontrollers.
I have a question about the "USS_startLowPowerUltrasonicCapture()" API from USSLib, from what I've read on the API guide this function waits in LPM3 between the pulse generation and pulse capture. I'm using the eUSCI_A2 module for SPI communication with another module, and although i know the eUSCI_A modules can work on LPM, I need the MCU to be active during the data transmission, as I have a buffer with various transmit bytes on RAM. The problem is that if USS_startLowPowerUltrasonicCapture() makes the MCU enter LPM3, i might loose all the data stored on the transmit buffer, which would screw up the communication.
Now, from what I've tested it seems like this API has some kind of "context save" as during debugging I found out that variables maintaing their values from prior to calling the API. If that is the case then I might stop worrying about loosing the transmit buffer and use the API, however, if that's not the case, then I should use "USS_startUltrasonicMeasurement()" instead.
So the question is, does "USS_startLowPowerUltrasonicCapture()" backup global variables on FRAM prior to switching to LPM? should I worry about loosing data when calling the API?
Thank you everyone for your help.