Renesas M16C/62P Group Manuel d'utilisateur Page 64

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 98
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 63
Rev.1.00 2007.11.1
REC10B0002-0100
64
__GetPulseWidthMeasurementMode
Synopsis
<Get measured value in pulse width measurement mode>
Boolean __GetPulseWidthMeasurementMode(unsigned long data1, unsigned int
*data2)
data1 Setup data 1
data2 Pointer to the buffer in which counter value is stored
Description
Gets the counter value of the timer that is set to specified pulse width measurement
mode.
[data1]
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,
__DestroyPulseWidthMeasurementMode
Remark
If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.
Program example
#include "rapi_timer_m16c_62p.h"
void func( void )
{
unsigned int data[2];
/* Get the measured value of timer B1 as pulse width measurement mode
*/
__GetPulseWidthMeasurementMode( RAPI_TIMER_B1, data );
}
Vue de la page 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 97 98

Commentaires sur ces manuels

Pas de commentaire