User`s manual

RX62N Group, RX621 Group 4. Library Reference
4) R_DMAC_GetStatus
Synopsis
Check the status of a DMA channel.
Prototype
bool R_DMAC_GetStatus(
uint8_t data1,
// Channel number
uint8_t * data2,
// Status flags pointer
uint32_t * data3,
// Current source address pointer
uint32_t * data4,
// Current destination address pointer
uint16_t * data5,
// Current transfer count pointer
uint16_t * data6
// Current Repeat or Block size count pointer
);
Description
Return status flags and current channel registers.
[data1]
The channel number n (where n = 0 to 3).
[data2]
The status flags shall be stored in the following format.
Specify PDL_NO_PTR if the flags are not to be read.
b7 b5
b4
b3
b2
b1
b0
-
Interrupt
request
(IR)
Transfer Escape
End interrupt (ESIF)
Transfer End
interrupt (DTIF)
Status
(ACT)
Transfer
enable (DTE)
0: Idle
1: Generated
0: Idle
1: Generated
0: Idle
1: Operating
0: Disabled
1: Enabled
[data3]
Where the current source address shall be stored. Specify PDL_NO_PTR if it is not required.
[data4]
Where the current destination address shall be stored. Specify PDL_NO_PTR if it is not required.
[data5]
Where the current transfer count shall be stored. Specify PDL_NO_PTR if it is not required.
[data6]
Where the current repeat or block size count shall be stored. Specify PDL_NO_PTR if it is not
required.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
DMA controller
Reference
R_DMAC_Create
Remarks
If the Interrupt request flag is set to 1, the flag will be cleared to 0 by this function.
R20UT0084EE0112 Rev.1.12 Page 4-71
July. 16, 2014