Renesas Single-Chip Microcomputer M38C89T-ADF Uživatelský manuál Strana 97

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 138
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 96
Rev.1.00 May 22 2012
REJ09B0566
4-77
3BLibrary Reference
4
4.2.7 Multi Function Timer Pulse Unit R_CMT_Destroy
2) R_CMT_Destroy
Synopsis
Disable a CMT unit.
Prototype bool R_CMT_Destroy(
uint8_t data
// Unit selection
);
Description
Shut down a CMT unit.
[data]
The timer unit n (where n = 0 or 1).
Return value
True if the unit selection is valid; otherwise false.
Category
Compare Match Timer
Reference
R_CMT_Create
Remarks
The timer unit is put into the stop state to reduce power consumption.
Program example
/* PDL definitions */
#include r_pdl_cmt.h
/* PDL device-specific definitions */
#include r_pdl_definitions.h
void func(void)
{
/* Shutdown channels 0 and 1 */
R_CMT_Destroy(
0
);
}
Zobrazit stránku 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 137 138

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

Žádné komentáře