Azure Sphere MT3620 M4 API Reference Manual
|
This section provides high level APIs to upper layer. More...
This section provides high level APIs to upper layer.
Functions | |
int | mtk_os_hal_config_i2s (i2s_no i2s_port, audio_parameter *parameter) |
Set the I2S configuration. More... | |
int | mtk_os_hal_enable_i2s (i2s_no i2s_port) |
Enable I2S. More... | |
int | mtk_os_hal_disable_i2s (i2s_no i2s_port) |
Disable I2S. More... | |
int | mtk_os_hal_request_i2s (i2s_no i2s_port) |
request I2S use. More... | |
int | mtk_os_hal_free_i2s (i2s_no i2s_port) |
Free I2S request. More... | |
int mtk_os_hal_config_i2s | ( | i2s_no | i2s_port, |
audio_parameter * | parameter | ||
) |
Set the I2S configuration.
Usage: User can call this function to configure I2S.
The mtk_os_hal_config_i2s() function configures the I2S and DMA for I2S settings and start up DMA for I2S.
[in] | i2s_port | : enum i2s_no. |
[in] | parameter | : struct audio_parameter. |
int mtk_os_hal_enable_i2s | ( | i2s_no | i2s_port | ) |
Enable I2S.
Usage: User can call this function to start I2S TX and RX
[in] | i2s_port | : enum i2s_no. |
int mtk_os_hal_disable_i2s | ( | i2s_no | i2s_port | ) |
Disable I2S.
Usage: User can call this function to start I2S TX, RX and DMA
[in] | i2s_port | : enum i2s_no. |
int mtk_os_hal_request_i2s | ( | i2s_no | i2s_port | ) |
request I2S use.
Usage: User can call this function to request the DMA channels.
[in] | i2s_port | : enum i2s_no. |
int mtk_os_hal_free_i2s | ( | i2s_no | i2s_port | ) |
Free I2S request.
Usage: User can call this function to release the DMA channels and I2S PINMUX request.
[in] | i2s_port | : enum i2s_no. |