WB32F10x Standard Peripherals Firmware Library

模块 | 结构体 | 函数
DMAC
WB32F10x_StdPeriph_Driver

DMAC driver modules 更多...

## 模块
| DMAC_Exported_Constants
| DMAC_Private_Functions

## 结构体
struct | DMAC_SourceGatherInitTypeDef
| DMAC Source Gather Structure definition 更多...
struct | DMAC_DestinationScatterInitTypeDef
| DMAC Destination Scatter Structure definition 更多...
struct | DMAC_Channel_InitTypeDef
| DMAC Channel Init Structure definition 更多...

## 函数
void | DMAC_DeInit (DMAC_TypeDef *DMACx)
| Deinitializes the DMACx peripheral registers to their default reset values. 更多...
void | DMAC_Channel_Init (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, DMAC_Channel_InitTypeDef *DMAC_Channel_InitStruct)
| Initializes the DMACx Channely according to the specified parameters in the DMAC_Channel_InitStruct structure. 更多...
void | DMAC_Channel_StructInit (DMAC_Channel_InitTypeDef *DMAC_Channel_InitStruct)
| Fills each DMAC_Channel_InitStruct member with its default value. 更多...
void | DMAC_Channel_SourceGatherConfig (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, DMAC_SourceGatherInitTypeDef *DMAC_SourceGatherInitStruct)
| Initializes the source gather of DMACx Channely. 更多...
void | DMAC_Channel_DestinationScatterConfig (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, DMAC_DestinationScatterInitTypeDef *DMAC_DestinationScatterInitStruct)
| Initializes the destination scatter of DMACx Channely. 更多...
void | DMAC_Channel_SetSourceAddress (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, uint32_t SourceAddress)
| Sets the source address of the specified DMACx Channely. 更多...
void | DMAC_Channel_SetDestinationAddress (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, uint32_t DestinationAddress)
| Sets the destination address of the specified DMACx Channely. 更多...
void | DMAC_Channel_SetBlockTransferSize (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, uint16_t DMAC_BlockTransferSize)
| Sets the number of data units to be transferred on the block transfer. 更多...
uint16_t | DMAC_Channel_GetBlockTransferSize (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Returns the number of remaining data units in the current DMACx Channely block transfer. 更多...
void | DMAC_Channel_SuspendCmd (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, FunctionalState NewState)
| Forces or releases the current DMACx Channely transfer suspend. 更多...
FlagStatus | DMAC_Channel_IsFIFOEmpty (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Checks whether the DMACx Channely FIFO is empty or not. 更多...
void | DMAC_Cmd (DMAC_TypeDef *DMACx, FunctionalState NewState)
| Enables or disables the specified DMACx peripheral. 更多...
FunctionalState | DMAC_GetCmdStatus (DMAC_TypeDef *DMACx)
| Returns the status of EN bit for the specified DMACx. 更多...
void | DMAC_ChannelCmd (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, FunctionalState NewState)
| Enables or disables the specified DMACx Channely. 更多...
FunctionalState | DMAC_GetChannelCmdStatus (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Returns the status of EN bit for the specified DMACx Channely. 更多...
void | DMAC_ITConfig (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, uint16_t DMAC_IT, FunctionalState NewState)
| Enables or disables the specified DMACx Channely interrupts. 更多...
ITStatus | DMAC_GetRawITStatus (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, uint16_t DMAC_IT)
| Checks whether the specified DMACx Channely raw interrupt status. 更多...
ITStatus | DMAC_GetITStatus (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, uint16_t DMAC_IT)
| Checks whether the specified DMACx Channely interrupt has occurred or not. 更多...
ITStatus | DMAC_GetCombinedITStatus (DMAC_TypeDef *DMACx, uint16_t DMAC_IT)
| Checks whether the specified DMACx interrupt has occurred or not. 更多...
void | DMAC_ClearITPendingBit (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, uint16_t DMAC_IT)
| Clears the DMACx's interrupt pending bits. 更多...
void | DMAC_SWHS_SetReqSrcSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, SignalState NewState)
| Controls the state of ReqSrc signal for the corresponding channels. 更多...
void | DMAC_SWHS_SetReqDstSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, SignalState NewState)
| Controls the state of ReqDst signal for the corresponding channels. 更多...
void | DMAC_SWHS_SetSglReqSrcSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, SignalState NewState)
| Controls the state of SglReqSrc signal for the corresponding channels. 更多...
void | DMAC_SWHS_SetSglReqDstSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, SignalState NewState)
| Controls the state of SglReqDst signal for the corresponding channels. 更多...
void | DMAC_SWHS_SetLstSrcSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, SignalState NewState)
| Controls the state of LstSrc signal for the corresponding channels. 更多...
void | DMAC_SWHS_SetLstDstSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel, SignalState NewState)
| Controls the state of LstDst signal for the corresponding channels. 更多...
SignalState | DMAC_SWHS_GetReqSrcSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Returns the state of ReqSrc signal for the corresponding channel. 更多...
SignalState | DMAC_SWHS_GetReqDstSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Returns the state of ReqDst signal for the corresponding channel. 更多...
SignalState | DMAC_SWHS_GetSglReqSrcSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Returns the state of SglReqSrc signal for the corresponding channel. 更多...
SignalState | DMAC_SWHS_GetSglReqDstSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Returns the state of SglReqDst signal for the corresponding channel. 更多...
SignalState | DMAC_SWHS_GetLstSrcSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Returns the state of LstSrc signal for the corresponding channel. 更多...
SignalState | DMAC_SWHS_GetLstDstSignalState (DMAC_TypeDef *DMACx, uint8_t DMAC_Channel)
| Returns the state of LstDst signal for the corresponding channel. 更多...

## 详细描述

DMAC driver modules

## 函数说明

## ◆ DMAC_Channel_DestinationScatterConfig()

void DMAC_Channel_DestinationScatterConfig | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | DMAC_DestinationScatterInitTypeDef * | DMAC_DestinationScatterInitStruct
| ) |  |

Initializes the destination scatter of DMACx Channely.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DMAC_DestinationScatterInitStruct | pointer to a DMAC_DestinationScatterInitTypeDef structure that contains the configuration information for the destination scatter of DMACx Channely.

返回
  None

## ◆ DMAC_Channel_GetBlockTransferSize()

uint16_t DMAC_Channel_GetBlockTransferSize | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Returns the number of remaining data units in the current DMACx Channely block transfer.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  The number of remaining data units in the current DMACx Channely block transfer.

## ◆ DMAC_Channel_Init()

void DMAC_Channel_Init | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | DMAC_Channel_InitTypeDef * | DMAC_Channel_InitStruct
| ) |  |

Initializes the DMACx Channely according to the specified parameters in the DMAC_Channel_InitStruct structure.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DMAC_Channel_InitStruct | pointer to a DMAC_Channel_InitTypeDef structure that contains the configuration information for the specified DMACx Channely.

返回
  None

## ◆ DMAC_Channel_IsFIFOEmpty()

FlagStatus DMAC_Channel_IsFIFOEmpty | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Checks whether the DMACx Channely FIFO is empty or not.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  The new state of the DMACx Channely FIFO (SET or RESET).

## ◆ DMAC_Channel_SetBlockTransferSize()

void DMAC_Channel_SetBlockTransferSize | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | uint16_t | DMAC_BlockTransferSize
| ) |  |

Sets the number of data units to be transferred on the block transfer.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DMAC_BlockTransferSize | specifies the number of data units to be transferred on the block transfer. This parameter value must be lower than 512.

返回
  None

## ◆ DMAC_Channel_SetDestinationAddress()

void DMAC_Channel_SetDestinationAddress | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | uint32_t | DestinationAddress
| ) |  |

Sets the destination address of the specified DMACx Channely.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DestinationAddress | specifies the destination address of the specified DMACx Channely.

返回
  None

## ◆ DMAC_Channel_SetSourceAddress()

void DMAC_Channel_SetSourceAddress | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | uint32_t | SourceAddress
| ) |  |

Sets the source address of the specified DMACx Channely.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  SourceAddress | specifies the source address of the specified DMACx Channely.

返回
  None

## ◆ DMAC_Channel_SourceGatherConfig()

void DMAC_Channel_SourceGatherConfig | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | DMAC_SourceGatherInitTypeDef * | DMAC_SourceGatherInitStruct
| ) |  |

Initializes the source gather of DMACx Channely.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DMAC_SourceGatherInitStruct | pointer to a DMAC_SourceGatherInitTypeDef structure that contains the configuration information for the source gather of DMACx Channely.

返回
  None

## ◆ DMAC_Channel_StructInit()

void DMAC_Channel_StructInit | ( | DMAC_Channel_InitTypeDef * | DMAC_Channel_InitStruct | ) |

Fills each DMAC_Channel_InitStruct member with its default value.

参数

  DMAC_Channel_InitStruct | pointer to a DMAC_Channel_InitTypeDef structure which will be initialized.

返回
  None

## ◆ DMAC_Channel_SuspendCmd()

void DMAC_Channel_SuspendCmd | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | FunctionalState | NewState
| ) |  |

Forces or releases the current DMACx Channely transfer suspend.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  NewState | new state of the current DMACx Channely transfer suspend. This parameter can be: ENABLE or DISABLE.

返回
  None

## ◆ DMAC_ChannelCmd()

void DMAC_ChannelCmd | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | FunctionalState | NewState
| ) |  |

Enables or disables the specified DMACx Channely.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  NewState | new state of the DMACx Channely. This parameter can be: ENABLE or DISABLE.

返回
  None

## ◆ DMAC_ClearITPendingBit()

void DMAC_ClearITPendingBit | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | uint16_t | DMAC_IT
| ) |  |

Clears the DMACx's interrupt pending bits.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DMAC_IT | specifies the interrupt pending bit to clear. This parameter can be one of the following values: DMAC_IT_TFR: Transfer complete interrupt. DMAC_IT_BLOCK: Block complete interrupt. DMAC_IT_SRCTRAN: Source transaction complete interrupt. DMAC_IT_DSTTRAN: Destination transaction complete interrupt. DMAC_IT_ERR: Error interrupt.

返回
  None.

## ◆ DMAC_Cmd()

void DMAC_Cmd | ( | DMAC_TypeDef * | DMACx,
|  | FunctionalState | NewState
| ) |  |

Enables or disables the specified DMACx peripheral.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  NewState | new state of the DMACx peripheral. This parameter can be: ENABLE or DISABLE.

返回
  None

## ◆ DMAC_DeInit()

void DMAC_DeInit | ( | DMAC_TypeDef * | DMACx | ) |

Deinitializes the DMACx peripheral registers to their default reset values.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.

返回
  None

## ◆ DMAC_GetChannelCmdStatus()

FunctionalState DMAC_GetChannelCmdStatus | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Returns the status of EN bit for the specified DMACx Channely.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  Current state of the DMACx Channely (ENABLE or DISABLE).

## ◆ DMAC_GetCmdStatus()

FunctionalState DMAC_GetCmdStatus | ( | DMAC_TypeDef * | DMACx | ) |

Returns the status of EN bit for the specified DMACx.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.

返回
  Current state of the DMACx (ENABLE or DISABLE).

## ◆ DMAC_GetCombinedITStatus()

ITStatus DMAC_GetCombinedITStatus | ( | DMAC_TypeDef * | DMACx,
|  | uint16_t | DMAC_IT
| ) |  |

Checks whether the specified DMACx interrupt has occurred or not.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_IT | specifies the DMAC interrupt source to check. This parameter can be one of the following values: DMAC_IT_TFR: Transfer complete interrupt. DMAC_IT_BLOCK: Block complete interrupt. DMAC_IT_SRCTRAN: Source transaction complete interrupt. DMAC_IT_DSTTRAN: Destination transaction complete interrupt. DMAC_IT_ERR: Error interrupt.

返回
  The new state of DMAC_IT (SET or RESET).

## ◆ DMAC_GetITStatus()

ITStatus DMAC_GetITStatus | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | uint16_t | DMAC_IT
| ) |  |

Checks whether the specified DMACx Channely interrupt has occurred or not.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DMAC_IT | specifies the DMAC interrupt source to check. This parameter can be one of the following values: DMAC_IT_TFR: Transfer complete interrupt. DMAC_IT_BLOCK: Block complete interrupt. DMAC_IT_SRCTRAN: Source transaction complete interrupt. DMAC_IT_DSTTRAN: Destination transaction complete interrupt. DMAC_IT_ERR: Error interrupt.

返回
  The new state of DMAC_IT (SET or RESET).

## ◆ DMAC_GetRawITStatus()

ITStatus DMAC_GetRawITStatus | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | uint16_t | DMAC_IT
| ) |  |

Checks whether the specified DMACx Channely raw interrupt status.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DMAC_IT | specifies the DMAC interrupt source to check. This parameter can be one of the following values: DMAC_IT_TFR: Transfer complete interrupt. DMAC_IT_BLOCK: Block complete interrupt. DMAC_IT_SRCTRAN: Source transaction complete interrupt. DMAC_IT_DSTTRAN: Destination transaction complete interrupt. DMAC_IT_ERR: Error interrupt.

返回
  The new state of raw DMAC_IT (SET or RESET).

## ◆ DMAC_ITConfig()

void DMAC_ITConfig | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | uint16_t | DMAC_IT,
|  | FunctionalState | NewState
| ) |  |

Enables or disables the specified DMACx Channely interrupts.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  DMAC_IT | specifies the DMAC interrupt source to be enabled or disabled. This parameter can be one of the following values: DMAC_IT_TFR: Transfer complete interrupt. DMAC_IT_BLOCK: Block complete interrupt. DMAC_IT_SRCTRAN: Source transaction complete interrupt. DMAC_IT_DSTTRAN: Destination transaction complete interrupt. DMAC_IT_ERR: Error interrupt.
  NewState | new state of the specified DMAC interrupt. This parameter can be: ENABLE or DISABLE.

返回
  None.

## ◆ DMAC_SWHS_GetLstDstSignalState()

SignalState DMAC_SWHS_GetLstDstSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Returns the state of LstDst signal for the corresponding channel.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  Current state of LstDst signal for the corresponding channel (ACTIVE or INACTIVE).

## ◆ DMAC_SWHS_GetLstSrcSignalState()

SignalState DMAC_SWHS_GetLstSrcSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Returns the state of LstSrc signal for the corresponding channel.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  Current state of LstSrc signal for the corresponding channel (ACTIVE or INACTIVE).

## ◆ DMAC_SWHS_GetReqDstSignalState()

SignalState DMAC_SWHS_GetReqDstSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Returns the state of ReqDst signal for the corresponding channel.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  Current state of ReqDst signal for the corresponding channel (ACTIVE or INACTIVE).

## ◆ DMAC_SWHS_GetReqSrcSignalState()

SignalState DMAC_SWHS_GetReqSrcSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Returns the state of ReqSrc signal for the corresponding channel.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  Current state of ReqSrc signal for the corresponding channel (ACTIVE or INACTIVE).

## ◆ DMAC_SWHS_GetSglReqDstSignalState()

SignalState DMAC_SWHS_GetSglReqDstSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Returns the state of SglReqDst signal for the corresponding channel.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  Current state of SglReqDst signal for the corresponding channel (ACTIVE or INACTIVE).

## ◆ DMAC_SWHS_GetSglReqSrcSignalState()

SignalState DMAC_SWHS_GetSglReqSrcSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel
| ) |  |

Returns the state of SglReqSrc signal for the corresponding channel.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2

返回
  Current state of SglReqSrc signal for the corresponding channel (ACTIVE or INACTIVE).

## ◆ DMAC_SWHS_SetLstDstSignalState()

void DMAC_SWHS_SetLstDstSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | SignalState | NewState
| ) |  |

Controls the state of LstDst signal for the corresponding channels.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  NewState | new state of LstDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.

返回
  None.

## ◆ DMAC_SWHS_SetLstSrcSignalState()

void DMAC_SWHS_SetLstSrcSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | SignalState | NewState
| ) |  |

Controls the state of LstSrc signal for the corresponding channels.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  NewState | new state of LstSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.

返回
  None.

## ◆ DMAC_SWHS_SetReqDstSignalState()

void DMAC_SWHS_SetReqDstSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | SignalState | NewState
| ) |  |

Controls the state of ReqDst signal for the corresponding channels.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  NewState | new state of ReqDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.

返回
  None.

## ◆ DMAC_SWHS_SetReqSrcSignalState()

void DMAC_SWHS_SetReqSrcSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | SignalState | NewState
| ) |  |

Controls the state of ReqSrc signal for the corresponding channels.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  NewState | new state of ReqSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.

返回
  None.

## ◆ DMAC_SWHS_SetSglReqDstSignalState()

void DMAC_SWHS_SetSglReqDstSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | SignalState | NewState
| ) |  |

Controls the state of SglReqDst signal for the corresponding channels.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  NewState | new state of SglReqDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.

返回
  None.

## ◆ DMAC_SWHS_SetSglReqSrcSignalState()

void DMAC_SWHS_SetSglReqSrcSignalState | ( | DMAC_TypeDef * | DMACx,
|  | uint8_t | DMAC_Channel,
|  | SignalState | NewState
| ) |  |

Controls the state of SglReqSrc signal for the corresponding channels.

参数

  DMACx | Pointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
  DMAC_Channel | specifies the selected DMAC channel. This parameter can be one of the following values: DMAC_Channel_0 DMAC_Channel_1 DMAC_Channel_2
  NewState | new state of SglReqSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.

返回
  None.