Channels or Interfaces for Data Flow?

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
ChrisDev
Member
Posts: 13
Joined: Tue Jan 31, 2017 8:45 am

Channels or Interfaces for Data Flow?

Post by ChrisDev »

Hello everyone,

In my actual project I'm planning to receive some information, do some validation and in the end I want to prepare the data for passing it via Ethernet or RMII.
Right know I'm not quite sure how to organize the communication between the single tasks.

Image

That's a rough sketch of what I'm planning to do.
My idea was to, declare the Validation task as the interface's server, which receives data from the I2C-Interface and when the data is checked sends a notification to the processing task.

But is this the best way to do this?

Edit: Or might it be better to use, channels to communicate?


wbr,
Chris


Post Reply