|
MG32F157 Standard Peripherals Firmware Library
|
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_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... | |
| 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:
|
| 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_InitStruct | pointer to a DMAC_Channel_InitTypeDef structure that contains the configuration information for the specified DMACx Channely. |
| 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:
|
| 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_BlockTransferSize | specifies the number of data units to be transferred on the block transfer. This parameter value must be lower than 512. |
| 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:
|
| DestinationAddress | specifies the destination address of the specified 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.
| 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:
|
| SourceAddress | specifies the source address of the specified DMACx Channely. |
| 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. |
| 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:
|
| NewState | new state of the current DMACx Channely transfer suspend. This parameter can be: ENABLE or DISABLE. |
| 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 a combination of the following values:
|
| NewState | new state of the DMACx Channely. This parameter can be: ENABLE or DISABLE. |
| 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 a combination of the following values:
|
| DMAC_IT | specifies the interrupt pending bit to clear. This parameter can be one of the following values:
|
| 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. |
| 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. |
| 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:
|
| 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. |
| 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:
|
| 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_IT | specifies the DMAC interrupt source to check. This parameter can be one of the following values:
|
| 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_IT | specifies the DMAC interrupt source to check. This parameter can be one of the following values:
|
| 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 a combination of the following values:
|
| DMAC_IT | specifies the DMAC interrupt source to be enabled or disabled. This parameter can be one of the following values:
|
| NewState | new state of the specified DMAC interrupt. This parameter can be: ENABLE or DISABLE. |
| 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:
|
| 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:
|
| 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:
|
| 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:
|
| 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:
|
| 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:
|
| 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 a combination of the following values:
|
| NewState | new state of LstDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE. |
| 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 a combination of the following values:
|
| NewState | new state of LstSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE. |
| 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 a combination of the following values:
|
| NewState | new state of ReqDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE. |
| 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 a combination of the following values:
|
| NewState | new state of ReqSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE. |
| 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 a combination of the following values:
|
| NewState | new state of SglReqDst signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE. |
| 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 a combination of the following values:
|
| NewState | new state of SglReqSrc signal for the corresponding channels. This parameter can be: ACTIVE or INACTIVE. |