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

  • 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 55
Rev.1.00 2007.11.1
REC10B0002-0100
56
[data3]
Specify 0.
[data4]
Specify 0.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise,
RAPI_TRUE is returned.
Functionality
Timer (pulse period measurement mode)
Reference
__EnablePulsePeriodMeasurementMode, __DestroyPulsePeriodMeasurementMode,
__GetPulsePeriodMeasurementMode
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 TimerIntFunc( void ){}
void func( void )
{
/* 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);
}
Vue de la page 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 97 98

Commentaires sur ces manuels

Pas de commentaire