User`s manual
RX62N Group, RX621 Group 4. Library Reference
4) R_EXDMAC_GetStatus
Synopsis
Check the status of an EXDMAC channel.
Prototype
bool R_EXDMAC_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 1).
[data2]
The status flags shall be stored in the following format.
Specify PDL_NO_PTR if the flags are not to be read.
b7
b6
b5
b4
0
Peripheral transfer request (PREQ)
EDREQn transfer request (EREQ)
Interrupt
request
(IR)
0: No request
1: Requested
0: No request
1: Requested
b3
b2
b1
b0
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, block or cluster size 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
EXDMA controller
Reference
R_EXDMAC_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-79
July. 16, 2014