User`s manual

RX62N Group, RX621 Group 4. Library Reference
2) R_DMAC_Destroy
Synopsis
Disable the DMA controller.
Prototype
bool R_DMAC_Destroy(
uint8_t data
// Channel number
);
Description
Shutdown the DMAC module.
[data]
The channel number n (where n = 0 to 3).
Return value
True if the shutdown succeeded; otherwise false.
Category
DMA controller
Reference
R_DMAC_Create.
Remarks
If all channels have been suspended, the DMAC module will be shut down.
Disabling the DMAC module will also shut down the DTC.
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
/* RPDL definitions */
#include "r_pdl_dmac.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Shutdown channel 2 */
R_DMAC_Destroy(
2
);
}
R20UT0084EE0112 Rev.1.12 Page 4-68
July. 16, 2014