__GetPulsePeriodMeasurementMode
Synopsis
<Get measured value in pulse period measurement mode>
Boolean __GetPulsePeriodMeasurementMode(unsigned long data1, unsigned
int *data2)
Description
Gets the counter value of the timer that is set to specified pulse period measurement
mode.
[data1]
For data, the following definition values can be set.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (pulse period measurement mode)
Reference
__CreatePulsePeriodMeasurementMode, __EnablePulsePeriodMeasurementMode,
__DestroyPulsePeriodMeasurementMode
•
Remark
Program example
#include "rapi_timer_m16c_62p.h"
void func( void )
{
*/
}
Rev.1.00
2007.11.1
REC10B0002-0100
data1
Setup data 1
data2
Pointer to the buffer in which counter value is stored
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.
If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.
unsigned int data[2];
/* Get the measured value of timer B3 as pulse period measurement mode
__GetPulsePeriodMeasurementMode( RAPI_TIMER_B3, data );
59