User`s manual
RX62N Group, RX621 Group 4. Library Reference
Description (2/2)
[data7]
The address offset value. Specify PDL_NO_DATA if not required.
[data8]
The source address extended repeat value. Specify PDL_NO_DATA if not required.
[data9]
The destination address extended repeat value. Specify PDL_NO_DATA if not required.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
EXDMA controller
Reference
R_EXDMAC_Create
Remarks
•
The Software trigger control is valid only if the Software trigger option has been selected.
•
This function must be called in order to start the EXDMAC.
•
Refer to R_EXDMAC_Create for the valid parameter values.
•
The Suspend / Enable and Start control is executed at the end of the function. If a channel has
completed a transfer, parameters may be changed and the channel re-enabled in one function
call.
Program example
/* RPDL definitions */
#include "r_pdl_exdmac.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
#include <string.h>
const char source_string_1[]="Renesas RX62N";
const char source_string_2[]="DMAC example";
volatile char destination_string_1[]=".......................";
void func(void)
{
/* Re-enable transfers on channel 0 */
R_EXDMAC_Control(
0,
PDL_EXDMAC_ENABLE,
PDL_NO_PTR,
PDL_NO_PTR,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA
);
/* Reload and trigger channel 1 */
R_EXDMAC_Control(
1,
PDL_EXDMAC_ENABLE | PDL_EXDMAC_START | \
PDL_EXDMAC_UPDATE_SOURCE | PDL_EXDMAC_UPDATE_DESTINATION | \
PDL_EXDMAC_UPDATE_COUNT | PDL_EXDMAC_UPDATE_SIZE,
source_string_1,
destination_string_1,
1,
(uint16_t)strlen(source_string_2),
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA
);
}
R20UT0084EE0112 Rev.1.12 Page 4-78
July. 16, 2014