RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros

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.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_MDMA_CLEAR_FLAG

#define __HAL_MDMA_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->CIFCR = (__FLAG__))

Clear the MDMA Stream pending flags.

Parameters
__HANDLE__MDMA handle
__FLAG__specifies the flag to clear. This parameter can be any combination of the following values:
  • MDMA_FLAG_TE : Transfer Error flag.
  • MDMA_FLAG_CTC : Channel Transfer Complete flag.
  • MDMA_FLAG_BRT : Block Repeat Transfer flag.
  • MDMA_FLAG_BT : Block Transfer complete flag.
  • MDMA_FLAG_BFTC : BuFfer Transfer Complete flag.
Return values
None

◆ __HAL_MDMA_DISABLE

#define __HAL_MDMA_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CCR &= ~MDMA_CCR_EN)

Disable the specified MDMA Channel.

Parameters
__HANDLE__MDMA handle
Return values
None

◆ __HAL_MDMA_DISABLE_IT

#define __HAL_MDMA_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CCR &= ~(__INTERRUPT__))

Disables the specified MDMA Channel interrupts.

Parameters
__HANDLE__MDMA handle
__INTERRUPT__specifies the MDMA interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
  • MDMA_IT_TE : Transfer Error interrupt mask
  • MDMA_IT_CTC : Channel Transfer Complete interrupt mask
  • MDMA_IT_BRT : Block Repeat Transfer interrupt mask
  • MDMA_IT_BT : Block Transfer interrupt mask
  • MDMA_IT_BFTC : BuFfer Transfer Complete interrupt mask
Return values
None

◆ __HAL_MDMA_ENABLE

#define __HAL_MDMA_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CCR |= MDMA_CCR_EN)

Enable the specified MDMA Channel.

Parameters
__HANDLE__MDMA handle
Return values
None

◆ __HAL_MDMA_ENABLE_IT

#define __HAL_MDMA_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CCR |= (__INTERRUPT__))

Enables the specified MDMA Channel interrupts.

Parameters
__HANDLE__MDMA handle
__INTERRUPT__specifies the DMA interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
  • MDMA_IT_TE : Transfer Error interrupt mask
  • MDMA_IT_CTC : Channel Transfer Complete interrupt mask
  • MDMA_IT_BRT : Block Repeat Transfer interrupt mask
  • MDMA_IT_BT : Block Transfer interrupt mask
  • MDMA_IT_BFTC : BuFfer Transfer Complete interrupt mask
Return values
None

◆ __HAL_MDMA_GET_COUNTER

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

Parameters
__HANDLE__: MDMA handle
Return values
Thenumber of remaining data in bytes in the current MDMA Channelx transfer.

◆ __HAL_MDMA_GET_FLAG

#define __HAL_MDMA_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->CISR & (__FLAG__))

Get the MDMA Channel pending flags.

Parameters
__HANDLE__MDMA handle
__FLAG__Get the specified flag. This parameter can be any combination of the following values:
  • MDMA_FLAG_TE : Transfer Error flag.
  • MDMA_FLAG_CTC : Channel Transfer Complete flag.
  • MDMA_FLAG_BRT : Block Repeat Transfer flag.
  • MDMA_FLAG_BT : Block Transfer complete flag.
  • MDMA_FLAG_BFTC : BuFfer Transfer Complete flag.
  • MDMA_FLAG_CRQA : Channel request Active flag.
Return values
Thestate of FLAG (SET or RESET).

◆ __HAL_MDMA_GET_IT_SOURCE

#define __HAL_MDMA_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->CCR & (__INTERRUPT__)))

Checks whether the specified MDMA Channel interrupt is enabled or not.

Parameters
__HANDLE__MDMA handle
__INTERRUPT__specifies the MDMA interrupt source to check.
  • MDMA_IT_TE : Transfer Error interrupt mask
  • MDMA_IT_CTC : Channel Transfer Complete interrupt mask
  • MDMA_IT_BRT : Block Repeat Transfer interrupt mask
  • MDMA_IT_BT : Block Transfer interrupt mask
  • MDMA_IT_BFTC : BuFfer Transfer Complete interrupt mask
Return values
Thestate of MDMA_IT (SET or RESET).

◆ __HAL_MDMA_SET_COUNTER

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

Parameters
__HANDLE__: MDMA handle
__COUNTER__Number of data in bytes to be transferred.
Return values
None