Functions | |
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_i2s_evt_handler_t. More... | |
uint16_t | app_i2s_deinit (app_i2s_id_t id) |
De-initialize the APP I2S DRIVER peripheral. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
uint16_t | app_i2s_enable (app_i2s_id_t id) |
Enable the I2S moudle. More... | |
uint16_t | app_i2s_disable (app_i2s_id_t id) |
Disable the I2S moudle. More... | |
uint16_t | app_i2s_enable_clock (app_i2s_id_t id) |
Enable the master I2S clock. More... | |
uint16_t | app_i2s_disable_clock (app_i2s_id_t id) |
Disable the master I2S clock. More... | |
uint16_t | app_i2s_flush_tx_fifo (app_i2s_id_t id) |
Flush the I2S transmitter FIFO. More... | |
uint16_t | app_i2s_flush_rx_fifo (app_i2s_id_t id) |
Flush the I2S receiver FIFO. More... | |
i2s_handle_t * | app_i2s_get_handle (app_i2s_id_t id) |
Return the I2S handle. More... | |
uint16_t app_i2s_deinit | ( | app_i2s_id_t | id | ) |
De-initialize the APP I2S DRIVER peripheral.
[in] | id | De-initialize for a specific ID. |
uint16_t app_i2s_disable | ( | app_i2s_id_t | id | ) |
Disable the I2S moudle.
[in] | id | The I2S module id. |
uint16_t app_i2s_disable_clock | ( | app_i2s_id_t | id | ) |
Disable the master I2S clock.
[in] | id | The I2S master module id. |
uint16_t app_i2s_enable | ( | app_i2s_id_t | id | ) |
Enable the I2S moudle.
[in] | id | The I2S module id. |
uint16_t app_i2s_enable_clock | ( | app_i2s_id_t | id | ) |
Enable the master I2S clock.
[in] | id | The I2S master module id. |
uint16_t app_i2s_flush_rx_fifo | ( | app_i2s_id_t | id | ) |
Flush the I2S receiver FIFO.
[in] | id | which I2S module want to flush. |
uint16_t app_i2s_flush_tx_fifo | ( | app_i2s_id_t | id | ) |
Flush the I2S transmitter FIFO.
[in] | id | which I2S module want to flush. |
i2s_handle_t* app_i2s_get_handle | ( | app_i2s_id_t | id | ) |
Return the I2S handle.
[in] | id | I2S Channel ID. |
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_i2s_evt_handler_t.
[in] | p_params | Pointer to app_i2s_params_t parameter which contains the configuration information for the specified I2S module. |
[in] | evt_handler | I2S user callback function. |
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.
[in] | id | which I2S module want to receive. |
[in] | p_data | Pointer to data buffer |
[in] | size | Amount of data to be sent |
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.
[in] | id | which I2S module want to receive. |
[in] | p_data | Pointer to data buffer |
[in] | size | Amount of data to be sent |
[in] | timeout | Timeout duration |
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.
[in] | id | which I2S module want to transmit. |
[in] | p_data | Pointer to data buffer |
[in] | size | Amount of data to be sent |
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.
[in] | id | which I2S module want to transmit. |
[in] | p_data | Pointer to data buffer |
[in] | size | Amount of data to be sent |
[in] | timeout | Timeout duration |