CTL_STATUS_t bmp085_set_resolution(BMP085_BAROMETER_t *self,
                                   int bits);

bmp085_set_resolution sets the sensor self to use the sensitivity setting delivering bits of ADC data. bits can be one of:

Bits Setting Conversion time (ms) Number of samples
16 Ultra-low power 4.5 1
17 Standard 7.5 2
18 High resolution 13.5 4
19 Ultra-high resolution 25.5 8
Return Value

bmp085_set_resolution returns a standard status code.

Thread Safety

bmp085_set_resolution is thread-safe if the transport member in self is thread-safe. This requires that a mutex is associated with the I2C bus provided when initializing self.