Synopsis
CTL_STATUS_t ctl_temperature_sensor_measure(CTL_TEMPERATURE_SENSOR_t *self,
                                            float *temperature);
Description

ctl_temperature_sensor_measure samples the temperature sensor self and reports the temperature in degrees Celsius to temperature.

Return Value

ctl_temperature_sensor_measure returns a standard status code. If the status indicates an error, the returned sample data is undefined.

Thread Safety

ctl_temperature_sensor_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.