beautypg.com

Renesas RJJ10J1643-0101 User Manual

Page 146

background image

Rev.1.01 2007.02.16
RJJ10J1643-0101

144

RAPI_TIMER_RD2

Selects timer RD channel 2.

RAPI_TIMER_RD3

Selects timer RD channel 3.

RAPI_TIMER_ON

Sets the selected timer to start operating.

RAPI_TIMER_OFF

Sets the selected timer to stop operating.

Return value

If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.

Functionality

Timer (register manipulation)

Reference

__SetTimerRegister

,

__ClearTimerRegister

,

__GetTimerRegister

Remark

If an undefined value is specified in the argument, operation of the API cannot be
guaranteed.

The specifiable timers differ with each CPU used.

To specify commencement of timer operation when using timer V of the H8/300H, set the

clock and count condition to be supplied to TCNTV that are specified in __SetTimerRegister

immediately preceding this API.

Program example

#include " rapi_timer_r8c_13.h"

void func( void )
{
/* Activate timer C */
__EnableTimerRegister( RAPI_TIMER_C|RAPI_TIMER_ON );
}