Rev.1.01 2007.02.16
RJJ10J1643-0101
74
[1]: The value of timer RA register is stored.
(H8/300H)
• When using timer B1 (RAPI_TIMER_B1 specified)
[0]: The value of timer counter B1 is stored.
• When using timer V (RAPI_TIMER_V specified)
[0]: The value of timer counter V is stored.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (event counter mode)
Reference
__CreateEventCounter
,
__EnableEventCounter
,
__DestroyEventCounter
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 Y as event counter mode */
__GetEventCounter(RAPI_TIMER_Y, data );
}