Go to the documentation of this file.
136 uint16_t bytes_number);
141 uint16_t bytes_number);
152 #endif // _NO_OS_TDM_H_
int32_t no_os_tdm_write(struct no_os_tdm_desc *desc, void *data, uint16_t bytes_number)
Write data using the TDM interface.
Definition: no_os_tdm.c:120
@ NO_OS_TDM_MASTER_RX
Definition: no_os_tdm.h:48
void * extra
Definition: no_os_tdm.h:100
uint8_t fs_active_length
Definition: no_os_tdm.h:71
uint8_t data_offset
Definition: no_os_tdm.h:63
const struct no_os_tdm_platform_ops * platform_ops
Definition: no_os_tdm.h:83
bool fs_lastbit
Definition: no_os_tdm.h:73
void(* rx_half_complete_callback)(void *rx_arg)
Definition: no_os_tdm.h:81
@ NO_OS_TDM_SLAVE_RX
Definition: no_os_tdm.h:50
uint32_t irq_id
Definition: no_os_tdm.h:94
enum no_os_tdm_mode mode
Definition: no_os_tdm.h:59
int32_t no_os_tdm_init(struct no_os_tdm_desc **desc, const struct no_os_tdm_init_param *param)
Initialize the TDM communication peripheral.
Definition: no_os_tdm.c:45
Structure holding TDM descriptor.
Definition: no_os_tdm.h:92
uint32_t irq_id
Definition: no_os_tdm.h:77
bool fs_active_low
Definition: no_os_tdm.h:69
bool data_lsb_first
Definition: no_os_tdm.h:65
@ NO_OS_TDM_SLAVE_TX
Definition: no_os_tdm.h:49
void(* rx_complete_callback)(void *rx_arg)
Definition: no_os_tdm.h:79
void * extra
Definition: no_os_tdm.h:85
no_os_tdm_mode
Definition: no_os_tdm.h:46
int32_t no_os_tdm_read(struct no_os_tdm_desc *desc, void *data, uint16_t bytes_number)
Read data using the TDM interface.
Definition: no_os_tdm.c:76
int32_t no_os_tdm_pause(struct no_os_tdm_desc *desc)
Pause TDM DMA transfer.
Definition: no_os_tdm.c:88
@ NO_OS_TDM_MASTER_TX
Definition: no_os_tdm.h:47
int32_t no_os_tdm_remove(struct no_os_tdm_desc *desc)
Free the resources allocated by no_os_tdm_init().
Definition: no_os_tdm.c:64
int32_t no_os_tdm_resume(struct no_os_tdm_desc *desc)
Resume TDM DMA transfer.
Definition: no_os_tdm.c:98
int32_t no_os_tdm_stop(struct no_os_tdm_desc *desc)
Stop TDM DMA transfer.
Definition: no_os_tdm.c:108
uint8_t data_size
Definition: no_os_tdm.h:61
Structure holding the parameters for TDM initialization.
Definition: no_os_tdm.h:57
uint8_t slots_per_frame
Definition: no_os_tdm.h:67
const struct no_os_tdm_platform_ops * platform_ops
Definition: no_os_tdm.h:96
bool rising_edge_sampling
Definition: no_os_tdm.h:75
struct lf256fifo * rx_fifo
Definition: no_os_tdm.h:98