CTL_STATUS_t ctl_accelerometer_measure(CTL_ACCELEROMETER_t *self, float *sample);
ctl_accelerometer_measure samples the accelerometer self and reports the linear acceleration in g along the x, y, and z axes in sample, sample and sample respectively.
ctl_accelerometer_measure returns a standard status code. If the status indicates an error, the returned sample data is undefined.
ctl_accelerometer_measure is thread-safe if the method measure is thread-safe. Typically, for SPI and I2C transports, you ensure thread safety by associating a mutex with the bus used by the transport.