Renesas M16C/62P Group Reference Manual page 58

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

Advertisement

[data3]
[data4]
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise,
Return value
RAPI_TRUE is returned.
Functionality
Timer (pulse period measurement mode)
Reference
__EnablePulsePeriodMeasurementMode, __DestroyPulsePeriodMeasurementMode,
__GetPulsePeriodMeasurementMode
Remark
Program example
#include "rapi_timer_m16c_62p.h"
void TimerIntFunc( void ){}
void func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
Specify 0.
Specify 0.
If an undefined value is specified in the first argument, operation of the API
cannot be guaranteed.
/* Set up timer B0 as pulse period measurement mode */
__CreatePulsePeriodMeasurementMode(
RAPI_TIMER_B0|RAPI_TIMER_ON|RAPI_FALLING_FALLING|RAPI_F8,
5, 0, 0, TimerIntFunc);
56

Advertisement

Table of Contents
loading

Table of Contents