Rev.1.01 2007.02.16
RJJ10J1643-0101
71
__DestroyEventCounter
Synopsis
<Discard settings of event counter mode>
Boolean __DestroyEventCounter(unsigned long data)
data
Setup data (content differs with MCU type)
Description
Discards settings of the timer that is set to specified timer mode.
[data]
For data, the following definition values can be set.
(M16C)
RAPI_TIMER_A0
Selects timer A channel 0.
RAPI_TIMER_A1
Selects timer A channel 1.
RAPI_TIMER_A2
Selects timer A channel 2.
RAPI_TIMER_A3
Selects timer A channel 3.
RAPI_TIMER_A4
Selects timer A channel 4.
RAPI_TIMER_B0
Selects timer B channel 0.
RAPI_TIMER_B1
Selects timer B channel 1.
RAPI_TIMER_B2
Selects timer B channel 2.
(R8C)
RAPI_TIMER_X
Selects timer X.
RAPI_TIMER_Y Selects
timer
Y.
RAPI_TIMER_RA
Selects timer RA.
(H8/300H)
RAPI_TIMER_B1
Selects timer B1.
RAPI_TIMER_V
Selects timer V.
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
,
__GetEventCounter
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.
•
When used for the H8/300H, this API places a specified timer into module stanby
state after discarding it.
Program example
#include "rapi_timer_r8c.h"