Destroypulsewidthmeasurementmode – Renesas M16C/62P Group User Manual
Page 65

Rev.1.00 2007.11.1
REC10B0002-0100
63
__DestroyPulseWidthMeasurementMode
Synopsis
Boolean __DestroyPulseWidthMeasurementMode(unsigned long data)
data Setup
data
Description
Discards settings of the timer that is set to specified pulse width measurement mode.
[data]
For data, the following definition values can be 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.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (pulse width measurement mode)
Reference
__CreatePulseWidthMeasurementMode
__EnablePulseWidthMeasurementMode
__GetPulseWidthMeasurementMode
Remark
•
If an undefined value is specified in the argument, operation of the API cannot be
guaranteed.
Program example
#include "rapi_timer_m16c_62p.h"
void func( void )
{
/* Destroy the setting of timer B0 as pulse width measurement mode */
__DestroyPulseWidthMeasurementMode( RAPI_TIMER_B0 );
}