Macros | |
#define | __HAL_I2S_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_I2S_STATE_RESET) |
Reset I2S handle states. More... | |
#define | __HAL_I2S_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->EN, I2S_EN_I2S_EN) |
Enable the specified I2S peripheral. More... | |
#define | __HAL_I2S_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->EN, I2S_EN_I2S_EN) |
Disable the specified I2S peripheral. More... | |
#define | __HAL_I2S_ENABLE_CLOCK(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CLK_EN, I2S_CLK_EN_CLK_EN) |
Enable the specified I2S clock. More... | |
#define | __HAL_I2S_DISABLE_CLOCK(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CLK_EN, I2S_CLK_EN_CLK_EN) |
Disable the specified I2S clock. More... | |
#define | __HAL_I2S_ENABLE_TX_BLOCK(__HANDLE__) ll_i2s_enable_txblock((__HANDLE__)->p_instance) |
Enable the specified I2S transmitter block. More... | |
#define | __HAL_I2S_DISABLE_TX_BLOCK(__HANDLE__) ll_i2s_disable_txblock((__HANDLE__)->p_instance) |
Disable the specified I2S transmitter block. More... | |
#define | __HAL_I2S_ENABLE_RX_BLOCK(__HANDLE__) ll_i2s_enable_rxblock((__HANDLE__)->p_instance) |
Enable the specified I2S receiver block. More... | |
#define | __HAL_I2S_DISABLE_RX_BLOCK(__HANDLE__) ll_i2s_disable_rxblock((__HANDLE__)->p_instance) |
Disable the specified I2S receiver block. More... | |
#define | __HAL_I2S_ENABLE_TX_CHANNEL(__HANDLE__) ll_i2s_enable_tx((__HANDLE__)->p_instance) |
Enable the specified I2S transmitter channel. More... | |
#define | __HAL_I2S_DISABLE_TX_CHANNEL(__HANDLE__) ll_i2s_disable_tx((__HANDLE__)->p_instance) |
Disable the specified I2S transmitter channel. More... | |
#define | __HAL_I2S_ENABLE_RX_CHANNEL(__HANDLE__) ll_i2s_enable_rx((__HANDLE__)->p_instance) |
Enable the specified I2S receiver channel. More... | |
#define | __HAL_I2S_DISABLE_RX_CHANNEL(__HANDLE__) ll_i2s_disable_rx((__HANDLE__)->p_instance) |
Disable the specified I2S receiver channel. More... | |
#define | __HAL_I2S_FLUSH_TX_FIFO(__HANDLE__) ll_i2s_clr_txfifo_all((__HANDLE__)->p_instance) |
Flush the I2S transmitter FIFO. More... | |
#define | __HAL_I2S_FLUSH_RX_FIFO(__HANDLE__) ll_i2s_clr_rxfifo_all((__HANDLE__)->p_instance) |
Flush the I2S receiver FIFO. More... | |
#define | __HAL_I2S_ENABLE_DMA(__HANDLE__) ll_i2s_enable_dma(__HANDLE__->p_instance) |
Enable the I2S DMA Request. More... | |
#define | __HAL_I2S_DISABLE_DMA(__HANDLE__) ll_i2s_disable_dma(__HANDLE__->p_instance) |
Disable the I2S DMA Request. More... | |
#define | __HAL_I2S_RESET_TXDMA(__HANDLE__) WRITE_REG((__HANDLE__)->p_instance->RST_TX_DMA, I2S_RST_TX_DMA_RST_TX_DMA) |
Reset the I2S TX DMA request to the lowest enabled channel. More... | |
#define | __HAL_I2S_ENABLE_DMA_MODE(__HANDLE__) ll_i2s_enable_dma_mode(__HANDLE__->p_instance) |
Enable the I2S DMA mode. More... | |
#define | __HAL_I2S_DISABLE_DMA_MODE(__HANDLE__) ll_i2s_disable_dma_mode(__HANDLE__->p_instance) |
Disable the I2S DMA mode. More... | |
#define | __HAL_I2S_RESET_RXDMA(__HANDLE__) WRITE_REG((__HANDLE__)->p_instance->RST_RX_DMA, I2S_RST_RX_DMA_RST_RX_DMA) |
Reset the I2S RX DMA request to the lowest enabled channel. More... | |
#define | __HAL_I2S_ENABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BITS((__HANDLE__)->p_instance->INT_MASK, (__INTERRUPT__)) |
Enable the specified I2S interrupts. More... | |
#define | __HAL_I2S_DISABLE_IT(__HANDLE__, __INTERRUPT__) SET_BITS((__HANDLE__)->p_instance->INT_MASK, (__INTERRUPT__)) |
Disable the specified I2S interrupts. More... | |
#define | __HAL_I2S_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->INT_STAT, (__FLAG__)) != 0) ? SET : RESET) |
Check whether the specified I2S flag is set or not. More... | |
#define | __HAL_I2S_CLEAR_FLAG(__HANDLE__, __FLAG__) |
Clear the specified I2S flag. More... | |
#define __HAL_I2S_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Clear the specified I2S flag.
__HANDLE__ | Specifies the I2S Handle. |
__FLAG__ | Specifies the flag to check. This parameter can be one of the following values:
|
None |
Definition at line 481 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE | ( | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->EN, I2S_EN_I2S_EN) |
Disable the specified I2S peripheral.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 308 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE_CLOCK | ( | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CLK_EN, I2S_CLK_EN_CLK_EN) |
Disable the specified I2S clock.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 327 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE_DMA | ( | __HANDLE__ | ) | ll_i2s_disable_dma(__HANDLE__->p_instance) |
Disable the I2S DMA Request.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 405 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE_DMA_MODE | ( | __HANDLE__ | ) | ll_i2s_disable_dma_mode(__HANDLE__->p_instance) |
Disable the I2S DMA mode.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 424 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | SET_BITS((__HANDLE__)->p_instance->INT_MASK, (__INTERRUPT__)) |
Disable the specified I2S interrupts.
__HANDLE__ | Specifies the I2S handle. |
__INTERRUPT__ | Specifies the interrupt source to disable. This parameter can be one of the following values:
|
None |
Definition at line 457 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE_RX_BLOCK | ( | __HANDLE__ | ) | ll_i2s_disable_rxblock((__HANDLE__)->p_instance) |
Disable the specified I2S receiver block.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 353 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE_RX_CHANNEL | ( | __HANDLE__ | ) | ll_i2s_disable_rx((__HANDLE__)->p_instance) |
Disable the specified I2S receiver channel.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 381 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE_TX_BLOCK | ( | __HANDLE__ | ) | ll_i2s_disable_txblock((__HANDLE__)->p_instance) |
Disable the specified I2S transmitter block.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 341 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_DISABLE_TX_CHANNEL | ( | __HANDLE__ | ) | ll_i2s_disable_tx((__HANDLE__)->p_instance) |
Disable the specified I2S transmitter channel.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 367 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE | ( | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->EN, I2S_EN_I2S_EN) |
Enable the specified I2S peripheral.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 302 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE_CLOCK | ( | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CLK_EN, I2S_CLK_EN_CLK_EN) |
Enable the specified I2S clock.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 316 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE_DMA | ( | __HANDLE__ | ) | ll_i2s_enable_dma(__HANDLE__->p_instance) |
Enable the I2S DMA Request.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 399 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE_DMA_MODE | ( | __HANDLE__ | ) | ll_i2s_enable_dma_mode(__HANDLE__->p_instance) |
Enable the I2S DMA mode.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 418 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | CLEAR_BITS((__HANDLE__)->p_instance->INT_MASK, (__INTERRUPT__)) |
Enable the specified I2S interrupts.
__HANDLE__ | Specifies the I2S Handle. |
__INTERRUPT__ | Specifies the interrupt source to enable. This parameter can be one of the following values:
|
None |
Definition at line 444 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE_RX_BLOCK | ( | __HANDLE__ | ) | ll_i2s_enable_rxblock((__HANDLE__)->p_instance) |
Enable the specified I2S receiver block.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 347 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE_RX_CHANNEL | ( | __HANDLE__ | ) | ll_i2s_enable_rx((__HANDLE__)->p_instance) |
Enable the specified I2S receiver channel.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 374 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE_TX_BLOCK | ( | __HANDLE__ | ) | ll_i2s_enable_txblock((__HANDLE__)->p_instance) |
Enable the specified I2S transmitter block.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 335 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_ENABLE_TX_CHANNEL | ( | __HANDLE__ | ) | ll_i2s_enable_tx((__HANDLE__)->p_instance) |
Enable the specified I2S transmitter channel.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 360 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_FLUSH_RX_FIFO | ( | __HANDLE__ | ) | ll_i2s_clr_rxfifo_all((__HANDLE__)->p_instance) |
Flush the I2S receiver FIFO.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 393 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_FLUSH_TX_FIFO | ( | __HANDLE__ | ) | ll_i2s_clr_txfifo_all((__HANDLE__)->p_instance) |
Flush the I2S transmitter FIFO.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 387 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((READ_BITS((__HANDLE__)->p_instance->INT_STAT, (__FLAG__)) != 0) ? SET : RESET) |
Check whether the specified I2S flag is set or not.
__HANDLE__ | Specifies the I2S Handle. |
__FLAG__ | Specifies the flag to check. This parameter can be one of the following values:
|
The | new state of __FLAG__ (TRUE or FALSE). |
Definition at line 470 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_I2S_STATE_RESET) |
Reset I2S handle states.
__HANDLE__ | I2S handle. |
None |
Definition at line 296 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_RESET_RXDMA | ( | __HANDLE__ | ) | WRITE_REG((__HANDLE__)->p_instance->RST_RX_DMA, I2S_RST_RX_DMA_RST_RX_DMA) |
Reset the I2S RX DMA request to the lowest enabled channel.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 431 of file gr55xx_hal_i2s.h.
#define __HAL_I2S_RESET_TXDMA | ( | __HANDLE__ | ) | WRITE_REG((__HANDLE__)->p_instance->RST_TX_DMA, I2S_RST_TX_DMA_RST_TX_DMA) |
Reset the I2S TX DMA request to the lowest enabled channel.
__HANDLE__ | Specifies the I2S Handle. |
None |
Definition at line 412 of file gr55xx_hal_i2s.h.