RTEMS 6.1-rc5
|
Macros | |
#define | __HAL_DMA_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DMA_STATE_RESET) |
Reset DMA handle state. | |
#define | __HAL_DMA_GET_FS(__HANDLE__) ((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))? (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->FCR & (DMA_SxFCR_FS)) : 0) |
Return the current DMA Stream FIFO filled level. | |
#define | __HAL_DMA_ENABLE(__HANDLE__) |
Enable the specified DMA Stream. | |
#define | __HAL_DMA_DISABLE(__HANDLE__) |
Disable the specified DMA Stream. | |
#define | __HAL_DMA_GET_TC_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream transfer complete flag. | |
#define | __HAL_DMA_GET_HT_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream half transfer complete flag. | |
#define | __HAL_DMA_GET_TE_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream transfer error flag. | |
#define | __HAL_DMA_GET_FE_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream FIFO error flag. | |
#define | __HAL_DMA_GET_DME_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream direct mode error flag. | |
#define | __HAL_BDMA_GET_GI_FLAG_INDEX(__HANDLE__) |
Returns the current BDMA Channel Global interrupt flag. | |
#define | __HAL_DMA_GET_FLAG(__HANDLE__, __FLAG__) |
Get the DMA Stream pending flags. | |
#define | __HAL_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) |
Clear the DMA Stream pending flags. | |
#define | DMA_TO_BDMA_IT(__DMA_IT__) |
#define | __HAL_BDMA_CHANNEL_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CCR |= (DMA_TO_BDMA_IT(__INTERRUPT__))) |
#define | __HAL_DMA_STREAM_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
#define | __HAL_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
Enable the specified DMA Stream interrupts. | |
#define | __HAL_BDMA_CHANNEL_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CCR &= ~(DMA_TO_BDMA_IT(__INTERRUPT__))) |
#define | __HAL_DMA_STREAM_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
#define | __HAL_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
Disable the specified DMA Stream interrupts. | |
#define | __HAL_BDMA_CHANNEL_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CCR & (DMA_TO_BDMA_IT(__INTERRUPT__)))) |
#define | __HAL_DMA_STREAM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) |
#define | __HAL_DMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) |
Check whether the specified DMA Stream interrupt is enabled or not. | |
#define | __HAL_DMA_SET_COUNTER(__HANDLE__, __COUNTER__) |
Writes the number of data units to be transferred on the DMA Stream. | |
#define | __HAL_DMA_GET_COUNTER(__HANDLE__) |
Returns the number of remaining data units in the current DMAy Streamx transfer. | |
#define __HAL_BDMA_GET_GI_FLAG_INDEX | ( | __HANDLE__ | ) |
Returns the current BDMA Channel Global interrupt flag.
__HANDLE__ | DMA handle |
The | specified transfer error flag index. |
#define __HAL_DMA_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Clear the DMA Stream pending flags.
__HANDLE__ | DMA handle |
__FLAG__ | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
#define __HAL_DMA_DISABLE | ( | __HANDLE__ | ) |
Disable the specified DMA Stream.
__HANDLE__ | DMA handle |
None |
#define __HAL_DMA_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Disable the specified DMA Stream interrupts.
__HANDLE__ | DMA handle |
__INTERRUPT__ | specifies the DMA interrupt sources to be enabled or disabled. This parameter can be one of the following values:
|
None |
#define __HAL_DMA_ENABLE | ( | __HANDLE__ | ) |
Enable the specified DMA Stream.
__HANDLE__ | DMA handle |
None |
#define __HAL_DMA_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Enable the specified DMA Stream interrupts.
__HANDLE__ | DMA handle |
__INTERRUPT__ | specifies the DMA interrupt sources to be enabled or disabled. This parameter can be one of the following values:
|
None |
#define __HAL_DMA_GET_COUNTER | ( | __HANDLE__ | ) |
Returns the number of remaining data units in the current DMAy Streamx transfer.
__HANDLE__ | DMA handle |
The | number of remaining data units in the current DMA Stream transfer. |
#define __HAL_DMA_GET_DME_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream direct mode error flag.
__HANDLE__ | DMA handle |
The | specified direct mode error flag index. |
#define __HAL_DMA_GET_FE_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream FIFO error flag.
__HANDLE__ | DMA handle |
The | specified FIFO error flag index. |
#define __HAL_DMA_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Get the DMA Stream pending flags.
__HANDLE__ | DMA handle |
__FLAG__ | Get the specified flag. This parameter can be any combination of the following values:
|
The | state of FLAG (SET or RESET). |
#define __HAL_DMA_GET_FS | ( | __HANDLE__ | ) | ((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))? (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->FCR & (DMA_SxFCR_FS)) : 0) |
Return the current DMA Stream FIFO filled level.
__HANDLE__ | DMA handle |
The | FIFO filling state.
|
#define __HAL_DMA_GET_HT_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream half transfer complete flag.
__HANDLE__ | DMA handle |
The | specified half transfer complete flag index. |
#define __HAL_DMA_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Check whether the specified DMA Stream interrupt is enabled or not.
__HANDLE__ | DMA handle |
__INTERRUPT__ | specifies the DMA interrupt source to check. This parameter can be one of the following values:
|
The | state of DMA_IT. |
#define __HAL_DMA_GET_TC_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream transfer complete flag.
__HANDLE__ | DMA handle |
The | specified transfer complete flag index. |
#define __HAL_DMA_GET_TE_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream transfer error flag.
__HANDLE__ | DMA handle |
The | specified transfer error flag index. |
#define __HAL_DMA_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_DMA_STATE_RESET) |
Reset DMA handle state.
__HANDLE__ | specifies the DMA handle. |
None |
#define __HAL_DMA_SET_COUNTER | ( | __HANDLE__, | |
__COUNTER__ | |||
) |
Writes the number of data units to be transferred on the DMA Stream.
__HANDLE__ | DMA handle |
__COUNTER__ | Number of data units to be transferred (from 0 to 65535) Number of data items depends only on the Peripheral data format. |
The | number of remaining data units in the current DMAy Streamx transfer. |
#define __HAL_DMA_STREAM_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
#define __HAL_DMA_STREAM_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
#define __HAL_DMA_STREAM_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
#define DMA_TO_BDMA_IT | ( | __DMA_IT__ | ) |