Enableeventcounter - Renesas M16C/62P Group Reference Manual

Group renesas embedded application programming interface
Hide thumbs Also See for M16C/62P Group:
Table of Contents

Advertisement

__EnableEventCounter

Synopsis
<Control operation of event counter mode>
Boolean __EnableEventCounter(unsigned long data)
Description
Controls operation of the timer that is set to specified timer mode by starting or
stopping it.
[data]
For data, the following definition values can be set. To set multiple definition values at
the same time, use the symbol "|" to separate each specified value.
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
Return value
is returned.
Timer (event counter mode)
Functionality
Reference
__CreateEventCounter, __DestroyEventCounter,
Remark
Program example
#include "rapi_timer_m16c_62p.h"
void func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
data
Setup data
Selects timer A channel 0.
RAPI_TIMER_A0
RAPI_TIMER_A1
Selects timer A channel 1.
RAPI_TIMER_A2
Selects timer A channel 2.
Selects timer A channel 3.
RAPI_TIMER_A3
Selects timer A channel 4.
RAPI_TIMER_A4
RAPI_TIMER_B0
Selects timer B channel 0.
Selects timer B channel 1.
RAPI_TIMER_B1
Selects timer B channel 2.
RAPI_TIMER_B2
RAPI_TIMER_B3
Selects timer B channel 3.
Selects timer B channel 4.
RAPI_TIMER_B4
Selects timer B channel 5.
RAPI_TIMER_B5
RAPI_TIMER_ON
Sets the timer that is set to event counter mode to start
operating.
Sets the timer that is set to event counter mode to stop
RAPI_TIMER_OFF
operating.
If an undefined value is specified in the argument, operation of the API cannot be
guaranteed.
/* Disable timer B1 as event counter mode */
__EnableEventCounter( RAPI_TIMER_B1|RAPI_TIMER_OFF );
__GetEventCounter
47

Advertisement

Table of Contents
loading

Table of Contents