User`s manual
RX62N Group, RX621 Group 4. Library Reference
Description (2/2)
[data7]
The address offset value. The range is from +16,777,215 to -16,777,216.
This value is ignored if the offset function is not selected. Specify PDL_NO_DATA if not required.
[data8]
The source address extended repeat value. The value can be any power of 2, from 2
1
to 2
27
.
Specify PDL_NO_DATA if not required.
[data9]
The destination address extended repeat value. The value can be any power of 2, from 2
1
to 2
27
.
Specify PDL_NO_DATA if not required.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
DMA controller
Reference
R_DMAC_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 DMAC.
•
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_dmac.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
#include <string.h>
const char source_string_1[]="Renesas RX62N";
volatile char destination_string_1[]=".......................";
void func(void)
{
/* Re-enable transfers on channel 2 */
R_DMAC_Control(
2,
PDL_DMAC_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_DMAC_Control(
1,
PDL_DMAC_ENABLE | PDL_DMAC_START | \
PDL_DMAC_UPDATE_SOURCE | PDL_DMAC_UPDATE_DESTINATION | \
PDL_DMAC_UPDATE_COUNT | PDL_DMAC_UPDATE_SIZE,
source_string_1,
destination_string_1,
1,
(uint16_t)strlen(source_string_1),
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA
);
}
R20UT0084EE0112 Rev.1.12 Page 4-70
July. 16, 2014