RTEMS: Working with DMAC

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Modules | Macros
Working with DMAC
Board Support Packages » ARM » Atmel/Microchip SAM E70, S70, V70 and V71 » Contributed Code

## Modules
| DMAC Definitions
| Dmac_functions

## Macros
#define | XDMA_GET_DATASIZE(size)
#define | XDMA_GET_CC_SAM(s)
#define | XDMA_GET_CC_DAM(d)
#define | XDMA_GET_CC_MEMSET(m)

## Detailed Description

# Usage

- Enable or disable the a DMAC controller with DMAC_Enable() and or DMAC_Disable().
- Enable or disable Dma interrupt using DMAC_EnableIt()or DMAC_DisableIt().
- Get Dma interrupt status by DMAC_GetStatus() and DMAC_GetInterruptMask().
- Enable or disable specified Dma channel with DMAC_EnableChannel() or DMAC_DisableChannel().
- Get Dma channel status by DMAC_GetChannelStatus().
- ControlA and ControlB register is set by DMAC_SetControlA() and DMAC_SetControlB().
- Configure source and/or destination start address with DMAC_SetSourceAddr() and/or DMAC_SetDestinationAddr().
- Set Dma descriptor address using DMAC_SetDescriptorAddr().
- Set source transfer buffer size with DMAC_SetBufferSize().
- Configure source and/or destination Picture-In-Picuture mode with DMAC_SetSourcePip() and/or DMAC_SetDestPip().

For more accurate information, please look at the DMAC section of the Datasheet.

See also
  Dmad_module

Related files :
dmac.c
dmac.h.

## Macro Definition Documentation

## ◆ XDMA_GET_CC_DAM

#define XDMA_GET_CC_DAM | ( |  | d | ) |

Value:
((d==0)? XDMAC_CC_DAM_FIXED_AM : \
((d==1)? XDMAC_CC_DAM_INCREMENTED_AM : \
((d==2)? XDMAC_CC_DAM_UBS_AM : \
XDMAC_CC_DAM_UBS_DS_AM)))

## ◆ XDMA_GET_CC_MEMSET

#define XDMA_GET_CC_MEMSET | ( |  | m | ) |

Value:
((m==0)? XDMAC_CC_MEMSET_NORMAL_MODE : \
XDMAC_CC_MEMSET_HW_MODE)

## ◆ XDMA_GET_CC_SAM

#define XDMA_GET_CC_SAM | ( |  | s | ) |

Value:
((s==0)? XDMAC_CC_SAM_FIXED_AM : \
((s==1)? XDMAC_CC_SAM_INCREMENTED_AM : \
((s==2)? XDMAC_CC_SAM_UBS_AM : \
XDMAC_CC_SAM_UBS_DS_AM)))

## ◆ XDMA_GET_DATASIZE

#define XDMA_GET_DATASIZE | ( |  | size | ) |

Value:
((size==0)? XDMAC_CC_DWIDTH_BYTE : \
((size==1)? XDMAC_CC_DWIDTH_HALFWORD : \
(XDMAC_CC_DWIDTH_WORD)))