Renesas M16C/62P Group Uživatelský manuál Strana 68

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 98
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 67
Rev.1.00 2007.11.1
REC10B0002-0100
68
__ClearTimerRegister
Synopsis
<Clear timer register>
Boolean __ClearTimerRegister(unsigned long data)
data Setup data
Description
Sets the timer register of a specified timer to its initial value after reset.
[data]
For data, the following definition values can be set.
RAPI_TIMER_A0 Selects timer A channel 0.
RAPI_TIMER_A1 Selects timer A channel 1.
RAPI_TIMER_A2 Selects timer A channel 2.
RAPI_TIMER_A3 Selects timer A channel 3.
RAPI_TIMER_A4 Selects timer A channel 4.
RAPI_TIMER_B0 Selects timer B channel 0.
RAPI_TIMER_B1 Selects timer B channel 1.
RAPI_TIMER_B2 Selects timer B channel 2.
RAPI_TIMER_B3 Selects timer B channel 3.
RAPI_TIMER_B4 Selects timer B channel 4.
RAPI_TIMER_B5 Selects timer B channel 5.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise,
RAPI_TRUE is returned.
Functionality
Timer (register manipulation)
Reference
__SetTimerRegister, __EnableTimerRegister, __GetTimerRegister
Remark
If an undefined value is specified in the argument, operation of the API cannot be
guaranteed.
Program example
#include " rapi_timer_m16c_62p.h"
void func( void )
{
/* Clear the setting of timer A2 */
__ClearTimerRegister( RAPI_TIMER_A2 );
}
Zobrazit stránku 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 97 98

Komentáře k této Příručce

Žádné komentáře