Renesas M16C/62P Group Instrukcja Użytkownika Strona 61

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 98
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 60
Rev.1.00 2007.11.1
REC10B0002-0100
61
[data4]
Specify 0.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (pulse width measurement mode)
Reference
__EnablePulseWidthMeasurementMode, __DestroyPulseWidthMeasurementMode,
__GetPulseWidthMeasurementMode
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 B4 as pulse width measurement mode */
__CreatePulseWidthMeasurementMode(
RAPI_TIMER_B4|RAPI_TIMER_ON|RAPI_RISING_FALLING|RAPI_F8,
5, 0, 0, TimerIntFunc);
}
Przeglądanie stron 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 97 98

Komentarze do niniejszej Instrukcji

Brak uwag