User`s manual
RX62N Group, RX621 Group 4. Library Reference
Description (3/3)
[data10]
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 the extended repeat function is not required for the source address.
[data11]
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 the extended repeat function is not required for the destination
address.
[func]
The function to be called when a DMA transfer completes.
Specify PDL_NO_FUNC if not required.
[data12]
The interrupt priority level. Select between 1 (lowest priority) and 15 (highest priority).
This parameter will be ignored if PDL_NO_FUNC is specified for parameter func.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
EXDMA controller
Reference
None.
Remarks
•
If another peripheral will be used to trigger an EXDMAC transfer, call this function before
calling the Create function for the peripheral.
•
A callback function is executed by the interrupt processing function. This means that no other
interrupt can be processed until the callback function has completed.
•
The EXDMA controller is not available on the 100-pin and 85-pin packages.
Program example
/* RPDL definitions */
#include "r_pdl_exdmac.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Configure EXDMAC channel 0 */
R_EXDMAC_Create(
0,
PDL_EXDMAC_NORMAL | \
PDL_EXDMAC_SOURCE_ADDRESS_PLUS | \
PDL_EXDMAC_DESTINATION_ADDRESS_PLUS | \
PDL_EXDMAC_ADDRESS_MODE_DUAL | PDL_EXDMAC_SIZE_32,
PDL_EXDMAC_PIN_A | PDL_EXDMAC_TRIGGER_FALLING,
PDL_NO_DATA,
(void*)0x0000AA00,
(void*)0x0000BB00,
10,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_FUNC,
0
);
}
R20UT0084EE0112 Rev.1.12 Page 4-75
July. 16, 2014