Prusa MINI Firmware overview
|
DMA HAL module driver. More...
Modules | |
DMA Exported Types | |
DMA Exported Types. | |
DMA Exported Constants | |
DMA Exported constants. | |
DMA Exported Functions | |
DMA Exported functions. | |
DMA Private Constants | |
DMA private defines and constants. | |
DMA Private Macros | |
DMA private macros. | |
DMA Private Functions | |
DMA private functions. | |
Macros | |
#define | __HAL_DMA_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DMA_STATE_RESET) |
Reset DMA handle state. More... | |
#define | __HAL_DMA_GET_FS(__HANDLE__) (((__HANDLE__)->Instance->FCR & (DMA_SxFCR_FS))) |
Return the current DMA Stream FIFO filled level. More... | |
#define | __HAL_DMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= DMA_SxCR_EN) |
Enable the specified DMA Stream. More... | |
#define | __HAL_DMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~DMA_SxCR_EN) |
Disable the specified DMA Stream. More... | |
#define | __HAL_DMA_GET_TC_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream transfer complete flag. More... | |
#define | __HAL_DMA_GET_HT_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream half transfer complete flag. More... | |
#define | __HAL_DMA_GET_TE_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream transfer error flag. More... | |
#define | __HAL_DMA_GET_FE_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream FIFO error flag. More... | |
#define | __HAL_DMA_GET_DME_FLAG_INDEX(__HANDLE__) |
Return the current DMA Stream direct mode error flag. More... | |
#define | __HAL_DMA_GET_FLAG(__HANDLE__, __FLAG__) |
Get the DMA Stream pending flags. More... | |
#define | __HAL_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) |
Clear the DMA Stream pending flags. More... | |
#define | __HAL_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
Enable the specified DMA Stream interrupts. More... | |
#define | __HAL_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
Disable the specified DMA Stream interrupts. More... | |
#define | __HAL_DMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) |
Check whether the specified DMA Stream interrupt is enabled or disabled. More... | |
#define | __HAL_DMA_SET_COUNTER(__HANDLE__, __COUNTER__) ((__HANDLE__)->Instance->NDTR = (uint16_t)(__COUNTER__)) |
Writes the number of data units to be transferred on the DMA Stream. More... | |
#define | __HAL_DMA_GET_COUNTER(__HANDLE__) ((__HANDLE__)->Instance->NDTR) |
Returns the number of remaining data units in the current DMAy Streamx transfer. More... | |
DMA HAL module driver.
#define __HAL_DMA_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_DMA_STATE_RESET) |
Reset DMA handle state.
<strong>HANDLE</strong> | specifies the DMA handle. |
None |
#define __HAL_DMA_GET_FS | ( | __HANDLE__ | ) | (((__HANDLE__)->Instance->FCR & (DMA_SxFCR_FS))) |
Return the current DMA Stream FIFO filled level.
<strong>HANDLE</strong> | DMA handle |
The | FIFO filling state.
|
#define __HAL_DMA_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= DMA_SxCR_EN) |
#define __HAL_DMA_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~DMA_SxCR_EN) |
#define __HAL_DMA_GET_TC_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream transfer complete flag.
<strong>HANDLE</strong> | DMA handle |
The | specified transfer complete flag index. |
#define __HAL_DMA_GET_HT_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream half transfer complete flag.
<strong>HANDLE</strong> | DMA handle |
The | specified half transfer complete flag index. |
#define __HAL_DMA_GET_TE_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream transfer error flag.
<strong>HANDLE</strong> | DMA handle |
The | specified transfer error flag index. |
#define __HAL_DMA_GET_FE_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream FIFO error flag.
<strong>HANDLE</strong> | DMA handle |
The | specified FIFO error flag index. |
#define __HAL_DMA_GET_DME_FLAG_INDEX | ( | __HANDLE__ | ) |
Return the current DMA Stream direct mode error flag.
<strong>HANDLE</strong> | DMA handle |
The | specified direct mode error flag index. |
#define __HAL_DMA_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Get the DMA Stream pending flags.
<strong>HANDLE</strong> | DMA handle |
<strong>FLAG</strong> | Get the specified flag. This parameter can be any combination of the following values:
|
The | state of FLAG (SET or RESET). |
#define __HAL_DMA_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Clear the DMA Stream pending flags.
<strong>HANDLE</strong> | DMA handle |
<strong>FLAG</strong> | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
#define __HAL_DMA_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Enable the specified DMA Stream interrupts.
<strong>HANDLE</strong> | DMA handle |
<strong>INTERRUPT</strong> | specifies the DMA interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
None |
#define __HAL_DMA_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Disable the specified DMA Stream interrupts.
<strong>HANDLE</strong> | DMA handle |
<strong>INTERRUPT</strong> | specifies the DMA interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
None |
#define __HAL_DMA_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Check whether the specified DMA Stream interrupt is enabled or disabled.
<strong>HANDLE</strong> | DMA handle |
<strong>INTERRUPT</strong> | specifies the DMA interrupt source to check. This parameter can be one of the following values:
|
The | state of DMA_IT. |
#define __HAL_DMA_SET_COUNTER | ( | __HANDLE__, | |
__COUNTER__ | |||
) | ((__HANDLE__)->Instance->NDTR = (uint16_t)(__COUNTER__)) |
Writes the number of data units to be transferred on the DMA Stream.
<strong>HANDLE</strong> | DMA handle |
<strong>COUNTER</strong> | 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_GET_COUNTER | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->NDTR) |
Returns the number of remaining data units in the current DMAy Streamx transfer.
<strong>HANDLE</strong> | DMA handle |
The | number of remaining data units in the current DMA Stream transfer. |