User`s manual

RX62N Group, RX621 Group 4. Library Reference
4.2.10. External DMA Controller
1) R_EXDMAC_Create
Synopsis
Configure the EXDMA controller.
Prototype
bool R_EXDMAC_Create(
uint8_t data1,
// Channel selection
uint32_t data2,
// Configuration selection
uint16_t data3,
// Configuration selection
uint8_t data4,
// Configuration selection
void * data5,
// Source start address
void * data6,
// Destination start address
uint16_t data7,
// Transfer count
uint16_t data8,
// Repeat or Block size
int32_t data9,
// Address offset
uint32_t data10,
// Source address extended repeat area
uint32_t data11,
// Destination address extended repeat area
void * func,
// Callback function
uint8_t data12
// Interrupt priority level
);
Description (1/3)
Set up an EXDMAC channel.
[data1]
The channel number n (where n = 0 to 1).
[data2]
Configure the operation of channel EXDMACn.
Use "|" to separate each selection.
Transfer mode selection
PDL_EXDMAC_NORMAL or
PDL_EXDMAC_REPEAT or
PDL_EXDMAC_BLOCK or
PDL_EXDMAC_CLUSTER
Normal or
Repeat or
Block or
Cluster mode.
PDL_EXDMAC_SOURCE or
PDL_EXDMAC_DESTINATION
If Repeat, Block or Cluster mode is selected, the source or
destination side can be selected as the Repeat or Block
area. This selection is optional.
Address direction selection
PDL_EXDMAC_SOURCE_ADDRESS_FIXED or
PDL_EXDMAC_SOURCE_ADDRESS_PLUS or
PDL_EXDMAC_SOURCE_ADDRESS_MINUS or
PDL_EXDMAC_SOURCE_ADDRESS_OFFSET
Leave the source address unchanged,
increment it, decrement it or modify it by
the value specified in parameter data9.
Address offset is valid only for n = 0.
PDL_EXDMAC_DESTINATION_ADDRESS_FIXED or
PDL_EXDMAC_DESTINATION_ADDRESS_PLUS or
PDL_EXDMAC_DESTINATION_ADDRESS_MINUS or
PDL_EXDMAC_DESTINATION_ADDRESS_OFFSET
Leave the destination address
unchanged, increment it,
decrement it or modify it by the
value specified in parameter data9.
Address offset is valid only for n = 0.
Address mode selection
PDL_EXDMAC_ADDRESS_MODE_READ or
PDL_EXDMAC_ADDRESS_MODE_WRITE or
PDL_EXDMAC_ADDRESS_MODE_DUAL
Select single address mode with the source
or destination for address output,
or dual address mode.
Transfer data size
PDL_EXDMAC_SIZE_8 or
PDL_EXDMAC_SIZE_16 or
PDL_EXDMAC_SIZE_32
Select 8, 16 or 32 bits for the data to be transferred.
R20UT0084EE0112 Rev.1.12 Page 4-73
July. 16, 2014