| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Classes | Macros | Functions
BlueNRG1_dma.h File Reference

This file contains all the functions prototypes for the DMA firmware library. More...

`#include "BlueNRG1.h"`

Go to the source code of this file.

## Classes

struct | DMA_InitType
| DMA Init structure definition. More...

## Macros

#define | DMA_DIR_PeripheralDST ((uint32_t)0x00000010)
#define | DMA_DIR_PeripheralSRC ((uint32_t)0x00000000)
#define | IS_DMA_DIR(DIR)
#define | DMA_PeripheralInc_Enable ((uint32_t)0x00000040)
#define | DMA_PeripheralInc_Disable ((uint32_t)0x00000000)
#define | IS_DMA_PERIPHERAL_INC_STATE(STATE)
#define | DMA_MemoryInc_Enable ((uint32_t)0x00000080)
#define | DMA_MemoryInc_Disable ((uint32_t)0x00000000)
#define | IS_DMA_MEMORY_INC_STATE(STATE)
#define | DMA_PeripheralDataSize_Byte ((uint32_t)0x00000000)
#define | DMA_PeripheralDataSize_HalfWord ((uint32_t)0x00000100)
#define | DMA_PeripheralDataSize_Word ((uint32_t)0x00000200)
#define | IS_DMA_PERIPHERAL_DATA_SIZE(SIZE)
#define | DMA_MemoryDataSize_Byte ((uint32_t)0x00000000)
#define | DMA_MemoryDataSize_HalfWord ((uint32_t)0x00000400)
#define | DMA_MemoryDataSize_Word ((uint32_t)0x00000800)
#define | IS_DMA_MEMORY_DATA_SIZE(SIZE)
#define | DMA_Mode_Circular ((uint32_t)0x00000020)
#define | DMA_Mode_Normal ((uint32_t)0x00000000)
#define | IS_DMA_MODE(MODE) (((MODE) == DMA_Mode_Circular) || ((MODE) == DMA_Mode_Normal))
#define | DMA_Priority_VeryHigh ((uint32_t)0x00003000)
#define | DMA_Priority_High ((uint32_t)0x00002000)
#define | DMA_Priority_Medium ((uint32_t)0x00001000)
#define | DMA_Priority_Low ((uint32_t)0x00000000)
#define | IS_DMA_PRIORITY(PRIORITY)
#define | DMA_M2M_Enable ((uint32_t)0x00004000)
#define | DMA_M2M_Disable ((uint32_t)0x00000000)
#define | IS_DMA_M2M_STATE(STATE) (((STATE) == DMA_M2M_Enable) || ((STATE) == DMA_M2M_Disable))
#define | DMA_FLAG_TC ((uint32_t)0x00000002)
#define | DMA_FLAG_HT ((uint32_t)0x00000004)
#define | DMA_FLAG_TE ((uint32_t)0x00000008)
#define | IS_DMA_CONFIG_FLAG(FLAG) ((FLAG & 0x0E) != 0)
#define | DMA_FLAG_GL0 ((uint32_t)0x00000001)
#define | DMA_FLAG_TC0 ((uint32_t)0x00000002)
#define | DMA_FLAG_HT0 ((uint32_t)0x00000004)
#define | DMA_FLAG_TE0 ((uint32_t)0x00000008)
#define | DMA_FLAG_GL1 ((uint32_t)0x00000010)
#define | DMA_FLAG_TC1 ((uint32_t)0x00000020)
#define | DMA_FLAG_HT1 ((uint32_t)0x00000040)
#define | DMA_FLAG_TE1 ((uint32_t)0x00000080)
#define | DMA_FLAG_GL2 ((uint32_t)0x00000100)
#define | DMA_FLAG_TC2 ((uint32_t)0x00000200)
#define | DMA_FLAG_HT2 ((uint32_t)0x00000400)
#define | DMA_FLAG_TE2 ((uint32_t)0x00000800)
#define | DMA_FLAG_GL3 ((uint32_t)0x00001000)
#define | DMA_FLAG_TC3 ((uint32_t)0x00002000)
#define | DMA_FLAG_HT3 ((uint32_t)0x00004000)
#define | DMA_FLAG_TE3 ((uint32_t)0x00008000)
#define | DMA_FLAG_GL4 ((uint32_t)0x00010000)
#define | DMA_FLAG_TC4 ((uint32_t)0x00020000)
#define | DMA_FLAG_HT4 ((uint32_t)0x00040000)
#define | DMA_FLAG_TE4 ((uint32_t)0x00080000)
#define | DMA_FLAG_GL5 ((uint32_t)0x00100000)
#define | DMA_FLAG_TC5 ((uint32_t)0x00200000)
#define | DMA_FLAG_HT5 ((uint32_t)0x00400000)
#define | DMA_FLAG_TE5 ((uint32_t)0x00800000)
#define | DMA_FLAG_GL6 ((uint32_t)0x01000000)
#define | DMA_FLAG_TC6 ((uint32_t)0x02000000)
#define | DMA_FLAG_HT6 ((uint32_t)0x04000000)
#define | DMA_FLAG_TE6 ((uint32_t)0x08000000)
#define | DMA_FLAG_GL7 ((uint32_t)0x10000000)
#define | DMA_FLAG_TC7 ((uint32_t)0x20000000)
#define | DMA_FLAG_HT7 ((uint32_t)0x40000000)
#define | DMA_FLAG_TE7 ((uint32_t)0x80000000)
#define | IS_DMA_CH_FLAG(FLAG) ((FLAG) != 0x00)
#define | DMA_ADC_CHANNEL0 ((uint8_t)0x01)
#define | DMA_ADC_CHANNEL1 ((uint8_t)0x02)
#define | DMA_ADC_CHANNEL2 ((uint8_t)0x04)
#define | DMA_ADC_CHANNEL3 ((uint8_t)0x08)
#define | DMA_ADC_CHANNEL4 ((uint8_t)0x10)
#define | DMA_ADC_CHANNEL5 ((uint8_t)0x20)
#define | DMA_ADC_CHANNEL6 ((uint8_t)0x40)
#define | DMA_ADC_CHANNEL7 ((uint8_t)0x80)
#define | IS_DMA_ADC_CH(SEL)
#define | IS_DMA_BUFFER_SIZE(SIZE) (((SIZE) >= 0x1) && ((SIZE) < 0x10000))

## 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...
FlagStatus | DMA_GetFlagStatus (uint32_t DMA_Flag)
| Checks whether the specified DMAy Channelx flag is set or not. More...
void | DMA_FlagConfig (DMA_CH_Type *DMAy_Channelx, uint32_t DMA_Flag, FunctionalState NewState)
| Enables or disables the specified DMAy Channelx interrupts. More...
void | DMA_ClearFlag (uint32_t DMA_Flag)
| Clears the DMAy Channelx's pending flags. More...

## Detailed Description

This file contains all the functions prototypes for the DMA firmware library.

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 2016 STMicroelectronics

Definition in file BlueNRG1_dma.h.