![]() |
![]() |
Functions | |
void | CSL_tscEnable (void) |
CSL_Uint64 | CSL_tscRead (void) |
void CSL_tscEnable | ( | void | ) |
===========================================================================
CSL_tscEnable
Description
This API enables the 64 bit time stamp counter. The Time Stamp Counter (TSC) stops only upon Reset or powerdown. When time stamp counter is enabled (following a reset or powerdown of the CPU) it will initialize to 0 and begin incrementing once per CPU cycle. You cannot reset the time stamp counter.
Arguments
None
Return Value
None
Pre Condition
None
Post Condition
Time Stamp Counter value starts incrementing
Writes
TSCL=0, TSCH=0
Example
CSL_tscEnable (); *
============================================================================
CSL_Uint64 CSL_tscRead | ( | void | ) |
============================================================================
CSL_tscRead
Description
Reads the 64 bit timer stamp conter and return the 64-bit counter value.
Arguments None
Return Value CSL_Uint64
Pre Condition
None
Post Condition
None
Reads TSCL, TSCH
Example
CSL_Uint64 counterVal; ... CSL_tscStart(); ... counterVal = CSL_tscRead(); *
============================================================================