![]() |
ttcps
Vitis Drivers API Documentation
|
Functions | |
s32 | XTtcPs_CfgInitialize (XTtcPs *InstancePtr, XTtcPs_Config *ConfigPtr, u32 EffectiveAddr) |
Initializes a specific XTtcPs instance such that the driver is ready to use. More... | |
u32 | XTtcPs_Release (XTtcPs *InstancePtr) |
This routine releases resources of XTtcPs instance/driver. More... | |
void | XTtcPs_SetMatchValue (XTtcPs *InstancePtr, u8 MatchIndex, XMatchRegValue Value) |
This function is used to set the match registers. More... | |
XMatchRegValue | XTtcPs_GetMatchValue (XTtcPs *InstancePtr, u8 MatchIndex) |
This function is used to get the value of the match registers. More... | |
void | XTtcPs_SetPrescaler (XTtcPs *InstancePtr, u8 PrescalerValue) |
This function sets the prescaler enable bit and if needed sets the prescaler bits in the control register. More... | |
u8 | XTtcPs_GetPrescaler (XTtcPs *InstancePtr) |
This function gets the input clock prescaler. More... | |
void | XTtcPs_CalcIntervalFromFreq (XTtcPs *InstancePtr, u32 Freq, XInterval *Interval, u8 *Prescaler) |
This function calculates the interval value as well as the prescaler value for a given frequency. More... | |
u32 | XTtcPs_InterruptHandler (XTtcPs *InstancePtr) |
Handles interrupts by resetting the counter value and clearing the status register. More... | |
void | XTtcPs_SetStatusHandler (XTtcPs *InstancePtr, void *CallBackRef, XTtcPs_StatusHandler FuncPointer) |
Sets the status callback function, the status handler, which the driver calls when it encounters conditions that should be reported to upper layer software. More... | |