What is the function i2s_handler in the example of delay and sum?

Non-technical related questions should go here.
mark-jack
Member
Posts: 9
Joined: Fri Oct 13, 2017 4:11 am

What is the function i2s_handler in the example of delay and sum?

Postby mark-jack » Fri Oct 13, 2017 4:19 am

Which the meaning is the function i2s_handler in the example of delay and sum?
Thank you for you help me.
Image

Image

Image
User avatar
infiniteimprobability
XCore Expert
Posts: 874
Joined: Thu May 27, 2010 10:08 am
Contact:

Postby infiniteimprobability » Fri Oct 13, 2017 4:05 pm

Checkout the docs of lib_i2s https://www.xmos.com/download/private/l ... rc1%29.pdf.

The short story is that I2S calls back to a handler to inform/check about new frames and pass data to/from I2S.

i2s_handler() is the task that receives those callbacks and handles them.

It can be a task running on it's own core or [[distributable]] which means the compiler effectively inlines the callback cases so that they are run from the I2S task...kind of turns them into function calls.
User avatar
Ross
XCore Expert
Posts: 761
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Wed Oct 25, 2017 10:58 am

Topic title edited. Please try and keep the title relevant!

Return to “General Questions”

Who is online

Users browsing this forum: No registered users and 4 guests