Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_rtc.c
/***************************************************************************/
/**
 *
 * EtaCspRtcWdtOperationModeGet - Get the Watchdog Timer Operating Mode.
 *
 * @return  Return the potentially combined operating mode information.
 *
 * NOTE: the enums are one hot encoded so they can be ORed together.
 *
 ******************************************************************************/
Get the Watchdog Timer Operating Mode.
@return  Return the potentially combined operating mode information.

the enums are one hot encoded so they can be ORed together.
Get the Watchdog Timer Operating Mode . @return Return the potentially combined operating mode information . the enums are one hot encoded so they can be ORed together .
tRtcWdtOp
EtaCspRtcWdtOperationModeGet(void)
{
    int iOpMode = 0;
     check for POR enabled.
    if(REG_RTC_WDT_ALARM.BF.POR)
    {
        iOpMode |= eWdtPor;
    }
     check for RESET enabled.
    if(REG_RTC_WDT_ALARM.BF.RESET)
    {
        iOpMode |= eWdtReset;
    }
     check for INT enabled.
    if(REG_RTC_WDT_ALARM.BF.IRQ_EN)
    {
        iOpMode |= eWdtInterrupt;
    }
    return(iOpMode);
}
tRtcWdtOp EtaCspRtcWdtOperationModeGet ( void ) { int iOpMode = 0 ; if ( REG_RTC_WDT_ALARM . BF . POR ) { iOpMode |= eWdtPor ; } if ( REG_RTC_WDT_ALARM . BF . RESET ) { iOpMode |= eWdtReset ; } if ( REG_RTC_WDT_ALARM . BF . IRQ_EN ) { iOpMode |= eWdtInterrupt ; } return ( iOpMode ) ; }
EtaCspRtcWdtOperationModeGet - Get the Watchdog Timer Operating Mode.
EtaCspRtcWdtOperationModeGet - Get the Watchdog Timer Operating Mode .
// // check for POR enabled. // // // check for RESET enabled. // // // check for INT enabled. //