/* HRPWM Calibrate function status get for specified unit.  */
en_functional_state_t HRPWM_GetCalibrateState(uint32_t u32Unit)
/* HRPWM Calibrate function status get for specified unit.  */
en_functional_state_t HRPWM_GetCalibrateState(uint32_t u32Unit)
{
    en_functional_state_t enRet;
    __IO uint32_t *CALCRx;
    DDL_ASSERT(IS_VALID_HRPWM_CAL_UNIT(u32Unit));
    CALCRx = (__IO uint32_t *)(((uint32_t)&CM_HRPWM->CALCR0) + 4UL * u32Unit);
    if (0UL != READ_REG32_BIT(*CALCRx, HRPWM_CALCR_ENDF)) {
        enRet = ENABLE;
    } else {
        enRet = DISABLE;
    }
    return enRet;
}