FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: Looking for design pattern(s) using SPI Slave with NO_PROTOCOL  (Read 7241 times)

emmanuel

  • Newbie
  • *
  • Posts: 3
    • View Profile
Looking for design pattern(s) using SPI Slave with NO_PROTOCOL
« 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.
Logged

emmanuel

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Looking for design pattern(s) using SPI Slave with NO_PROTOCOL
« Reply #1 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. :-)
Logged