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

  • 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 80
Rev.1.00 May 22 2012
REJ09B0566
4-61
3BLibrary Reference
4
4.2.6 37BDMA Controller R_DMAC_Destroy
2) R_DMAC_Destroy
Synopsis
Shutdown the DMA controller.
Prototype bool R_DMAC_Destroy(
uint8_t data1
// channel to be disabled
);
Description
Shutdown the DMAC module.
[data1]
The channel number n (where n = 0 to 15).
Return value
True if the shutdown succeeded; otherwise false.
Category
DMA controller
Reference
R_DMAC_Create, R_DMAC_Control
Remarks If all channels have been suspended, the DMAC module will be disabled.
If another peripheral is being used to trigger a DMA transfer, stop the triggers from that peripheral (using
Control or Destroy for that peripheral) before calling this function.
Program example
/* PDL definitions */
#include r_pdl_dmac.h
/* PDL device-specific definitions */
#include r_pdl_definitions.h
void func(void)
{
/* Shutdown the DMA controller for channel 0 */
R_DMAC_Destroy(
0
);
}
Zobrazit stránku 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 137 138

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

Žádné komentáře