Go to the documentation of this file.
58 #ifdef ENV_USE_FREERTOS
66 #ifdef HAL_I2S_MODULE_ENABLED
338 #ifdef ENV_RTOS_USE_SEMP
351 uint16_t app_i2s_receive_sem_sync(
app_i2s_id_t id, uint16_t *p_data, uint16_t size);
364 uint16_t app_i2s_transmit_sem_sync(
app_i2s_id_t id, uint16_t *p_data, uint16_t size);
app_i2s_id_t id
specified I2S module ID.
app_io_mux_t mux
Specifies the Peripheral to be connected to the selected pins.
uint16_t app_i2s_transmit_sync(app_i2s_id_t id, uint16_t *p_data, uint16_t size, uint32_t timeout)
Transmits in master or slave mode an amount of data in blocking mode.
I2S IO configuration Structures.
uint16_t app_i2s_enable_clock(app_i2s_id_t id)
Enable the master I2S clock.
uint16_t app_i2s_flush_tx_fifo(app_i2s_id_t id)
Flush the I2S transmitter FIFO.
@ APP_I2S_TYPE_INTERRUPT
Interrupt operation mode.
I2S parameters structure definition.
@ APP_I2S_TYPE_DMA
DMA operation mode
@ APP_I2S_ID_MAX
Only for check parameter, not used as input parameters.
uint32_t error_code
I2S Error code .
@ APP_I2S_TYPE_POLLING
Polling operation mode
app_i2s_pin_t sdi
Set the configuration of I2S SDI pin.
app_i2s_type_t
I2S operating mode Enumerations definition.
app_i2s_evt_type_t
I2S event Enumerations definition.
app_i2s_mode_t use_mode
I2S operate mode.
uint16_t size
I2S transmitted/received counter.
app_io_pull_t
GPIO pull Enumerations definition.
app_io_type_t
GPIO type Enumerations definition.
uint16_t app_i2s_deinit(app_i2s_id_t id)
De-initialize the APP I2S DRIVER peripheral.
app_i2s_pin_t sdo
Set the configuration of I2S SDO pin.
app_i2s_type_t type
Specifies the operation mode of I2S.
uint16_t app_i2s_disable(app_i2s_id_t id)
Disable the I2S moudle.
uint16_t app_i2s_flush_rx_fifo(app_i2s_id_t id)
Flush the I2S receiver FIFO.
@ APP_I2S_ID_SLAVE
I2S slave module.
@ APP_I2S_ID_MASTER
I2S master module.
uint16_t app_i2s_receive_sync(app_i2s_id_t id, uint16_t *p_data, uint16_t size, uint32_t timeout)
Receive in master or slave mode an amount of data in blocking mode.
@ APP_I2S_EVT_RX_DATA
Requested RX transfer completed.
Header file containing functions prototypes of GPIO app library.
uint16_t app_i2s_transmit_async(app_i2s_id_t id, uint16_t *p_data, uint16_t size)
Transmits in master or slave mode an amount of data in non-blocking mode with Interrupt.
uint32_t pin
Specifies the IO pins to be configured.
app_i2s_evt_type_t type
Type of event.
app_i2s_id_t
I2S module Enumerations definition.
app_i2s_pin_cfg_t pin_cfg
the pin configuration information for the specified I2S module.
app_io_pull_t pull
Specifies the Pull-up or Pull-Down activation for the selected pins.
I2S event structure definition.
dma_channel_t tx_dma_channel
Specifies the dma channel of I2S TX.
app_i2s_pin_t ws
Set the configuration of I2S WS pin.
I2S handle Structure definition.
app_io_type_t type
Specifies the type of I2S IO.
@ APP_I2S_EVT_TX_CPLT
Requested TX transfer completed.
app_i2s_pin_t sclk
Set the configuration of I2S SCLK pin.
uint16_t app_i2s_init(app_i2s_params_t *p_params, app_i2s_evt_handler_t evt_handler)
Initialize the APP I2S DRIVER according to the specified parameters in the app_i2s_params_t and app_i...
i2s_init_t init
I2S communication parameters.
I2S init Structure definition.
dma_channel_t rx_dma_channel
Specifies the dma channel of I2S RX.
I2S operate mode Enumerations definition.
This file contains all the functions prototypes for the HAL module driver.
uint16_t app_i2s_enable(app_i2s_id_t id)
Enable the I2S moudle.
i2s_handle_t * app_i2s_get_handle(app_i2s_id_t id)
Return the I2S handle.
@ APP_I2S_EVT_TX_RX
Requested TX/RX transfer completed.
uint16_t app_i2s_disable_clock(app_i2s_id_t id)
Disable the master I2S clock.
void(* app_i2s_evt_handler_t)(app_i2s_evt_t *p_evt)
I2S event callback definition.
app_io_mux_t
GPIO mux Enumerations definition.
@ APP_I2S_EVT_ERROR
Error reported by UART peripheral.
Header file of app rtos config code.
Header file of app driver error code.
uint16_t app_i2s_receive_async(app_i2s_id_t id, uint16_t *p_data, uint16_t size)
Receive in master or slave mode an amount of data in non-blocking mode with Interrupt.
dma_channel_t
HAL DMA Channel Enumerations definition.
@ APP_I2S_TYPE_MAX
Only for check parameter, not used as input parameters.