/* param base TEMPMON base pointer return current temperature with degrees Celsius.  */
float TEMPMON_GetCurrentTemperature(TEMPMON_Type *base)
/* param base TEMPMON base pointer return current temperature with degrees Celsius.  */
float TEMPMON_GetCurrentTemperature(TEMPMON_Type *base)
{
    assert(NULL != base);
    uint32_t nmeas;
    float tmeas;
    while (0U == (base->TEMPSENSE0 & TEMPMON_TEMPSENSE0_FINISHED_MASK))
    {
    }
    nmeas = (base->TEMPSENSE0 & TEMPMON_TEMPSENSE0_TEMP_CNT_MASK) >> TEMPMON_TEMPSENSE0_TEMP_CNT_SHIFT;
    tmeas = (float)s_hotTemp - (((float)nmeas - (float)s_hotCount) * (s_hotT_ROOM / (float)s_roomC_hotC));
    return tmeas;
}