Synopsis
CTL_STATUS_t sht2x_set_resolution(CTL_HUMIDITY_SENSOR_t *self,
                                  SHT2x_RESOLUTION_t r);
Description

sht2x_set_resolution sets the sensor self to the resolution r.

Return Value

sht2x_set_resolution returns a standard status code.

Thread Safety

sht2x_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 calling sht2x_initialize_i2c.