/* oversamplingRate: a value from 0 to 7 that decides about the precision of the measurement If this value equals n, the DPS310 will perform 2^n measurements and combine the results returns: 0 on success -3 if the DPS310 is already busy -2 if the object initialization failed -1 on other fail  */
int16_t startMeasureTempOnce(uint8_t oversamplingRate)
/* oversamplingRate: a value from 0 to 7 that decides about the precision of the measurement If this value equals n, the DPS310 will perform 2^n measurements and combine the results returns: 0 on success -3 if the DPS310 is already busy -2 if the object initialization failed -1 on other fail  */
int16_t startMeasureTempOnce(uint8_t oversamplingRate)
{
    if (dps310_ctx.m_initFail) {
        return DPS310__FAIL_INIT_FAILED;
    }
    if (dps310_ctx.m_opMode != IDLE) {
        return DPS310__FAIL_TOOBUSY;
    }
    if (oversamplingRate != dps310_ctx.m_tempOsr) {
        if (configTemp(0U, oversamplingRate) != DPS310__SUCCEEDED) {
            return DPS310__FAIL_UNKNOWN;
        }
    }
    return setOpMode_3param(0U, 1U, 0U);
}