Skip to content

API does not support short reads from the device #146

@humphrey-xmos

Description

@humphrey-xmos

Due to the structure of the API the device has no option but to return an error or the length of data requested.

While some physical layers do not support variable length reads, I2C and USB do. The only work around is for teh application to add a read header with the actual returned length.

Suugestion;

  • Change the API to allow the application to report how much data is available for the given request.

Then either;

  1. Change the protocol to prepend a read length to the protocol read, or,
  2. Change the control peripheral driver adapters to allow the pyhsical layer to report end-of-transaction to the host.
  3. This might mean creating a protocol update to inform the host on physical layers that do not explicitly support short-reads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions