Createpulseperiodmeasurementmode - Renesas M16C/62P Group Reference Manual

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

Advertisement

__CreatePulsePeriodMeasurementMode

Synopsis
<Set pulse period measurement mode>
Boolean __CreatePulsePeriodMeasurementMode(unsigned long data1,
unsigned int data2, unsigned int data3, unsigned int data4, void* func)
Description
Sets a specified timer to pulse period measurement 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.
[data2]
Rev.1.00
2007.11.1
REC10B0002-0100
data1
Setup data 1
data2
Setup data 2
data3
Setup data 3
data4
Setup data 4
func
Callback function pointer
(Specify 0 if no callback functions are set.)
RAPI_TIMER_B0
Uses timer B channel 0.
RAPI_TIMER_B1
Uses timer B channel 1.
RAPI_TIMER_B2
Uses timer B channel 2.
RAPI_TIMER_B3
Uses timer B channel 3.
RAPI_TIMER_B4
Uses timer B channel 4.
RAPI_TIMER_B5
Uses timer B channel 5.
RAPI_F1
Selects f
RAPI_F2
Selects f
RAPI_F8
Selects f
RAPI_F32
Selects f
RAPI_FC32
Selects f
RAPI_TIMER_ON
Sets the timer to start operating in __CreatePulsePeriodMeasurementMode.
RAPI_TIMER_OFF
Sets the timer to stop operating in __CreatePulsePeriodMeasurementMode.
RAPI_RISING_
Selects measurement of an interval from the rise to the next rise of a
RISING
measurement pulse.
RAPI_FALLING_
Selects measurement of an interval from the fall to the next fall of a
FALLING
measurement pulse.
• Specifiable definition values when timer B is used (RAPI_TIMER_B0 to
RAPI_TIMER_B5 specified)
(Count source)
Specify one from { RAPI_F1, RAPI_F2, RAPI_F8, RAPI_F32,
RAPI_FC32 }. The default value is RAPI_F2.
(Operating
Specify one from { RAPI_TIMER_ON, RAPI_TIMER_OFF }. The default
states set)
value is RAPI_TIMER_OFF.
(Measurement
Specify one from { RAPI_RISING_RISING, RAPI_FALLING_FALLING }.
pulse)
The default value is RAPI_FALLING_FALLING.
Specify the interrupt priority level (0–7) to be set in the interrupt control register.
for the count source.
1
for the count source.
2
for the count source.
8
for the count source.
32
for the count source.
C32
55

Advertisement

Table of Contents
loading

Table of Contents