Renesas RJJ10J1643-0101 Network Card User Manual


 
Rev.1.01 2007.02.16
RJJ10J1643-0101
103
__GetPulseWidthMeasurementMode
Synopsis
<Get measured value in pulse width measurement mode>
Boolean __GetPulseWidthMeasurementMode(unsigned long data1, unsigned int
*data2)
data1 Setup data 1 (content differs with MCU type)
data2 Pointer to the buffer in which counter value is stored
Description
Gets the counter value of the timer that is set to specified pulse width measurement
mode.
[data1]
For data, the following definition values can be set.
(M16C)
RAPI_TIMER_B0 Selects timer B channel 0.
RAPI_TIMER_B1 Selects timer B channel 1.
RAPI_TIMER_B2 Selects timer B channel 2.
(R8C)
RAPI_TIMER_X Selects timer X.
RAPI_TIMER_RA Selects timer RA.
(H8/300H)
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_RD
0
Selects timer RD channel 0.
RAPI_TIMER_RD
1
Selects timer RD channel 1.
RAPI_TIMER_RD
2
Selects timer RD channel 2.
RAPI_TIMER_RD
3
Selects timer RD channel 3.
[data2]
Specify a pointer to the array in which the acquired counter value is stored.
(M16C)
• When using timer B (RAPI_TIMER_B0 to RAPI_TIMER_B2 specified)
[0]: The value of timer Bi register (i = 0–2) is stored.
(R8C)
• When using timer X (RAPI_TIMER_X specified)
[0]: The value of prescaler X register is stored.
[1]: The value of timer X register is stored.
• When using timer RA (RAPI_TIMER_RA specified)