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

read receive count & fetch (blocking) a fixed count of bytes #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

incanus
Copy link

@incanus incanus commented Oct 12, 2022

This adds a complementary feature to checking whether the Rx FIFO has bytes, which is getting the actual count of bytes available in it using write_data_bytes_available().

It also adds a method to read, blocking, a specific count of bytes. Unlike get_write_data(), which will return up to a certain count, get_write_data_blocking() will loop on pass until the full byte count is available. Obviously some care should be used to check that the count is available first.

Please let me know if this is in line with the project goals, and thanks for providing this library! It's been very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant