Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Support SPI #209

@Fleker

Description

@Fleker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions