23-12
Timer Tools
Programmer’s Manual
This routine takes in two reference times and return to the caller the difference
between the two. This routine takes care of wrapped around condition of the
32-bit continuous reference value. All reference timer values in this routinDescription
in unit of milliseconds.
Parameter
Return Value
23.18
RefTimeRead
Syntax
U32
RefTimeRead
(void)
Description
Returns the current 32-bit reference timer value to the caller in unDescription
milliseconds. The calling of this function will occupy longer CPU time than
RefFineTimeRead().
Parameter
Return Value
23.19
SetPeriod
Syntax
Name
Description
beginTime
The begin reference time in unit of
millisecond
endTime
The end reference time in unit of
millisecond
Name
Description
N/A
The elapsed time between the two given
reference times in unit of milliseconds
Name
Description
void
-
Name
Description
N/A
Returns a 32-bit reference timer value in
unit of milliseconds
Personal Portable System Manager
Programmer’s Manual
Timer Tools
23-9
STATUS
RefFineTimeAlarmId
Sets up an alarm time with respect to the current reference timer in unit of 100
microseconds. Maximum period between alarm time and current time is
0x7FFFFFFF/10 milliseconds. The
Parameter
Return Value
23.13
RefFineTimeDiff
Syntax
U32
RefFineTimeDiff
This routine takes in two reference times and return to the caller the difference
between the two times. This routine takes care of wrapped around condition of
the 32-bit continuous reference value. All reference timer values in this routine
are in unit of 100 microseconds.
Parameter
Name
Description
alarmId
alarmTime
Name
Description
PPSM_OK
Successful operation
Name
Description
beginTime
endTime
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.