/* mr: Measure rate for temperature or pressure osr: Oversampling rate for temperature or pressure returns: time that the DPS310 needs for this measurement a value of 10000 equals 1 second NOTE! The measurement time for temperature and pressure in sum must not be more than 1 second! Timing behavior of pressure and temperature sensors can be considered as equal.  */
uint16_t calcBusyTime(uint16_t mr, uint16_t osr)
/* mr: Measure rate for temperature or pressure osr: Oversampling rate for temperature or pressure returns: time that the DPS310 needs for this measurement a value of 10000 equals 1 second NOTE! The measurement time for temperature and pressure in sum must not be more than 1 second! Timing behavior of pressure and temperature sensors can be considered as equal.  */
uint16_t calcBusyTime(uint16_t mr, uint16_t osr)
{
    mr &= DPS310__REG_MASK_TEMP_MR >> DPS310__REG_SHIFT_TEMP_MR;
    osr &= DPS310__REG_MASK_TEMP_OSR >> DPS310__REG_SHIFT_TEMP_OSR;
    return ((uint32_t)20U << mr) + ((uint32_t)16U << (osr + mr));
}