CTL_STATUS_t mag3110_set_oversampling_ratio(CTL_MAGNETOMETER_t *self, int ratio);
mag3110_set_oversampling_ratio sets the oversampling ration of the MAG3110 self to ratio. ratio should be 16, 32, 64, or 128.
mag3110_set_oversampling_ratio returns a standard status code.
mag3110_set_oversampling_ratio is thread-safe if the transport member in self is thread-safe. Typically, for SPI and I2C transports, you ensure thread safety by associating a mutex with the bus used by the transport.