MG32F10x Standard Peripherals Firmware Library
Functions
DMAC_Private_Functions

Functions

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

Detailed Description

Function Documentation

◆ 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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DMAC_DestinationScatterInitStructpointer to a DMAC_DestinationScatterInitTypeDef structure that contains the configuration information for the destination scatter of DMACx Channely.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DMAC_Channel_InitStructpointer to a DMAC_Channel_InitTypeDef structure that contains the configuration information for the specified DMACx Channely.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DMAC_BlockTransferSizespecifies the number of data units to be transferred on the block transfer. This parameter value must be lower than 512.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DestinationAddressspecifies the destination address of the specified DMACx Channely.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
SourceAddressspecifies the source address of the specified DMACx Channely.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DMAC_SourceGatherInitStructpointer to a DMAC_SourceGatherInitTypeDef structure that contains the configuration information for the source gather of DMACx Channely.
Returns
None

◆ DMAC_Channel_StructInit()

void DMAC_Channel_StructInit ( DMAC_Channel_InitTypeDef DMAC_Channel_InitStruct)

Fills each DMAC_Channel_InitStruct member with its default value.

Parameters
DMAC_Channel_InitStructpointer to a DMAC_Channel_InitTypeDef structure which will be initialized.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
NewStatenew state of the current DMACx Channely transfer suspend. This parameter can be: ENABLE or DISABLE.
Returns
None

◆ DMAC_ChannelCmd()

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

Enables or disables the specified DMACx Channely.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
NewStatenew state of the DMACx Channely. This parameter can be: ENABLE or DISABLE.
Returns
None

◆ DMAC_ClearITPendingBit()

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

Clears the DMACx's interrupt pending bits.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DMAC_ITspecifies 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.
Returns
None.

◆ DMAC_Cmd()

void DMAC_Cmd ( DMAC_TypeDef DMACx,
FunctionalState  NewState 
)

Enables or disables the specified DMACx peripheral.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
NewStatenew state of the DMACx peripheral. This parameter can be: ENABLE or DISABLE.
Returns
None

◆ DMAC_DeInit()

void DMAC_DeInit ( DMAC_TypeDef DMACx)

Deinitializes the DMACx peripheral registers to their default reset values.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
Returns
None

◆ DMAC_GetChannelCmdStatus()

FunctionalState DMAC_GetChannelCmdStatus ( DMAC_TypeDef DMACx,
uint8_t  DMAC_Channel 
)

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

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_ITspecifies 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.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DMAC_ITspecifies 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.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DMAC_ITspecifies 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.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
DMAC_ITspecifies 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.
NewStatenew state of the specified DMAC interrupt. This parameter can be: ENABLE or DISABLE.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
NewStatenew state of LstDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
NewStatenew state of LstSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
NewStatenew state of ReqDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
NewStatenew state of ReqSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
NewStatenew state of SglReqDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.
Returns
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.

Parameters
DMACxPointer to selected DMAC peripheral. This parameter can be one of the following values: DMAC1, DMAC2.
DMAC_Channelspecifies the selected DMAC channel. This parameter can be one of the following values:
  • DMAC_Channel_0
  • DMAC_Channel_1
  • DMAC_Channel_2
NewStatenew state of SglReqSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE.
Returns
None.