
Rev.1.00 May 22 2012
REJ09B0566
4
4.2.6 37BDMA Controller R_DMAC_Create
Description (2/3) [data5]
The start address of destination
[data6]
The number of bytes to be transferred.
[data7]
The reload address value of source. This value is ignored if the reload function is disabled.
[data8]
The reload address value of destination. This value is ignored if the reload function is disabled.
[data9]
The reload value for number of bytes. This value is ignored if the reload function is disabled.
[func]
The function to be called when a DMA transfer completes. Specify PDL_NO_FUNC if not required.
[data10]
The interrupt priority level. Select between 0 (interrupt disabled) and F (highest priority).
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
DMA controller
Reference
R_DMAC_Destroy, R_DMAC_Control, R_DMAC_GetStatus
Remarks • If another peripheral will be used to trigger a DMA transfer, call this function before calling the Create
function for the peripheral.
• A callback function is executed by the interrupt processing function. This means that no other interrupt
can be processed until the callback function has completed.
Program example
/* PDL definitions */
#include “r_pdl_dmac.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void func(void)
{
/* Configure DMA channel 2 */
R_DMAC_Create(
2,
PDL_DMAC_SOURCE_ADDRESS_PLUS,
PDL_DMAC_REQUEST_IRQ0,
0,
0x0000AA00,
0x0000BB00,
10,
0,
0,
0,
PDL_NO_FUNC,
0
);
}
Komentáře k této Příručce