Renesas M16C/62P Group Manual do Utilizador Página 46

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 98
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 45
Rev.1.00 2007.11.1
REC10B0002-0100
46
[data4]
Specify 0.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (event counter mode)
Reference
__EnableEventCounter, __DestroyEventCounter, __GetEventCounter
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 event counter mode */
__CreateEventCounter( RAPI_TIMER_B0|RAPI_TIMER_ON|RAPI_FALLING, 5,
0x80, 0, TimerIntFunc );
}
Vista de página 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 97 98

Comentários a estes Manuais

Sem comentários