Timer
21.2.1.13 ROM_TimerLoadGet
Gets the timer load value.
Prototype:
uint32_t
ROM_TimerLoadGet(uint32_t ui32Base,
uint32_t ui32Timer)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_TIMERTABLE is an array of pointers located at ROM_APITABLE[11].
ROM_TimerLoadGet is a function pointer located at ROM_TIMERTABLE[15].
Parameters:
ui32Base is the base address of the timer module.
ui32Timer specifies the timer; must be one of TIMER_A or TIMER_B. Only TIMER_A should
be used when the timer is configured for full-width operation.
Description:
This function gets the currently programmed interval load value for the specified timer.
Note:
This function can be used for both full- and half-width modes of 16/32-bit timers, and for half-
width modes of 32/64-bit timers. Use ROM_TimerLoadGet64() for full-width modes of 32/64-bit
timers.
Returns:
Returns the load value for the timer.
21.2.1.14 ROM_TimerLoadGet64
Gets the timer load value for a 64-bit timer.
Prototype:
uint64_t
ROM_TimerLoadGet64(uint32_t ui32Base)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_TIMERTABLE is an array of pointers located at ROM_APITABLE[11].
ROM_TimerLoadGet64 is a function pointer located at ROM_TIMERTABLE[24].
Parameters:
ui32Base is the base address of the timer module.
Description:
This function gets the currently programmed interval load value for the specified 64-bit timer.
Returns:
Returns the load value for the timer.
240 April 8, 2013