Skip to content

SPI: Seems faulty #26

@robert-hh1

Description

@robert-hh1

The hard-SPI mode with device # 0 seems faulty. Observed aspects:

  • the setting of phase and polarity does not have the expected result. Looking into the sources, the respective code seems wrong. || instead && in logical expressions, and phase and polarity swapped.
  • The bytes of a message are written in reverse order, compared to soft-SPI. Changing the firstbit parameter swaps the byte order. Maybe it is only the default setting which is wrong.
  • the method write_readinto() does not work. Data is written, but not read. Looking into the code it seems, that write and read is performed sequential instead of simultaneous. I did not test yet if read works at all.

Soft-SPI (device # -1) works as expected.

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