
Rev.1.00 May 22 2012
REJ09B0566
Library Reference
4.2.6 37BDMA Controller R_DMAC_GetStatus
4) R_DMAC_GetStatus
Synopsis
Check the status of the DMA channel.
Prototype bool R_DMAC_GetStatus(
uint8_t data1, // Control options
uint16_t * data2, // Status flags pointer
uint32_t * data3, // Current source address pointer
uint32_t * data4, // Current destination address pointer
uint32_t * data5 // Current transfer byte count
);
Description
Return status flags and current channel registers.
[data1]
The channel number n (where n = 0 to 15).
[data2]
The status flags shall be stored in the following format:
b15 – b14 b13 – b12 b11 – b10 b9 – b8
- Cycle Steal Mode Select - Priority Mode
b7 – b3 b2 b1 b0
- AE NMIF DME
0: No Address error
occurred
1: Address error
occurred
0 : No NMI interrupt.
1 : NMI interrupt
occurred.
0: DMA transfer is
disabled
1: DMA transfer is
enabled
[data3]
Where the current source address shall be stored. Specify PDL_NA if it is not required.
[data4]
Where the current destination address shall be stored. Specify PDL_NA if it is not required.
[data5]
Where the current transfer byte count shall be stored. Specify PDL_NA 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 a Transfer End Interrupt request flag is set to 1, the flag will be cleared to 0 by this function.
Kommentare zu diesen Handbüchern