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

SPI setup example #390

Open
Jatsekku opened this issue Aug 20, 2021 · 1 comment
Open

SPI setup example #390

Jatsekku opened this issue Aug 20, 2021 · 1 comment
Assignees
Labels
question question from the community that is not technical support software

Comments

@Jatsekku
Copy link

Is there any way to set SPI parameters like clock polarity and clock phase?

@straithe
Copy link
Member

Those features have not been exposed through the host's SPI API (gf.spi) but are crudely exposed through the device's SPI API (gf.apis.spi). You have to call gf.apis.spi.set_clock_polarity_and_phase() with an 8-bit integer argument that gets stuffed into the Synchronous Serial Port's (SSP) Control Register 0. See chapter 41 of the UM10503 manual can provide more information.

@straithe straithe self-assigned this Aug 23, 2021
@straithe straithe added question question from the community that is not technical support software labels Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question question from the community that is not technical support software
Projects
None yet
Development

No branches or pull requests

2 participants