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

vendor: Write improvements #1289

Merged
merged 2 commits into from
Mar 6, 2022
Merged

Commits on Jan 19, 2022

  1. vendor: Add tx callback

    Other drivers already have notification about data sent.
    It allows batter control in application on vendor
    protocol level.
    kasjer committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    d069ea1 View commit details
    Browse the repository at this point in the history
  2. vendor: Add tx flush functionality

    So far tud_vendor_n_write() always flushed data.
    It requires to have whole vendor packed constructed
    before in one buffer.
    
    With this change data do get flushed when endpoint size
    is filled on write, when there is no enough data to
    fill endpoint data is not sent and subsequent calls to
    write functions can add more bytes.
    
    Vendor code needs to call tud_vendor_n_flush() when packet is
    ready to be sent.
    kasjer committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    4ca2215 View commit details
    Browse the repository at this point in the history