
Rev.1.01 2007.02.16
RJJ10J1643-0101
147
__GetTimerRegister
Synopsis
<Get timer register value>
Boolean __GetTimerRegister(unsigned long data1, unsigned int *data2)
data1
Setup data (content differs with MCU type)
data2
Pointer to the buffer in which register value is stored
Description
Gets the counter value of a specified timer.
[data]
For data, the following definition values can be set.
(M16C)
RAPI_TIMER_A0
Selects timer A channel 0.
RAPI_TIMER_A1
Selects timer A channel 1.
RAPI_TIMER_A2
Selects timer A channel 2.
RAPI_TIMER_A3
Selects timer A channel 3.
RAPI_TIMER_A4
Selects timer A channel 4.
RAPI_TIMER_B0
Selects timer B channel 0.
RAPI_TIMER_B1
Selects timer B channel 1.
RAPI_TIMER_B2
Selects timer B channel 2.
RAPI_TIMER_S
Selects timer S.
(R8C)
RAPI_TIMER_C
Selects timer C.
RAPI_TIMER_X
Selects timer X.
RAPI_TIMER_Y Selects
timer
Y.
RAPI_TIMER_Z
Selects timer Z.
RAPI_TIMER_RA
Selects timer RA.
RAPI_TIMER_RB
Selects timer RB.
RAPI_TIMER_RD0
Selects timer RD channel 0.
RAPI_TIMER_RD1
Selects timer RD channel 1.
RAPI_TIMER_RE
Selects timer RE.
(H8/300H)
RAPI_TIMER_A Selects
timer
A.
RAPI_TIMER_B1
Selects timer B1.
RAPI_TIMER_V
Selects timer V.
RAPI_TIMER_W
Selects timer W.
RAPI_TIMER_Z0
Selects timer Z channel 0.
RAPI_TIMER_Z1
Selects timer Z channel 1.
RAPI_TIMER_RC
Selects timer RC.
RAPI_TIMER_RD0
Selects timer RD channel 0.
RAPI_TIMER_RD1
Selects timer RD channel 1.
RAPI_TIMER_RD2
Selects timer RD channel 2.
RAPI_TIMER_RD3
Selects timer RD channel 3.