Renesas RJJ10J1643-0101 Network Card User Manual


 
Rev.1.01 2007.02.16
RJJ10J1643-0101
120
• When timer RD is used (RAPI_TIMER_RD0- RAPI_TIMER_RD1 specified)
[0]: Stores the value of timer counter.
[1]: Stores the value of general register A.
[2]: Stores the value of general register B.
[3]: Stores the value of general register C.
[4]: Stores the value of general register D.
(H8/300H)
[0]: Stores the value of the timer counter.
[1]: Stores the value of general register A.
[2]: Stores the value of general register B.
[3]: Stores the value of general register C.
[4]: Stores the value of general register D.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (input capture mode)
Reference
__CreateInputCapture, __EnableInputCapture, __DestroyInputCapture
Remark
If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.
The specifiable timers differ with each CPU used.
Program example
#include "rapi_timer_r8c_13.h"
void func( void )
{
unsigned int data[2];
/* Get the counter of timer C as input capture mode */
__GetInputCapture( RAPI_TIMER_C, data );
}