G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference

Functions

__STATIC_INLINE void DDL_DMA_EnableStream (DMA_TypeDef *DMAx, uint32_t Stream)
 Enable DMA stream.
__STATIC_INLINE void DDL_DMA_DisableStream (DMA_TypeDef *DMAx, uint32_t Stream)
 Disable DMA stream.
__STATIC_INLINE uint32_t DDL_DMA_IsEnabledStream (DMA_TypeDef *DMAx, uint32_t Stream)
 Check if DMA stream is enabled or disabled.
__STATIC_INLINE void DDL_DMA_ConfigTransfer (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Configuration)
 Configure all parameters linked to DMA transfer.
__STATIC_INLINE void DDL_DMA_SetDataTransferDirection (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Direction)
 Set Data transfer direction (read from peripheral or from memory).
__STATIC_INLINE uint32_t DDL_DMA_GetDataTransferDirection (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Data transfer direction (read from peripheral or from memory).
__STATIC_INLINE void DDL_DMA_SetMode (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Mode)
 Set DMA mode normal, circular or peripheral flow control.
__STATIC_INLINE uint32_t DDL_DMA_GetMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Get DMA mode normal, circular or peripheral flow control.
__STATIC_INLINE void DDL_DMA_SetPeriphIncMode (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t IncrementMode)
 Set Peripheral increment mode.
__STATIC_INLINE uint32_t DDL_DMA_GetPeriphIncMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Peripheral increment mode.
__STATIC_INLINE void DDL_DMA_SetMemoryIncMode (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t IncrementMode)
 Set Memory increment mode.
__STATIC_INLINE uint32_t DDL_DMA_GetMemoryIncMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Memory increment mode.
__STATIC_INLINE void DDL_DMA_SetPeriphSize (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Size)
 Set Peripheral size.
__STATIC_INLINE uint32_t DDL_DMA_GetPeriphSize (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Peripheral size.
__STATIC_INLINE void DDL_DMA_SetMemorySize (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Size)
 Set Memory size.
__STATIC_INLINE uint32_t DDL_DMA_GetMemorySize (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Memory size.
__STATIC_INLINE void DDL_DMA_SetIncOffsetSize (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t OffsetSize)
 Set Peripheral increment offset size.
__STATIC_INLINE uint32_t DDL_DMA_GetIncOffsetSize (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Peripheral increment offset size.
__STATIC_INLINE void DDL_DMA_SetStreamPriorityLevel (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Priority)
 Set Stream priority level.
__STATIC_INLINE uint32_t DDL_DMA_GetStreamPriorityLevel (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Stream priority level.
__STATIC_INLINE void DDL_DMA_SetDataLength (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t NbData)
 Set Number of data to transfer.
__STATIC_INLINE uint32_t DDL_DMA_GetDataLength (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Number of data to transfer.
__STATIC_INLINE void DDL_DMA_SetChannelSelection (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Channel)
 Select Channel number associated to the Stream.
__STATIC_INLINE uint32_t DDL_DMA_GetChannelSelection (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Channel number associated to the Stream.
__STATIC_INLINE void DDL_DMA_SetMemoryBurstxfer (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Mburst)
 Set Memory burst transfer configuration.
__STATIC_INLINE uint32_t DDL_DMA_GetMemoryBurstxfer (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Memory burst transfer configuration.
__STATIC_INLINE void DDL_DMA_SetPeriphBurstxfer (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Pburst)
 Set Peripheral burst transfer configuration.
__STATIC_INLINE uint32_t DDL_DMA_GetPeriphBurstxfer (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Peripheral burst transfer configuration.
__STATIC_INLINE void DDL_DMA_SetCurrentTargetMem (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t CurrentMemory)
 Set Current target (only in double buffer mode) to Memory 1 or Memory 0.
__STATIC_INLINE uint32_t DDL_DMA_GetCurrentTargetMem (DMA_TypeDef *DMAx, uint32_t Stream)
 Set Current target (only in double buffer mode) to Memory 1 or Memory 0.
__STATIC_INLINE void DDL_DMA_EnableDoubleBufferMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Enable the double buffer mode.
__STATIC_INLINE void DDL_DMA_DisableDoubleBufferMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Disable the double buffer mode.
__STATIC_INLINE uint32_t DDL_DMA_GetFIFOStatus (DMA_TypeDef *DMAx, uint32_t Stream)
 Get FIFO status.
__STATIC_INLINE void DDL_DMA_DisableFifoMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Disable Fifo mode.
__STATIC_INLINE void DDL_DMA_EnableFifoMode (DMA_TypeDef *DMAx, uint32_t Stream)
 Enable Fifo mode.
__STATIC_INLINE void DDL_DMA_SetFIFOThreshold (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Threshold)
 Select FIFO threshold.
__STATIC_INLINE uint32_t DDL_DMA_GetFIFOThreshold (DMA_TypeDef *DMAx, uint32_t Stream)
 Get FIFO threshold.
__STATIC_INLINE void DDL_DMA_ConfigFifo (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t FifoMode, uint32_t FifoThreshold)
 Configure the FIFO .
__STATIC_INLINE void DDL_DMA_ConfigAddresses (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t SrcAddress, uint32_t DstAddress, uint32_t Direction)
 Configure the Source and Destination addresses.
__STATIC_INLINE void DDL_DMA_SetMemoryAddress (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress)
 Set the Memory address.
__STATIC_INLINE void DDL_DMA_SetPeriphAddress (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t PeriphAddress)
 Set the Peripheral address.
__STATIC_INLINE uint32_t DDL_DMA_GetMemoryAddress (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Memory address.
__STATIC_INLINE uint32_t DDL_DMA_GetPeriphAddress (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Peripheral address.
__STATIC_INLINE void DDL_DMA_SetM2MSrcAddress (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress)
 Set the Memory to Memory Source address.
__STATIC_INLINE void DDL_DMA_SetM2MDstAddress (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress)
 Set the Memory to Memory Destination address.
__STATIC_INLINE uint32_t DDL_DMA_GetM2MSrcAddress (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Memory to Memory Source address.
__STATIC_INLINE uint32_t DDL_DMA_GetM2MDstAddress (DMA_TypeDef *DMAx, uint32_t Stream)
 Get the Memory to Memory Destination address.
__STATIC_INLINE void DDL_DMA_SetMemory1Address (DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Address)
 Set Memory 1 address (used in case of Double buffer mode).
__STATIC_INLINE uint32_t DDL_DMA_GetMemory1Address (DMA_TypeDef *DMAx, uint32_t Stream)
 Get Memory 1 address (used in case of Double buffer mode).

Detailed Description

Function Documentation

◆ DDL_DMA_ConfigAddresses()

__STATIC_INLINE void DDL_DMA_ConfigAddresses ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t SrcAddress,
uint32_t DstAddress,
uint32_t Direction )

Configure the Source and Destination addresses.

Note
This API must not be called when the DMA stream is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
SrcAddressBetween 0 to 0xFFFFFFFF
DstAddressBetween 0 to 0xFFFFFFFF
DirectionThis parameter can be one of the following values:
Return values
None

Definition at line 1354 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_ConfigFifo()

__STATIC_INLINE void DDL_DMA_ConfigFifo ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t FifoMode,
uint32_t FifoThreshold )

Configure the FIFO .

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
FifoModeThis parameter can be one of the following values:
FifoThresholdThis parameter can be one of the following values:
Return values
None

Definition at line 1328 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_ConfigTransfer()

__STATIC_INLINE void DDL_DMA_ConfigTransfer ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Configuration )

◆ DDL_DMA_DisableDoubleBufferMode()

__STATIC_INLINE void DDL_DMA_DisableDoubleBufferMode ( DMA_TypeDef * DMAx,
uint32_t Stream )

Disable the double buffer mode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
None

Definition at line 1191 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_DisableFifoMode()

__STATIC_INLINE void DDL_DMA_DisableFifoMode ( DMA_TypeDef * DMAx,
uint32_t Stream )

Disable Fifo mode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
None

Definition at line 1235 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_DisableStream()

__STATIC_INLINE void DDL_DMA_DisableStream ( DMA_TypeDef * DMAx,
uint32_t Stream )

Disable DMA stream.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
None

Definition at line 514 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_EnableDoubleBufferMode()

__STATIC_INLINE void DDL_DMA_EnableDoubleBufferMode ( DMA_TypeDef * DMAx,
uint32_t Stream )

Enable the double buffer mode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
None

Definition at line 1172 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_EnableFifoMode()

__STATIC_INLINE void DDL_DMA_EnableFifoMode ( DMA_TypeDef * DMAx,
uint32_t Stream )

Enable Fifo mode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
None

Definition at line 1254 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_EnableStream()

__STATIC_INLINE void DDL_DMA_EnableStream ( DMA_TypeDef * DMAx,
uint32_t Stream )

Enable DMA stream.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
None

Definition at line 495 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetChannelSelection()

__STATIC_INLINE uint32_t DDL_DMA_GetChannelSelection ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get the Channel number associated to the Stream.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 1016 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetCurrentTargetMem()

__STATIC_INLINE uint32_t DDL_DMA_GetCurrentTargetMem ( DMA_TypeDef * DMAx,
uint32_t Stream )

Set Current target (only in double buffer mode) to Memory 1 or Memory 0.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 1153 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetDataLength()

__STATIC_INLINE uint32_t DDL_DMA_GetDataLength ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Number of data to transfer.

Note
Once the stream is enabled, the return value indicate the remaining bytes to be transmitted.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Between0 to 0xFFFFFFFF

Definition at line 961 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetDataTransferDirection()

__STATIC_INLINE uint32_t DDL_DMA_GetDataTransferDirection ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Data transfer direction (read from peripheral or from memory).

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 607 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetFIFOStatus()

__STATIC_INLINE uint32_t DDL_DMA_GetFIFOStatus ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get FIFO status.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 1216 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetFIFOThreshold()

__STATIC_INLINE uint32_t DDL_DMA_GetFIFOThreshold ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get FIFO threshold.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 1301 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetIncOffsetSize()

__STATIC_INLINE uint32_t DDL_DMA_GetIncOffsetSize ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Peripheral increment offset size.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 871 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetM2MDstAddress()

__STATIC_INLINE uint32_t DDL_DMA_GetM2MDstAddress ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get the Memory to Memory Destination address.

Note
Interface used for direction DDL_DMA_DIRECTION_MEMORY_TO_MEMORY only.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Between0 to 0xFFFFFFFF

Definition at line 1533 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetM2MSrcAddress()

__STATIC_INLINE uint32_t DDL_DMA_GetM2MSrcAddress ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get the Memory to Memory Source address.

Note
Interface used for direction DDL_DMA_DIRECTION_MEMORY_TO_MEMORY only.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Between0 to 0xFFFFFFFF

Definition at line 1513 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetMemory1Address()

__STATIC_INLINE uint32_t DDL_DMA_GetMemory1Address ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Memory 1 address (used in case of Double buffer mode).

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Between0 to 0xFFFFFFFF

Definition at line 1572 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetMemoryAddress()

__STATIC_INLINE uint32_t DDL_DMA_GetMemoryAddress ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get the Memory address.

Note
Interface used for direction DDL_DMA_DIRECTION_PERIPH_TO_MEMORY or DDL_DMA_DIRECTION_MEMORY_TO_PERIPH only.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Between0 to 0xFFFFFFFF

Definition at line 1429 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetMemoryBurstxfer()

__STATIC_INLINE uint32_t DDL_DMA_GetMemoryBurstxfer ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Memory burst transfer configuration.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 1063 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetMemoryIncMode()

__STATIC_INLINE uint32_t DDL_DMA_GetMemoryIncMode ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Memory increment mode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 738 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetMemorySize()

__STATIC_INLINE uint32_t DDL_DMA_GetMemorySize ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Memory size.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 828 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetMode()

__STATIC_INLINE uint32_t DDL_DMA_GetMode ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get DMA mode normal, circular or peripheral flow control.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 652 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetPeriphAddress()

__STATIC_INLINE uint32_t DDL_DMA_GetPeriphAddress ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get the Peripheral address.

Note
Interface used for direction DDL_DMA_DIRECTION_PERIPH_TO_MEMORY or DDL_DMA_DIRECTION_MEMORY_TO_PERIPH only.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Between0 to 0xFFFFFFFF

Definition at line 1449 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetPeriphBurstxfer()

__STATIC_INLINE uint32_t DDL_DMA_GetPeriphBurstxfer ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Peripheral burst transfer configuration.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 1110 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetPeriphIncMode()

__STATIC_INLINE uint32_t DDL_DMA_GetPeriphIncMode ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Peripheral increment mode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 695 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetPeriphSize()

__STATIC_INLINE uint32_t DDL_DMA_GetPeriphSize ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Peripheral size.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 783 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_GetStreamPriorityLevel()

__STATIC_INLINE uint32_t DDL_DMA_GetStreamPriorityLevel ( DMA_TypeDef * DMAx,
uint32_t Stream )

Get Stream priority level.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 918 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_IsEnabledStream()

__STATIC_INLINE uint32_t DDL_DMA_IsEnabledStream ( DMA_TypeDef * DMAx,
uint32_t Stream )

Check if DMA stream is enabled or disabled.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
Return values
Stateof bit (1 or 0).

Definition at line 533 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetChannelSelection()

__STATIC_INLINE void DDL_DMA_SetChannelSelection ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Channel )

Select Channel number associated to the Stream.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
ChannelThis parameter can be one of the following values:
Return values
None

Definition at line 989 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetCurrentTargetMem()

__STATIC_INLINE void DDL_DMA_SetCurrentTargetMem ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t CurrentMemory )

Set Current target (only in double buffer mode) to Memory 1 or Memory 0.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
CurrentMemoryThis parameter can be one of the following values:
Return values
None

Definition at line 1132 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetDataLength()

__STATIC_INLINE void DDL_DMA_SetDataLength ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t NbData )

Set Number of data to transfer.

Note
This action has no effect if stream is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
NbDataBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 940 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetDataTransferDirection()

__STATIC_INLINE void DDL_DMA_SetDataTransferDirection ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Direction )

Set Data transfer direction (read from peripheral or from memory).

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
DirectionThis parameter can be one of the following values:
Return values
None

Definition at line 585 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetFIFOThreshold()

__STATIC_INLINE void DDL_DMA_SetFIFOThreshold ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Threshold )

Select FIFO threshold.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
ThresholdThis parameter can be one of the following values:
Return values
None

Definition at line 1278 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetIncOffsetSize()

__STATIC_INLINE void DDL_DMA_SetIncOffsetSize ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t OffsetSize )

Set Peripheral increment offset size.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
OffsetSizeThis parameter can be one of the following values:
Return values
None

Definition at line 850 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetM2MDstAddress()

__STATIC_INLINE void DDL_DMA_SetM2MDstAddress ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t MemoryAddress )

Set the Memory to Memory Destination address.

Note
Interface used for direction DDL_DMA_DIRECTION_MEMORY_TO_MEMORY only.
This API must not be called when the DMA channel is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
MemoryAddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1493 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetM2MSrcAddress()

__STATIC_INLINE void DDL_DMA_SetM2MSrcAddress ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t MemoryAddress )

Set the Memory to Memory Source address.

Note
Interface used for direction DDL_DMA_DIRECTION_MEMORY_TO_MEMORY only.
This API must not be called when the DMA channel is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
MemoryAddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1471 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetMemory1Address()

__STATIC_INLINE void DDL_DMA_SetMemory1Address ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Address )

Set Memory 1 address (used in case of Double buffer mode).

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
AddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1553 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetMemoryAddress()

__STATIC_INLINE void DDL_DMA_SetMemoryAddress ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t MemoryAddress )

Set the Memory address.

Note
Interface used for direction DDL_DMA_DIRECTION_PERIPH_TO_MEMORY or DDL_DMA_DIRECTION_MEMORY_TO_PERIPH only.
This API must not be called when the DMA channel is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
MemoryAddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1387 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetMemoryBurstxfer()

__STATIC_INLINE void DDL_DMA_SetMemoryBurstxfer ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Mburst )

Set Memory burst transfer configuration.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
MburstThis parameter can be one of the following values:
Return values
None

Definition at line 1040 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetMemoryIncMode()

__STATIC_INLINE void DDL_DMA_SetMemoryIncMode ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t IncrementMode )

Set Memory increment mode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
IncrementModeThis parameter can be one of the following values:
Return values
None

Definition at line 717 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetMemorySize()

__STATIC_INLINE void DDL_DMA_SetMemorySize ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Size )

Set Memory size.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
SizeThis parameter can be one of the following values:
Return values
None

Definition at line 806 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetMode()

__STATIC_INLINE void DDL_DMA_SetMode ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Mode )

Set DMA mode normal, circular or peripheral flow control.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
ModeThis parameter can be one of the following values:
Return values
None

Definition at line 630 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetPeriphAddress()

__STATIC_INLINE void DDL_DMA_SetPeriphAddress ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t PeriphAddress )

Set the Peripheral address.

Note
Interface used for direction DDL_DMA_DIRECTION_PERIPH_TO_MEMORY or DDL_DMA_DIRECTION_MEMORY_TO_PERIPH only.
This API must not be called when the DMA channel is enabled.
Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
PeriphAddressBetween 0 to 0xFFFFFFFF
Return values
None

Definition at line 1409 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetPeriphBurstxfer()

__STATIC_INLINE void DDL_DMA_SetPeriphBurstxfer ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Pburst )

Set Peripheral burst transfer configuration.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
PburstThis parameter can be one of the following values:
Return values
None

Definition at line 1087 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetPeriphIncMode()

__STATIC_INLINE void DDL_DMA_SetPeriphIncMode ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t IncrementMode )

Set Peripheral increment mode.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
IncrementModeThis parameter can be one of the following values:
Return values
None

Definition at line 674 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetPeriphSize()

__STATIC_INLINE void DDL_DMA_SetPeriphSize ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Size )

Set Peripheral size.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
SizeThis parameter can be one of the following values:
Return values
None

Definition at line 761 of file g32r4xx_ddl_dma.h.

◆ DDL_DMA_SetStreamPriorityLevel()

__STATIC_INLINE void DDL_DMA_SetStreamPriorityLevel ( DMA_TypeDef * DMAx,
uint32_t Stream,
uint32_t Priority )

Set Stream priority level.

Parameters
DMAxDMAx Instance
StreamThis parameter can be one of the following values:
PriorityThis parameter can be one of the following values:
Return values
None

Definition at line 895 of file g32r4xx_ddl_dma.h.