Createeventcounter - Renesas M16C/62P Group Reference Manual

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

Advertisement

__CreateEventCounter

Synopsis
<Set event counter mode>
Boolean __CreateEventCounter(unsigned long data1, unsigned int data2,
unsigned int data3, unsigned int data4, void* func)
data1
data2
data3
data4
func
Description
Sets a specified timer to event counter mode.
[data1]
For data1, the following definition values can be set. To set multiple definition values at
the same time, use the symbol "|" to separate each specified value.
RAPI_TIMER_A0
RAPI_TIMER_A1
RAPI_TIMER_A2
RAPI_TIMER_A3
RAPI_TIMER_A4
RAPI_TIMER_B0
RAPI_TIMER_B1
RAPI_TIMER_B2
RAPI_TIMER_B3
RAPI_TIMER_B4
RAPI_TIMER_B5
RAPI_EV_EXTERNAL
RAPI_EV_TIMER_AJ
RAPI_EV_TIMER_AK
RAPI_EV_TIMER_B2
RAPI_EV_TIMER_BJ
RAPI_TIMER_ON
RAPI_TIMER_OFF
RAPI_PULSE_ON
RAPI_PULSE_OFF
RAPI_AUTO_RELOAD
RAPI_FREE_RUN
Rev.1.00
2007.11.1
REC10B0002-0100
Setup data 1
Setup data 2
Setup data 3
Setup data 4
Callback function pointer
(Specify 0 if no callback functions are set.)
Uses timer A channel 0.
Uses timer A channel 1.
Uses timer A channel 2.
Uses timer A channel 3.
Uses timer A channel 4.
Uses timer B channel 0.
Uses timer B channel 1.
Uses timer B channel 2.
Uses timer B channel 3.
Uses timer B channel 4.
Uses timer B channel 5.
Selects the external signal input to TA
or TB
pin (when using timer Bi) for the count source.
iIN
Selects overflow or underflow of timer Aj (j = i-1, however j = 4 if i =
0) for the count source.
Selects overflow or underflow of timer Ak (k = i+1, however k = 0 if i
= 4) for the count source.
Selects overflow or underflow of timer B2 for the count source.
Selects overflow or underflow of timer Bj (j = i – 1, however j = 2 if i
= 0, j = 5 if i = 3 ) for the count source.
Sets the timer to start operating in __CreateEventCounter.
Sets the timer to stop operating in __CreateEventCounter.
Selects that pulses are output from TA
Selects that no pulses are output from TA
Selects reload type for the count type.
Selects free-run type for the count type.
44
pin (when using timer Ai)
iIN
pin.
iIN
pin.
iIN

Advertisement

Table of Contents
loading

Table of Contents