iLLD_TC27xC  1.0
Watchdog Operative functions
Collaboration diagram for Watchdog Operative functions:

Functions

IFX_INLINE unsigned IfxScuWdt_calculateLfsr (uint16 password)
 SCUWDT Inline API utility to Calculte new 14-bit LFSR. More...
 
IFX_INLINE uint16 IfxScuWdt_getCpuWatchdogPasswordInline (Ifx_SCU_WDTCPU *watchdog)
 SCUWDT Inline API to fetch current password of CPU Watchdog module. More...
 
IFX_INLINE uint16 IfxScuWdt_getSafetyWatchdogPasswordInline (void)
 SCUWDT Inline API to fetch current password of Safety Watchdog module. More...
 
IFX_EXTERN void IfxScuWdt_serviceCpuWatchdog (uint16 password)
 SCUWDT API to service CPU Watchdog functionality. More...
 
IFX_EXTERN void IfxScuWdt_changeCpuWatchdogPassword (uint16 password, uint16 newPassword)
 SCUWDT API to change CPU Watchdog password. More...
 
IFX_EXTERN void IfxScuWdt_enableCpuWatchdog (uint16 password)
 SCUWDT API to enable CPU Watchdog functionality. More...
 
IFX_EXTERN void IfxScuWdt_disableCpuWatchdog (uint16 password)
 SCUWDT API to disable CPU Watchdog functionality. More...
 
IFX_EXTERN void IfxScuWdt_changeCpuWatchdogReload (uint16 password, uint16 reload)
 SCUWDT API to change CPU Watchdog timer reload value. More...
 
IFX_EXTERN uint16 IfxScuWdt_getCpuWatchdogPassword (void)
 SCUWDT API to fetch current password of CPU Watchdog module. More...
 
IFX_EXTERN void IfxScuWdt_serviceSafetyWatchdog (uint16 password)
 SCUWDT API to service Safety Watchdog functionality. More...
 
IFX_EXTERN void IfxScuWdt_changeSafetyWatchdogPassword (uint16 password, uint16 newPassword)
 SCUWDT API to change Safety Watchdog password. More...
 
IFX_EXTERN void IfxScuWdt_enableSafetyWatchdog (uint16 password)
 SCUWDT API to enable Safety Watchdog functionality. More...
 
IFX_EXTERN void IfxScuWdt_disableSafetyWatchdog (uint16 password)
 SCUWDT API to disable Safety Watchdog functionality. More...
 
IFX_EXTERN void IfxScuWdt_changeSafetyWatchdogReload (uint16 password, uint16 reload)
 SCUWDT API to change Safety Watchdog timer reload value. More...
 
IFX_EXTERN uint16 IfxScuWdt_getSafetyWatchdogPassword (void)
 SCUWDT API to fetch current password of Safety Watchdog module. More...
 

Detailed Description

Function Documentation

IFX_INLINE unsigned IfxScuWdt_calculateLfsr ( uint16  password)

SCUWDT Inline API utility to Calculte new 14-bit LFSR.

This API will Calculte new 14-bit LFSR (Linear Feedback Shift Register) with characteristic polynomial x14+x13+x12+x2+1.

Parameters
passwordPassword for which LFSR value to be calculated.
Returns
New LFSR.
IFX_EXTERN void IfxScuWdt_changeCpuWatchdogPassword ( uint16  password,
uint16  newPassword 
)

SCUWDT API to change CPU Watchdog password.

This API will change password to new one for the corresponding to CPU WDT Hardware module. User need to have the old password stored locally in the caller function, (use IfxScuWdt_getCpuWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
newPasswordApplication specific new password to be changed for the Watchdog module.
Returns
None

Definition at line 210 of file IfxScuWdt.c.

IFX_EXTERN void IfxScuWdt_changeCpuWatchdogReload ( uint16  password,
uint16  reload 
)

SCUWDT API to change CPU Watchdog timer reload value.

This API will change Watchdog timer reload value to new one for CPU WDT Hardware module. The Watchdog timers will be reloaded with this value after every serice of Watchdog. User need to have the password stored locally in the caller function, (use IfxScuWdt_getCpuWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
reloadReload value for the timer.
Returns
None

Definition at line 265 of file IfxScuWdt.c.

IFX_EXTERN void IfxScuWdt_changeSafetyWatchdogPassword ( uint16  password,
uint16  newPassword 
)

SCUWDT API to change Safety Watchdog password.

This API will change password to new one for the corresponding to Safety WDT Hardware module. User need to have the old password stored locally in the caller function, (use IfxScuWdt_getSafetyWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
newPasswordApplication specific new password to be changed for the Watchdog module.
Returns
None

Definition at line 322 of file IfxScuWdt.c.

IFX_EXTERN void IfxScuWdt_changeSafetyWatchdogReload ( uint16  password,
uint16  reload 
)

SCUWDT API to change Safety Watchdog timer reload value.

This API will change Watchdog timer reload value to new one for Safety WDT Hardware module. The Watchdog timers will be reloaded with this value after every serice of Watchdog. User need to have the password stored locally in the caller function, (use IfxScuWdt_getSafetyWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
reloadReload value for the timer.
Returns
None

Definition at line 369 of file IfxScuWdt.c.

IFX_EXTERN void IfxScuWdt_disableCpuWatchdog ( uint16  password)

SCUWDT API to disable CPU Watchdog functionality.

This API will disable Watchdog functionality of CPU WDT Hardware module. The Watchdog timers will stop counting after this API call. User need to have the password stored locally in the caller function, (use IfxScuWdt_getCpuWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
Returns
None

Definition at line 253 of file IfxScuWdt.c.

Referenced by _Core0_start().

IFX_EXTERN void IfxScuWdt_disableSafetyWatchdog ( uint16  password)

SCUWDT API to disable Safety Watchdog functionality.

This API will disable Watchdog functionality of Safety WDT Hardware module. The Watchdog timers will stop counting after this API call. User need to have the password stored locally in the caller function, (use IfxScuWdt_getSafetyWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
Returns
None

Definition at line 361 of file IfxScuWdt.c.

Referenced by _Core0_start().

IFX_EXTERN void IfxScuWdt_enableCpuWatchdog ( uint16  password)

SCUWDT API to enable CPU Watchdog functionality.

This API will enable Watchdog functionality of CPU WDT Hardware module. The Watchdog timers need to be serviced periodically after this API call. User need to have the password stored locally in the caller function, (use IfxScuWdt_getCpuWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
Returns
None

Definition at line 241 of file IfxScuWdt.c.

Referenced by _Core0_start().

IFX_EXTERN void IfxScuWdt_enableSafetyWatchdog ( uint16  password)

SCUWDT API to enable Safety Watchdog functionality.

This API will enable Watchdog functionality of Safety WDT Hardware module. The Watchdog timers need to be serviced periodically after this API call. User need to have the password stored locally in the caller function, (use IfxScuWdt_getSafetyWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
Returns
None

Definition at line 353 of file IfxScuWdt.c.

Referenced by _Core0_start().

IFX_EXTERN uint16 IfxScuWdt_getCpuWatchdogPassword ( void  )

SCUWDT API to fetch current password of CPU Watchdog module.

This API will fetch current Watchdog password for CPU WDT Hardware module. password is needed to be passed with most of the WDT APIs. Normally this API can be used to store the password locally in the caller function or store the password globally in a global variable at the application memory.

Returns
password Existing (Application specific) password for the Watchdog module.

Definition at line 298 of file IfxScuWdt.c.

Referenced by IfxAsclin_Asc_disableModule(), IfxAsclin_enableModule(), IfxAsclin_Lin_disableModule(), IfxAsclin_Spi_disableModule(), IfxCcu6_enableModule(), IfxCif_setModuleStateRequest(), IfxCpu_invalidateProgramCache(), IfxCpu_setCoreMode(), IfxDsadc_Dsadc_initModule(), IfxEray_Eray_initModule(), IfxEth_enableModule(), IfxFce_Crc_initCrc(), IfxFce_Crc_initModule(), IfxFce_resetModule(), IfxGtm_Cmu_setClkFrequency(), IfxGtm_Cmu_setEclkFrequency(), IfxGtm_Cmu_setGclkFrequency(), IfxGtm_disable(), IfxGtm_enable(), IfxHssl_enableHsctModule(), IfxHssl_enableHsslModule(), IfxHssl_Hssl_initModule(), IfxI2c_disableModule(), IfxI2c_enableModule(), IfxI2c_setBaudrate(), IfxIom_Iom_initModule(), IfxIom_resetModule(), IfxMsc_clearReset(), IfxMsc_Msc_initModule(), IfxMsc_resetModule(), IfxMultican_Can_initModule(), IfxMultican_deinit(), IfxPort_resetESR(), IfxPort_setESR(), IfxPort_setGroupPadDriver(), IfxPort_setPinPadDriver(), IfxPsi5_Psi5_initChannel(), IfxPsi5_Psi5_initModule(), IfxPsi5_setRxInput(), IfxPsi5s_Psi5s_initChannel(), IfxPsi5s_Psi5s_initModule(), IfxQspi_SpiMaster_initModule(), IfxQspi_SpiSlave_initModule(), IfxScuCcu_init(), IfxScuCcu_initErayPll(), IfxScuCcu_setSpbFrequency(), IfxSent_Sent_deInitModule(), IfxSent_Sent_initModule(), IfxVadc_disableAccess(), IfxVadc_enableAccess(), IfxVadc_enableModule(), and IfxVadc_resetKernel().

IFX_INLINE uint16 IfxScuWdt_getCpuWatchdogPasswordInline ( Ifx_SCU_WDTCPU *  watchdog)

SCUWDT Inline API to fetch current password of CPU Watchdog module.

This API will fetch current Watchdog password for CPU WDT Hardware module. password is needed to be passed with most of the WDT APIs. Normally this API can be used to store the password locally in the caller function or store the password globally in a global variable at the application memory. This API is only meant to be used with startup routines where function call is not possible.

Parameters
watchdogpointer to the watchdog register map of CPU WDT hardware instance
Returns
password Existing (Application specific) password for the Watchdog module.

Definition at line 498 of file IfxScuWdt.h.

Referenced by _Core0_start(), _Core1_start(), _Core2_start(), IfxCpu_enableSegmentSpecificDataAccessCacheability(), IfxCpu_enableSegmentSpecificInstructionAccessCacheability(), IfxCpu_setDataCache(), IfxCpu_setProgramCache(), and IfxScuWdt_getCpuWatchdogPassword().

IFX_EXTERN uint16 IfxScuWdt_getSafetyWatchdogPassword ( void  )

SCUWDT API to fetch current password of Safety Watchdog module.

This API will fetch current Watchdog password for Safety WDT Hardware module. password is needed to be passed with most of the WDT APIs. Normally this API can be used to store the password locally in the caller function or store the password globally in a global variable at the application memory.

Returns
password Existing (Application specific) password for the Watchdog module.

Definition at line 401 of file IfxScuWdt.c.

Referenced by _Core0_start(), IfxCpu_setCoreMode(), IfxEray_Eray_initModule(), IfxScuCcu_init(), IfxScuCcu_initErayPll(), IfxScuCcu_setCpuFrequency(), IfxScuCcu_setGtmFrequency(), IfxScuCcu_setPll2ErayFrequency(), IfxScuCcu_setPll2Frequency(), and IfxScuCcu_setSpbFrequency().

IFX_INLINE uint16 IfxScuWdt_getSafetyWatchdogPasswordInline ( void  )

SCUWDT Inline API to fetch current password of Safety Watchdog module.

This API will fetch current Watchdog password for Safety WDT Hardware module. password is needed to be passed with most of the WDT APIs. Normally this API can be used to store the password locally in the caller function or store the password globally in a global variable at the application memory. This API is only meant to be used with startup routines where function call is not possible.

Returns
password Existing (Application specific) password for the Watchdog module.

Definition at line 512 of file IfxScuWdt.h.

Referenced by IfxScuWdt_getSafetyWatchdogPassword().

IFX_EXTERN void IfxScuWdt_serviceCpuWatchdog ( uint16  password)

SCUWDT API to service CPU Watchdog functionality.

This API will service Watchdog functionality corresponding to CPU WDT Hardware module. User need to use this API call periodically. This API results in reloading of the Watchdog Timer. User need to have the password stored locally in the caller function, (use IfxScuWdt_getCpuWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
Returns
None

Definition at line 204 of file IfxScuWdt.c.

IFX_EXTERN void IfxScuWdt_serviceSafetyWatchdog ( uint16  password)

SCUWDT API to service Safety Watchdog functionality.

This API will service Watchdog functionality corresponding to Safety WDT Hardware module. User need to use this API call periodically. This API results in reloading of the Watchdog Timer. User need to have the password stored locally in the caller function, (use IfxScuWdt_getSafetyWatchdogPassword).

Parameters
passwordExisting (Application specific) password for the Watchdog module.
Returns
None

Definition at line 316 of file IfxScuWdt.c.