User`s manual
RX62N Group, RX621 Group 4. Library Reference
4) R_DTC_Control
Synopsis
Control the Data Transfer Controller.
Prototype
bool R_DTC_Control (
uint32_t data1,
// Control options
uint32_t * data2,
// Transfer data start address
void * data3,
// Source start address
void * data4,
// Destination start address
uint16_t data5,
// Transfer count
uint8_t data6
// Block size
);
Description
Modify the operation of the Data Transfer Controller.
[data1]
Control the operation.
•
Stop / Start control
PDL_DTC_STOP or
PDL_DTC_START
Enable / re-enable or suspend DTC transfers.
•
The transfer registers to be modified, using the selected parameters.
PDL_DTC_UPDATE_SOURCE
The Source Address register, using parameter data3.
PDL_DTC_UPDATE_DESTINATION
The Transfer Address register, using parameter data4.
PDL_DTC_UPDATE_COUNT
The Transfer Count register, using parameter data5.
PDL_DTC_UPDATE_BLOCK_SIZE
The Block Size register, using parameter data6.
•
Transfer trigger control
When the transfer count specified in R_DTC_Create is completed, the DTC will ignore further
interrupts from that trigger source.
If you require the interrupt to trigger another transfer, specify the trigger used in the relevant call
of R_DTC_Create.
[data2]
If transfer registers are to be modified, specify the start address of the transfer data area (the same
as that declared in R_DTC_Create).
If no registers are to be modified, specify PDL_NO_PTR.
[data3]
The new source start address. The valid range depends on the address mode (short or full).
Specify PDL_NO_PTR if not required.
[data4]
The new destination start address. The valid range depends on the address mode (short or full).
Specify PDL_NO_PTR if not required.
[data5]
The new number of transfers to take place.
For normal or block mode, valid between 0 and 65535 (0 = 65536 transfers).
For repeat mode, valid between 0 and 255 (0 = 256 transfers).
Specify PDL_NO_DATA if not required.
[data6]
The new size of each block transfer. Valid between 1 and 255.
Ignored in normal or repeat mode.
Specify PDL_NO_DATA if not required.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Data Transfer Controller
Reference
R_DTC_Create
R20UT0084EE0112 Rev.1.12 Page 4-87
July. 16, 2014