| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros | Functions
BlueNRG1_dma.c File Reference

This file provides all the DMA firmware functions. More...

`#include "BlueNRG1_dma.h"`

Go to the source code of this file.

## Macros

#define | CCR_CLEAR_MASK ((uint32_t)0xFFFF800F)
#define | DMA_CHANNEL0_FLAG_MASK ((uint32_t)(DMA_FLAG_GL0 | DMA_FLAG_TC0 | DMA_FLAG_HT0 | DMA_FLAG_TE0))
#define | DMA_CHANNEL1_FLAG_MASK ((uint32_t)(DMA_FLAG_GL1 | DMA_FLAG_TC1 | DMA_FLAG_HT1 | DMA_FLAG_TE1))
#define | DMA_CHANNEL2_FLAG_MASK ((uint32_t)(DMA_FLAG_GL2 | DMA_FLAG_TC2 | DMA_FLAG_HT2 | DMA_FLAG_TE2))
#define | DMA_CHANNEL3_FLAG_MASK ((uint32_t)(DMA_FLAG_GL3 | DMA_FLAG_TC3 | DMA_FLAG_HT3 | DMA_FLAG_TE3))
#define | DMA_CHANNEL4_FLAG_MASK ((uint32_t)(DMA_FLAG_GL4 | DMA_FLAG_TC4 | DMA_FLAG_HT4 | DMA_FLAG_TE4))
#define | DMA_CHANNEL5_FLAG_MASK ((uint32_t)(DMA_FLAG_GL5 | DMA_FLAG_TC5 | DMA_FLAG_HT5 | DMA_FLAG_TE5))
#define | DMA_CHANNEL6_FLAG_MASK ((uint32_t)(DMA_FLAG_GL6 | DMA_FLAG_TC6 | DMA_FLAG_HT6 | DMA_FLAG_TE6))
#define | DMA_CHANNEL7_FLAG_MASK ((uint32_t)(DMA_FLAG_GL7 | DMA_FLAG_TC7 | DMA_FLAG_HT7 | DMA_FLAG_TE7))
#define | IS_DMA_ALL_PERIPH(PERIPH)

## Functions

void | DMA_DeInit (DMA_CH_Type *DMAy_Channelx)
| Deinitializes the DMAy Channelx registers to their default reset values. More...
void | DMA_Init (DMA_CH_Type *DMAy_Channelx, DMA_InitType *DMA_InitStruct)
| Initializes the DMAy Channelx according to the specified parameters in the DMA_InitStruct. More...
void | DMA_StructInit (DMA_InitType *DMA_InitStruct)
| Fills each DMA_InitStruct member with its default value. More...
void | DMA_Cmd (DMA_CH_Type *DMAy_Channelx, FunctionalState NewState)
| Enables or disables the specified DMAy Channelx. More...
void | DMA_SelectAdcChannel (uint8_t DMA_AdcChannel, FunctionalState NewState)
| Enables or disables the specified DMA ADC Channel. More...
void | DMA_SetCurrDataCounter (DMA_CH_Type *DMAy_Channelx, uint16_t DataNumber)
| Sets the number of data units in the current DMAy Channelx transfer. More...
uint16_t | DMA_GetCurrDataCounter (DMA_CH_Type *DMAy_Channelx)
| Returns the number of remaining data units in the current DMAy Channelx transfer. More...
void | DMA_FlagConfig (DMA_CH_Type *DMAy_Channelx, uint32_t DMA_Flag, FunctionalState NewState)
| Enables or disables the specified DMAy Channelx interrupts. More...
FlagStatus | DMA_GetFlagStatus (uint32_t DMA_Flag)
| Checks whether the specified DMAy Channelx flag is set or not. More...
void | DMA_ClearFlag (uint32_t DMA_Flag)
| Clears the DMAy Channelx's pending flags. More...

## Detailed Description

This file provides all the DMA firmware functions.

Author
  VMA Application Team

Version
  V2.0.0

Date
  21-March-2016

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2015 STMicroelectronics

Definition in file BlueNRG1_dma.c.