tmrctr
Vitis Drivers API Documentation
xtmrctr.c File Reference

Functions

void XTmrCtr_CfgInitialize (XTmrCtr *InstancePtr, XTmrCtr_Config *ConfigPtr, UINTPTR EffectiveAddr)
 This function populates the timer counter's configuration structure and sets some configurations defaults. More...
 
int XTmrCtr_InitHw (XTmrCtr *InstancePtr)
 (Re-)initialzes all timer counters which aren't started already. More...
 
int XTmrCtr_Initialize (XTmrCtr *InstancePtr, u16 DeviceId)
 Initializes a specific timer/counter instance/driver. More...
 
void XTmrCtr_Start (XTmrCtr *InstancePtr, u8 TmrCtrNumber)
 Starts the specified timer counter of the device such that it starts running. More...
 
void XTmrCtr_Stop (XTmrCtr *InstancePtr, u8 TmrCtrNumber)
 Stops the timer counter by disabling it. More...
 
u32 XTmrCtr_GetValue (XTmrCtr *InstancePtr, u8 TmrCtrNumber)
 Get the current value of the specified timer counter. More...
 
void XTmrCtr_SetResetValue (XTmrCtr *InstancePtr, u8 TmrCtrNumber, u32 ResetValue)
 Set the reset value for the specified timer counter. More...
 
u32 XTmrCtr_GetCaptureValue (XTmrCtr *InstancePtr, u8 TmrCtrNumber)
 Returns the timer counter value that was captured the last time the external capture input was asserted. More...
 
void XTmrCtr_Reset (XTmrCtr *InstancePtr, u8 TmrCtrNumber)
 Resets the specified timer counter of the device. More...
 
int XTmrCtr_IsExpired (XTmrCtr *InstancePtr, u8 TmrCtrNumber)
 Checks if the specified timer counter of the device has expired. More...
 
u8 XTmrCtr_PwmConfigure (XTmrCtr *InstancePtr, u32 PwmPeriod, u32 PwmHighTime)
 Configures timers to generate PWM output. More...
 
void XTmrCtr_PwmEnable (XTmrCtr *InstancePtr)
 Enables the PWM output as per configurations set by XTmrCtr_PwmConfigure. More...
 
void XTmrCtr_PwmDisable (XTmrCtr *InstancePtr)
 Disables the PWM output. More...