Renesas Single-Chip Microcomputer M38C89T-ADF Manual de usuario Pagina 82

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 138
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 81
Rev.1.00 May 22 2012
REJ09B0566
4-62
3BLibrary Reference
4
4.2.6 37BDMA Controller R_DMAC_Control
3) R_DMAC_Control
Synopsis
Control the DMA controller.
Prototype bool R_DMAC_Control (
uint8_t data1, // Channel number
uint8_t data2, // Control options
uint32_t data3, // Source reload address
uint32_t data4, // Destination reload address
uint32_t data5
// Transfer byte reload count
);
Description
Change the state of a DMA controller channel.
[data1]
Channel selection.
If multiple selections are required, use | to separate each selection.
PDL_DMAC_0
PDL_DMAC_1
PDL_DMAC_2
PDL_DMAC_3
PDL_DMAC_15
or PDL_DMAC_ALL
The channel to be controlled.
[data2]
Control the channel operation.
If multiple selections are required, use | to separate each selection.
Enable / suspend control
PDL_DMAC_ENABLE or
PDL_DMAC_SUSPEND or
Enable / re-enable or suspend DMA transfers on the selected
channel(s).
Software trigger control
PDL_DMAC_START Start a DMA transfer.
Transfer end detection flag control
PDL_DMAC_CLEAR_TEDF
Clear the flag. This flag is cleared automatically if a callback function
is enabled.
The reload registers to be modified.
PDL_DMAC_SOURCE Update the Transfer Source Address reload register (DMRSA).
PDL_DMAC_DESTINATION Update the Transfer Destination Address reload register (DMRDA).
PDL_DMAC_BYTES Update the Byte Count reload register (DMRBC).
[data3]
The source-reload address value. This value is ignored if the reload function is disabled.
[data4]
The destination-reload address value. This value is ignored if the reload function is disabled.
[data5]
The number of bytes-reload value. This value is ignored if the reload function is disabled.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
DMA controller
Reference
R_DMAC_Create
Remarks The Software trigger control is valid only if the Software trigger option has been selected.
Vista de pagina 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 137 138

Comentarios a estos manuales

Sin comentarios