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

Extended SPI Functions #113

Open
michael-ring opened this issue Feb 1, 2015 · 1 comment
Open

Extended SPI Functions #113

michael-ring opened this issue Feb 1, 2015 · 1 comment

Comments

@michael-ring
Copy link

I have implemented an example for the MAX 7219 Chip.

This chip uses 16Bit SPI which causes some problems on Raspberry Pi and possibly other devices because their SPI driver only supports 8/9 Bits.

To make this chip work I would like to implement an extended mraa_spi_bit_per_word function that takes a GPIO Pin as an additional parameter. This GPIO Pin then takes over the functionality of CS and makes it possible to have 16/32 Bit transfers on those limited devices.

I have also already implemented helper functions to send 16/32 Bit values via SPI, those functions and the mraa_spi_transfer_buf can get modified to support this extra CS seamlessly.

Any objections?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants