Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

HAL DMA Generic Driver

UM1725

16 HAL DMA Generic Driver

16.1DMA Firmware driver registers structures

16.1.1DMA_InitTypeDef

Data Fields

uint32_t Channel

uint32_t Direction

uint32_t PeriphInc

uint32_t MemInc

uint32_t PeriphDataAlignment

uint32_t MemDataAlignment

uint32_t Mode

uint32_t Priority

uint32_t FIFOMode

uint32_t FIFOThreshold

uint32_t MemBurst

uint32_t PeriphBurst

Field Documentation

uint32_t DMA_InitTypeDef::Channel

Specifies the channel used for the specified stream. This parameter can be a value of

DMA_Channel_selection

uint32_t DMA_InitTypeDef::Direction

Specifies if the data will be transferred from memory to peripheral, from memory to memory or from peripheral to memory. This parameter can be a value of

DMA_Data_transfer_direction

uint32_t DMA_InitTypeDef::PeriphInc

Specifies whether the Peripheral address register should be incremented or not. This parameter can be a value of DMA_Peripheral_incremented_mode

uint32_t DMA_InitTypeDef::MemInc

Specifies whether the memory address register should be incremented or not. This parameter can be a value of DMA_Memory_incremented_mode

uint32_t DMA_InitTypeDef::PeriphDataAlignment

Specifies the Peripheral data width. This parameter can be a value of

DMA_Peripheral_data_size

uint32_t DMA_InitTypeDef::MemDataAlignment

Specifies the Memory data width. This parameter can be a value of

DMA_Memory_data_size

uint32_t DMA_InitTypeDef::Mode

Specifies the operation mode of the DMAy Streamx. This parameter can be a value of

DMA_mode

Note:The circular buffer mode cannot be used if the memory-to-memory data transfer is configured on the selected Stream

uint32_t DMA_InitTypeDef::Priority

Specifies the software priority for the DMAy Streamx. This parameter can be a value of DMA_Priority_level

236/900

DOCID025834 Rev 2

UM1725

HAL DMA Generic Driver

 

uint32_t DMA_InitTypeDef::FIFOMode

 

Specifies if the FIFO mode or Direct mode will be used for the specified stream. This

 

parameter can be a value of DMA_FIFO_direct_mode

 

Note:The Direct mode (FIFO mode disabled) cannot be used if the memory-to-

 

memory data transfer is configured on the selected stream

 

uint32_t DMA_InitTypeDef::FIFOThreshold

 

Specifies the FIFO threshold level. This parameter can be a value of

 

DMA_FIFO_threshold_level

 

uint32_t DMA_InitTypeDef::MemBurst

 

Specifies the Burst transfer configuration for the memory transfers. It specifies the

 

amount of data to be transferred in a single non interruptible transaction. This

 

parameter can be a value of DMA_Memory_burst

 

Note:The burst mode is possible only if the address Increment mode is enabled.

 

uint32_t DMA_InitTypeDef::PeriphBurst

 

Specifies the Burst transfer configuration for the peripheral transfers. It specifies the

 

amount of data to be transferred in a single non interruptable transaction. This

 

parameter can be a value of DMA_Peripheral_burst

 

Note:The burst mode is possible only if the address Increment mode is enabled.

16.1.2__DMA_HandleTypeDef

Data Fields

DMA_Stream_TypeDef * Instance

DMA_InitTypeDef Init

HAL_LockTypeDef Lock

__IO HAL_DMA_StateTypeDef State

void * Parent

void(* XferCpltCallback

void(* XferHalfCpltCallback

void(* XferM1CpltCallback

void(* XferErrorCallback

__IO uint32_t ErrorCode

Field Documentation

DMA_Stream_TypeDef* __DMA_HandleTypeDef::Instance

Register base address

DMA_InitTypeDef __DMA_HandleTypeDef::Init

DMA communication parameters

HAL_LockTypeDef __DMA_HandleTypeDef::Lock

DMA locking object

__IO HAL_DMA_StateTypeDef __DMA_HandleTypeDef::State

DMA transfer state

void* __DMA_HandleTypeDef::Parent

Parent object state

void(* __DMA_HandleTypeDef::XferCpltCallback)(struct __DMA_HandleTypeDef *hdma)

DMA transfer complete callback

void(* __DMA_HandleTypeDef::XferHalfCpltCallback)(struct __DMA_HandleTypeDef *hdma)

DMA Half transfer complete callback

DOCID025834 Rev 2

237/900

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]