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
Read 16 bit data from SPI #13721
Comments
Can you not just use uint16_t out = 0x1234;
uint16_t in;
spi_transfer_bytes(bus, cs, true, &out, NULL, sizeof(out));
spi_transfer_bytes(bus, cs, false, NULL, &in, sizeof(in)); |
Hello Team, Thanks for your update. Yes we are using the below method for receive data, But in spi.c, we found only configuration SPI for 8-bit data. there is no option for 16 bit data. Thank you. |
Ah I see - stm32 has an option to load 16 bit or two data bytes into From my brief skimming of the data sheet, for polling mode it might be enough to set the For DMA mode you might just transfer one byte manually if the transfer buffer has an odd size and write the rest in 16-bit mode, always reading/writing two bytes at at time. |
Hello Team, Thank you. |
If you have your RIOT fork on Github, you can click that "New pull request" button and select your source branch. You'll get a template with a description to fill out. CONTRIBUTING.md has a more in-depth explanation. |
@CJayakumar are your questions answered? Can this issue be closed? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Hello Team,
We could not find in riotos to connect wifi with board b-l475e-iot01a.So we are trying to write driver to connect wifi with b-l475e-iot01a, The board is using esWifi module so esp32 will not support here.
Issue is,
We can read and write 8 bit data using SPI in riotos but we could not find option to read 16 bit data.If there is way to read 16 bit data from SPI, it would helpful us to resolve the issue.
Thank you
The text was updated successfully, but these errors were encountered: