/* HRPWM Calibrate function enable or disable for specified unit.  */
void HRPWM_CalibrateCmd(uint32_t u32Unit, en_functional_state_t enNewState)
/* HRPWM Calibrate function enable or disable for specified unit.  */
void HRPWM_CalibrateCmd(uint32_t u32Unit, en_functional_state_t enNewState)
{
    __IO uint32_t *CALCRx;
    DDL_ASSERT(IS_VALID_HRPWM_CAL_UNIT(u32Unit));
    DDL_ASSERT(IS_FUNCTIONAL_STATE(enNewState));
    CALCRx = (__IO uint32_t *)(((uint32_t)&CM_HRPWM->CALCR0) + 4UL * u32Unit);
    if (ENABLE == enNewState) {
        SET_REG32_BIT(*CALCRx, HRPWM_CALCR_CALEN);
    } else {
        CLR_REG32_BIT(*CALCRx, HRPWM_CALCR_CALEN);
    }
}