Rev.1.01 2007.02.16
RJJ10J1643-0101
152
[9]: Specify the set value for general register A.
[10]: Specify the set value for general register B.
[11]: Specify the set value for general register C.
[12]: Specify the set value for general register D.
[13]: Specify the set value for timer RC mode register.
• When using timer RD (RAPI_TIMER_RD0 to RAPI_TIMER_RD3 specified)
[0]: Specify the set value for the timer RD mode register.
[1]: Specify the set value for the timer RD PWM mode register.
[2]: Specify the set value for the timer RD function control register.
[3]: Specify the set value for the timer RD output master enable register 1.
[4]: Specify the set value for the timer RD output master enable register 2.
[5]: Specify the set value for the timer RD output control register.
[6]: Specify the set value for the timer RD counter i(i=0,1).
[7]: Specify the set value for general register A_i(i=0,1).
[8]: Specify the set value for general register B_i(i=0,1).
[9]: Specify the set value for general register C_i(i=0,1).
[10]: Specify the set value for general register D_i(i=0,1).
[11]: Specify the set value for timer RD control register_i (i = 0, 1).
[12]: Specify the set value for timer RD I/O control register A_i (i = 0, 1).
[13]: Specify the set value for timer RD I/O control register C_i (i = 0, 1).
[14]: Specify the set value for timer RD status register_i (i = 0, 1).
[15]: Specify the set value for timer RD interrupt enable register_i (i = 0, 1).
[16]: Specify the set value for PWM mode output level control register_i (i = 0, 1).
[17]: Specify the set value for the timer RD digital filter function select register i(i = 0,
1).
[18]: Specify the set value for the timer RD start register.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (register manipulation)
Reference
__SetTimerRegister
,
__EnableTimerRegister
,
__ClearTimerRegister
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[7];
/* Get the value of timer Z registers */
__GetTimerRegister( RAPI_TIMER_Z, data );
}