General Category > Discussion - Software

Looking for design pattern(s) using SPI Slave with NO_PROTOCOL

(1/1)

emmanuel:
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.

emmanuel:
At least in testing, a non locking ring buffer works.     
Was hoping to learn something a bit more elegant. :-)

Navigation

[0] Message Index

Go to full version