![]() |
xiltimer
Vitis Drivers API Documentation
|
Macros | |
| #define | MAX_COUNT 0xFFFFFFFFU |
| The ScuTimer typically operates with a 32-bit counter, and this value represents the maximum possible count that can be stored in that counter. More... | |
| #define | REG_SHIFT 16U |
| the shift amount used when concatenating two registers to form a 64-bit value. More... | |
| #define | XCntrVal u16 |
| the type used to represent the value of a timer counter. More... | |
Functions | |
| void | XilTimer_Sleep (unsigned long delay, XTimer_DelayType DelayType) |
| This API contains common delay implementation using library API's. More... | |
| void | sleep (unsigned int seconds) |
| This API gives delay in sec. More... | |
| void | msleep (unsigned long mseconds) |
| This API gives delay in msec. More... | |
| void | usleep (unsigned long useconds) |
| This API gives delay in usec. More... | |
| void | __attribute__ ((constructor)) |
| This API initializes the xiltimer library through constructor. More... | |
| void | XTimer_SetHandler (XTimer_TickHandler FuncPtr, void *CallBackRef, u8 Priority) |
| This routine installs an asynchronous callback function for the given FuncPtr. More... | |
| void | XTimer_SetInterval (unsigned long delay) |
| This API sets the elapse interval for the timer instance. More... | |
| void | XTimer_ClearTickInterrupt (void) |
| This API clears the interrupt status of the tick timer instance. More... | |
| #define MAX_COUNT 0xFFFFFFFFU |
The ScuTimer typically operates with a 32-bit counter, and this value represents the maximum possible count that can be stored in that counter.
| #define REG_SHIFT 16U |
the shift amount used when concatenating two registers to form a 64-bit value.
the shift amount is 32, indicating a 16-bit register width.
| #define XCntrVal u16 |
the type used to represent the value of a timer counter.
Depending on the architecture being targeted, it is a 16-bit unsigned integer (u16).
| void __attribute__ | ( | (constructor) | ) |
This API initializes the xiltimer library through constructor.
References XilSleepTimer_Init(), and XilTickTimer_Init().
| void msleep | ( | unsigned long | mseconds | ) |
This API gives delay in msec.
| mseconds | Delay time in milliseconds |
References XilTimer_Sleep(), and XTIMER_DELAY_MSEC.
| void sleep | ( | unsigned int | seconds | ) |
This API gives delay in sec.
| seconds | Delay time in seconds |
References XilTimer_Sleep(), and XTIMER_DELAY_SEC.
| void usleep | ( | unsigned long | useconds | ) |
This API gives delay in usec.
| useconds | Delay time in microseconds |
References XilTimer_Sleep(), and XTIMER_DELAY_USEC.
| void XilTimer_Sleep | ( | unsigned long | delay, |
| XTimer_DelayType | DelayType | ||
| ) |
This API contains common delay implementation using library API's.
References XTimerTag::XTimer_ModifyInterval.
| void XTimer_ClearTickInterrupt | ( | void | ) |
This API clears the interrupt status of the tick timer instance.
References XTimerTag::XTickTimer_ClearInterrupt.
| void XTimer_SetHandler | ( | XTimer_TickHandler | FuncPtr, |
| void * | CallBackRef, | ||
| u8 | Priority | ||
| ) |
This routine installs an asynchronous callback function for the given FuncPtr.
| FuncPtr | is the address of the callback function. |
| CallBackRef | is a user data item that will be passed to the callback function when it is invoked. |
| Priority | - Priority for the interrupt |
References XTimerTag::CallBackRef, XTimerTag::Handler, and XTimerTag::XTimer_TickIntrHandler.
| void XTimer_SetInterval | ( | unsigned long | delay | ) |
This API sets the elapse interval for the timer instance.
| delay | Delay time in milliseconds |
References XTimerTag::XTimer_TickInterval.