Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SPI #209

Open
Fleker opened this issue Jul 27, 2020 · 0 comments
Open

Support SPI #209

Fleker opened this issue Jul 27, 2020 · 0 comments

Comments

@Fleker
Copy link
Collaborator

Fleker commented Jul 27, 2020

Implement a basic SPI mode that can use a mix of registers or serialized message buffers. If it uses registers and supports multiple transport layers, how do we separate I2C and SPI?

This format is already supported in several platforms including Arduino and Android Things and uses transactions.

We should update the JSON schema at the same time to perform proper validation.

Example spec:

spi:
  # These two params combined make up AThings SPI modes 0-3 in a quadrant
  clockPolarity: LOW | HIGH
  clockPhase: LEADING | TRAILING # clock edge
  frequency: 16000 # 16KHz
  endianness: # Same as in I2C (make this a separate type we reference?)
  word: 8 # bits
  format: REGISTER | SERIALIZATION # Depends on whether we use registers or we use serialized message buffers
Fleker added a commit to Fleker/cyanobyte that referenced this issue Jul 29, 2020
Amends schema to note SPI fields
Provide example for Raspberry Pi in separate template
Only supports register I/O at the moment

See google#209
Fleker added a commit that referenced this issue Aug 18, 2020
Amends schema to note SPI fields
Provide example for Raspberry Pi in separate template
Only supports register I/O at the moment

See #209
Fleker added a commit to Fleker/cyanobyte that referenced this issue Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant