enum TimestampProvider_Source |
|
Input clock sources for dedicated Timestamp timer
typedef enum TimestampProvider_Source {
TimestampProvider_Source_ACLK,
// ACLK
TimestampProvider_Source_SMCLK
// SMCLK
} TimestampProvider_Source;
config TimestampProvider_clockSource // module-wide |
|
Input clock source for dedicated timer
DETAILS
If the TimestampProvider is to use a different timer than the one
used by the
Clock module, this
parameter specifies the input clock source for that dedicated timer.
For example, to use a dedicated timer for Timestamps, and to have it
run off of SMCLK, add the following to the application config script:
var Timestamp = xdc.useModule('ti.sysbios.family.msp430.TimestampProvider');
Timestamp.useClockTimer = false;
Timestamp.clockSource = Timestamp.Source_SMCLK;
config TimestampProvider_synchronize // module-wide |
|
Selected clock source is synchronous to CPU clock
extern const Bool TimestampProvider_synchronize;
DETAILS
If the TimestampProvider is to use a different timer than the one
used by the
Clock module, this
parameter specifies if the clock source is synchronous to CPU clock.
config TimestampProvider_timerId // module-wide |
|
Id of the timer to use for creating timestamps
extern const UInt TimestampProvider_timerId;
DETAILS
A value of
Timer.ANY (-1) indicates any timer
supported by
Timer is ok.
config TimestampProvider_useClockTimer // module-wide |
|
Use the same timer as Clock
extern const Bool TimestampProvider_useClockTimer;
DETAILS
Set this parameter when you want TimestampProvider to use the same
timer as the BIOS
Clock module.
This parameter overrides the
timeId setting.
TimestampProvider_get16() // module-wide |
|
Return a 16-bit timestamp
Bits16 TimestampProvider_get16();
RETURNS
Returns a 16-bit timestamp value.
Use
getFreq to convert this value into units of real time.
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