wdttb
Vitis Drivers API Documentation
xwdttb.h File Reference

Data Structures

struct  XWdtTb_Config
 This typedef contains configuration information for the device. More...
 
struct  XWdtTb
 The XWdtTb driver instance data. More...
 

Macros

#define XWDTTB_H
 by using protection macros More...
 

Enumerations

enum  XWdtTb_Event { XWDTTB_NO_BAD_EVENT = 0, XWDTTB_RS_KICK_EVENT, XWDTTB_TSR_MM_EVENT, XWDTTB_SEC_WIN_EVENT }
 This typedef contains enumeration of different events in basic mode. More...
 

Functions

s32 XWdtTb_CfgInitialize (XWdtTb *InstancePtr, const XWdtTb_Config *CfgPtr, UINTPTR EffectiveAddr)
 This function initializes the AXI Timebase Watchdog Timer core. More...
 
s32 XWdtTb_Initialize (XWdtTb *InstancePtr, u16 DeviceId)
 Initialize a specific legacy/window watchdog timer/timebase instance/driver. More...
 
void XWdtTb_Start (XWdtTb *InstancePtr)
 This function starts the legacy or window watchdog timer. More...
 
s32 XWdtTb_Stop (XWdtTb *InstancePtr)
 This function disables the legacy or window watchdog timer. More...
 
u32 XWdtTb_IsWdtExpired (const XWdtTb *InstancePtr)
 This function checks if the legacy watchdog timer has expired or window watchdog timer either in second window or not in second window. More...
 
u32 XWdtTb_IsGenericWdtFWExpired (const XWdtTb *InstancePtr)
 This function checks if the Generic watchdog timer has First window expired or not. More...
 
void XWdtTb_RestartWdt (const XWdtTb *InstancePtr)
 This function restarts the legacy or window watchdog timer. More...
 
XWdtTb_ConfigXWdtTb_LookupConfig (u16 DeviceId)
 This function returns a reference to an XWdtTb_Config structure based on the core id, DeviceId. More...
 
void XWdtTb_AlwaysEnable (const XWdtTb *InstancePtr)
 This function keeps Window Watchdog Timer always enabled. More...
 
void XWdtTb_ClearLastEvent (const XWdtTb *InstancePtr)
 This function clears event(s) that present after system reset. More...
 
void XWdtTb_ClearResetPending (const XWdtTb *InstancePtr)
 This function clears the window watchdog reset pending. More...
 
void XWdtTb_IntrClear (const XWdtTb *InstancePtr)
 This function clears window watchdog timer interrupt (WINT) bit. More...
 
void XWdtTb_SetByteCount (const XWdtTb *InstancePtr, u32 ByteCount)
 This function sets byte count to determine the interrupt assertion point in the second window configuration. More...
 
u32 XWdtTb_GetByteCount (const XWdtTb *InstancePtr)
 This function provides byte count value of the selected byte count in the second window configuration. More...
 
void XWdtTb_SetByteSegment (const XWdtTb *InstancePtr, u32 ByteSegment)
 This function sets byte segment selection to determine the interrupt assertion point in the second window configuration. More...
 
u32 XWdtTb_GetByteSegment (const XWdtTb *InstancePtr)
 This function provides byte segment selection in the second window configuration. More...
 
void XWdtTb_EnableSst (const XWdtTb *InstancePtr)
 This function enables Second Sequence Timer (SST) function. More...
 
void XWdtTb_DisableSst (const XWdtTb *InstancePtr)
 This function disables Second Sequence Timer (SST) function. More...
 
void XWdtTb_EnablePsm (const XWdtTb *InstancePtr)
 This function enables Program Sequence Monitor (PSM) function. More...
 
void XWdtTb_DisablePsm (const XWdtTb *InstancePtr)
 This function disables Program Sequence Monitor (PSM) function. More...
 
void XWdtTb_EnableFailCounter (XWdtTb *InstancePtr)
 This function enables Fail Counter (FC) function. More...
 
void XWdtTb_DisableFailCounter (XWdtTb *InstancePtr)
 This function disables Fail Counter (FC) function. More...
 
void XWdtTb_EnableExtraProtection (const XWdtTb *InstancePtr)
 This function provides extra safeguard against unintentional clear of WEN bit. More...
 
void XWdtTb_DisableExtraProtection (const XWdtTb *InstancePtr)
 This function enables unintentional clear of WEN bit. More...
 
void XWdtTb_SetWindowCount (const XWdtTb *InstancePtr, u32 FirstWinCount, u32 SecondWinCount)
 This function sets the count value for the first and second window. More...
 
void XWdtTb_SetGenericWdtWindow (const XWdtTb *InstancePtr, u32 GWOR_config)
 This function sets the count value for the GWDT_Compare_value_reg0 ,GWDT_Compare_value_reg1 & GWDT_Offset_regs . More...
 
void XWdtTb_SetGenericWdtWindowTimeOut (const XWdtTb *InstancePtr, u32 MilliSeconds)
 This function sets the count value for the GWDT_Offset_regs . More...
 
u32 XWdtTb_ProgramWDTWidth (const XWdtTb *InstancePtr, u32 width)
 This function programs the width of Watchdog Timer. More...
 
u8 XWdtTb_GenAnswer (u8 TokenVal, u8 AnsByteCnt, u8 TokenFdbk)
 This routine generates responses based on input token in QA mode. More...
 
s32 XWdtTb_SelfTest (const XWdtTb *InstancePtr)
 This function runs a self-test on the timebase or window if enabled. More...
 

Variables

XWdtTb_Config XWdtTb_ConfigTable []
 Configuration table. More...