FTDI Community

General Category => Discussion - Software => Topic started by: emmanuel on September 01, 2019, 04:09:53 AM

Title: Looking for design pattern(s) using SPI Slave with NO_PROTOCOL
Post by: emmanuel on September 01, 2019, 04:09:53 AM
Hi;   I'm using FT4222 in SPI Slave Mode 3 and thought I'd like to see how others are implementing their own protocols.

I've looked at the examples (both linux and windows) but nothing really outlined an example protocol.
What I'm really interested in is how other engineers handle incoming data from their spi-master.

Something we're currently dealing with is a Master who can not be modified which as forced us to use no_protocol.
Using no_protocol does generate a lot of data.  Seems to be a lot of clock sync.

How are you guys handling these situations?   Looking for a C example or even pseudo example.
Title: Re: Looking for design pattern(s) using SPI Slave with NO_PROTOCOL
Post by: emmanuel on September 09, 2019, 11:54:44 PM
At least in testing, a non locking ring buffer works.     
Was hoping to learn something a bit more elegant. :-)