RTEMS 6.1-rc5
|
Macros | |
#define | __HAL_MDMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR |= MDMA_CCR_EN) |
Enable the specified MDMA Channel. | |
#define | __HAL_MDMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR &= ~MDMA_CCR_EN) |
Disable the specified MDMA Channel. | |
#define | __HAL_MDMA_GET_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->CISR & (__FLAG__)) |
Get the MDMA Channel pending flags. | |
#define | __HAL_MDMA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->CIFCR = (__FLAG__)) |
Clear the MDMA Stream pending flags. | |
#define | __HAL_MDMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CCR |= (__INTERRUPT__)) |
Enables the specified MDMA Channel interrupts. | |
#define | __HAL_MDMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CCR &= ~(__INTERRUPT__)) |
Disables the specified MDMA Channel interrupts. | |
#define | __HAL_MDMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CCR & (__INTERRUPT__))) |
Checks whether the specified MDMA Channel interrupt is enabled or not. | |
#define | __HAL_MDMA_SET_COUNTER(__HANDLE__, __COUNTER__) ((__HANDLE__)->Instance->CBNDTR |= ((__COUNTER__) & MDMA_CBNDTR_BNDT)) |
Writes the number of data in bytes to be transferred on the MDMA Channelx. | |
#define | __HAL_MDMA_GET_COUNTER(__HANDLE__) ((__HANDLE__)->Instance->CBNDTR & MDMA_CBNDTR_BNDT) |
Returns the number of remaining data in bytes in the current MDMA Channelx transfer. | |
#define __HAL_MDMA_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((__HANDLE__)->Instance->CIFCR = (__FLAG__)) |
Clear the MDMA Stream pending flags.
__HANDLE__ | MDMA handle |
__FLAG__ | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
#define __HAL_MDMA_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CCR &= ~MDMA_CCR_EN) |
Disable the specified MDMA Channel.
__HANDLE__ | MDMA handle |
None |
#define __HAL_MDMA_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CCR &= ~(__INTERRUPT__)) |
Disables the specified MDMA Channel interrupts.
__HANDLE__ | MDMA handle |
__INTERRUPT__ | specifies the MDMA interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
None |
#define __HAL_MDMA_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CCR |= MDMA_CCR_EN) |
Enable the specified MDMA Channel.
__HANDLE__ | MDMA handle |
None |
#define __HAL_MDMA_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CCR |= (__INTERRUPT__)) |
Enables the specified MDMA Channel interrupts.
__HANDLE__ | MDMA handle |
__INTERRUPT__ | specifies the DMA interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
None |
#define __HAL_MDMA_GET_COUNTER | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CBNDTR & MDMA_CBNDTR_BNDT) |
Returns the number of remaining data in bytes in the current MDMA Channelx transfer.
__HANDLE__ | : MDMA handle |
The | number of remaining data in bytes in the current MDMA Channelx transfer. |
#define __HAL_MDMA_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((__HANDLE__)->Instance->CISR & (__FLAG__)) |
Get the MDMA Channel pending flags.
__HANDLE__ | MDMA 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_MDMA_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CCR & (__INTERRUPT__))) |
Checks whether the specified MDMA Channel interrupt is enabled or not.
__HANDLE__ | MDMA handle |
__INTERRUPT__ | specifies the MDMA interrupt source to check.
|
The | state of MDMA_IT (SET or RESET). |
#define __HAL_MDMA_SET_COUNTER | ( | __HANDLE__, | |
__COUNTER__ | |||
) | ((__HANDLE__)->Instance->CBNDTR |= ((__COUNTER__) & MDMA_CBNDTR_BNDT)) |
Writes the number of data in bytes to be transferred on the MDMA Channelx.
__HANDLE__ | : MDMA handle |
__COUNTER__ | Number of data in bytes to be transferred. |
None |