Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The maximum transaction length is fixed across all HiBW endpoints #457

@shuchitak

Description

@shuchitak

The maximum transaction length is currently required by the IN API XUD_SetBuffer_Start() to split a transfer into multiple transactions. This value is computed at compile time and assigned to the max_len field in XUD_ep_info:

ep_info[i].max_len = XUD_USB_ISO_EP_MAX_TXN_SIZE;

To make this behavior fully generic, the maximum transaction length should be passed as an argument to APIs like XUD_SetBuffer(), XUD_SetReady_In(), etc.

This change would allow:

  • Endpoints to have distinct max transaction lengths
  • Alternate interfaces on the same endpoint to define their own transaction length limits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions