Skip to content

DMA example? (tu_fifo_t with DMA) #839

Answered by PanRe
mfp20 asked this question in Q&A
May 18, 2021 · 4 comments · 18 replies
Discussion options

You must be logged in to vote

I don't know if this was clear so far, in case you want to use the DMA, use the functions

void tu_fifo_get_read_info (tu_fifo_t *f, tu_fifo_buffer_info_t *info);
void tu_fifo_get_write_info(tu_fifo_t *f, tu_fifo_buffer_info_t *info);

to get the corresponding pointers and possible lengths to read/write. You must reduce the possible lenghts to your desired one (if you have any of course). As for audio class (i am not familiar with the details of CDC), you get a callback function called every time data is to be sent/received via USB interface or another callback function called when data was sent/received informing you that the corresponding FIFOs are empty now. You may add something like t…

Replies: 4 comments 18 replies

Comment options

You must be logged in to vote
9 replies
@hathach
Comment options

@mfp20
Comment options

@hathach
Comment options

@mfp20
Comment options

@hathach
Comment options

Comment options

You must be logged in to vote
5 replies
@hathach
Comment options

@mfp20
Comment options

@hathach
Comment options

@mfp20
Comment options

@mfp20
Comment options

Comment options

You must be logged in to vote
2 replies
@hathach
Comment options

@mfp20
Comment options

Comment options

You must be logged in to vote
2 replies
@mfp20
Comment options

@MrJake222
Comment options

Answer selected by mfp20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants