Astra MCU SDK Peripheral Driver Library
Loading...
Searching...
No Matches
i2s_mem_if_ops_t Struct Reference

I2S memory interface operations. More...

#include <i2s.h>

Data Fields

i2s_status_en(* init )(void *backend)
i2s_status_en(* submit )(void *backend, int channel, uint32_t addr, uint32_t size)
i2s_status_en(* wait_complete )(void *backend, int channel, int timeout_ms)
i2s_status_en(* clear )(void *backend, int channel)
int(* get_channel )(void *backend, bool is_tx)
int(* intr_status )(void *backend, int channel)

Detailed Description

I2S memory interface operations.

This structure defines the backend memory interface operations used by the I2S driver to transfer audio data between memory and the I2S FIFO.

The implementation can vary depending on the selected memory interface, such as DMA or any future memory interface mechanism.

The I2S core driver interacts with the memory interface only through this abstraction layer, enabling backend pluggability without modifying the core I2S logic.