CTL_STATUS_t ctl_gyroscope_measure(CTL_GYROSCOPE_t *self, float *sample);
ctl_gyroscope_measure samples the gyroscope self and reports the clockwise rotation in degrees per second about the x, y, and z axes in sample, sample and sample respectively.
ctl_gyroscope_measure returns a standard status code. If the status indicates an error, the returned sample data is undefined.
ctl_gyroscope_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.