/* Check whether CAN is in the local-reset state.  */
en_flag_status_t CAN_GetLocalResetStatus(CM_CAN_TypeDef *CANx)
/* Check whether CAN is in the local-reset state.  */
en_flag_status_t CAN_GetLocalResetStatus(CM_CAN_TypeDef *CANx)
{
    en_flag_status_t enStatus = RESET;
    DDL_ASSERT(IS_CAN_UNIT(CANx));
    if (READ_REG8_BIT(CANx->CFG_STAT, CAN_CFG_STAT_RESET) != 0U) {
        enStatus = SET;
    }
    return enStatus;
}