Renesas RJJ10J1643-0101 Network Card User Manual


 
Rev.1.01 2007.02.16
RJJ10J1643-0101
115
__EnableInputCapture
Synopsis
<Control operation of input capture mode>
Boolean __EnableInputCapture(unsigned long data)
data Setup data (content differs with MCU type)
Description
Controls operation of the timer that is set to specified input capture mode by starting or
stopping it.
[data]
For data, the following definition values can be set. To set multiple definition values at
the same time, use the symbol “|” to separate each specified value.
(M16C)
RAPI_TIMER_S Selects timer S.
RAPI_TIMER_ON Sets the timer that is set to input capture mode to start operating.
RAPI_TIMER_OFF Sets the timer that is set to input capture mode to stop operating.
(R8C)
RAPI_TIMER_C Selects timer C.
RAPI_TIMER_RD0 Selects timer RD0 channe 0.
RAPI_TIMER_RD1 Selects timer RD0 channe 1.
RAPI_TIMER_ON Sets the timer that is set to input capture mode to start operating.
RAPI_TIMER_OFF Sets the timer that is set to input capture mode to stop operating.
(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 RD0.
RAPI_TIMER_RD0 Selects timer RD0 channe 0.
RAPI_TIMER_RD1 Selects timer RD0 channe 1.
RAPI_TIMER_RD2 Selects timer RD0 channe 2.
RAPI_TIMER_RD3 Selects timer RD0 channe 3.
RAPI_TIMER_ON Sets the timer that is set to input capture mode to start operating.
RAPI_TIMER_OFF Sets the timer that is set to input capture mode to stop operating.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (input capture mode)
Reference
CreateInputCapture, DestroyInputCapture, GetInputCapture
Remark
If an undefined value is specified in the argument, operation of the API cannot be
guaranteed.