The source of the timestamps for the A8 TimestampProvider is
the A8's internal PMC counter which counts CPU cycles.
As this counter is only 32 bits in length, provision is made
in the get64() API to test if an overflow has occurred since
the last invocation of get64() and compensate the return value
accordingly.
As it is possible for the 32 bit counter to roll over more
than once between successive get64() calls, this module offers
an auto refresh feature. If auto refresh is enabled
(see
autoRefreshEnable), this module will register a
clock function with a period less than the amount of time it
takes for the 32 bit counter to roll over. The clock function
checks for an overflow and updates the upper 32 bits of the
counter to guarantee coherency in successive timestamps.
Auto refresh feature requires that the SYS/BIOS clock is enabled.
If the SYS/BIOS clock is disabled
(see
BIOS.clockEnabled)
then this feature cannot be enabled.
TimestampProvider_get32() // module-wide |
|
Return a 32-bit timestamp
Bits32 TimestampProvider_get32();
RETURNS
Returns a 32-bit timestamp value.
Use
getFreq to convert this value into units of real time.
Returns a 32-bit timestamp value.
Use
getFreq to convert this value into units of real time.
SEE
TimestampProvider_get64() // module-wide |
|
Return a 64-bit timestamp
ARGUMENTS
result
pointer to 64-bit result
This parameter is a pointer to a structure representing a 64-bit
wide timestamp value where the current timestamp is written.
If the underlying hardware does not support 64-bit resolution, the
hi field of
result is always set to 0; see
xdc.runtime.Types.Timestamp64. So, it is possible for
the
lo field to wrap around without any change to the
hi field.
Use
getFreq to convert this value into units of real
time.
pointer to 64-bit result
This parameter is a pointer to a structure representing a 64-bit
wide timestamp value where the current timestamp is written.
If the underlying hardware does not support 64-bit resolution, the
hi field of
result is always set to 0; see
xdc.runtime.Types.Timestamp64. So, it is possible for
the
lo field to wrap around without any change to the
hi field.
Use
getFreq to convert this value into units of real
time.
SEE
TimestampProvider_getFreq() // module-wide |
|
Get the timestamp timer's frequency (in Hz)
ARGUMENTS
freq
pointer to a 64-bit result
This parameter is a pointer to a structure representing a 64-bit
wide frequency value where the timer's frequency (in Hz)
is written; see
xdc.runtime.Types.FreqHz.
This function provides a way of converting timestamp
values into units of real time.
pointer to a 64-bit result
This parameter is a pointer to a structure representing a 64-bit
wide frequency value where the timer's frequency (in Hz)
is written; see
xdc.runtime.Types.FreqHz.
This function provides a way of converting timestamp
values into units of real time.
SEE
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool TimestampProvider_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool TimestampProvider_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 TimestampProvider_Module_getMask();
// Returns the diagnostics mask for this module
Void TimestampProvider_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module