Loading...
Searching...
No Matches
Single-session USB transport with bounded input staging.
More...
Single-session USB transport with bounded input staging.
Unread bytes occupy buffered[offset..available). They may belong to the next container: USB transfer boundaries need not match PTP containers. The caller owns the handle and maintains one overall operation deadline.
◆ available
| size_t transport::available |
Consumed offset and valid-byte count in buffered.
◆ buffered
Fixed 64 KiB receive buffer, never image-sized.
◆ closing_session
| bool transport::closing_session |
◆ deadline_ms
| uint64_t transport::deadline_ms |
Absolute CLOCK_MONOTONIC deadline in milliseconds.
◆ handle
| struct usbfs_handle* transport::handle |
Borrowed handle for the claimed interface.
◆ input_endpoint
| uint8_t transport::input_endpoint |
◆ max_download
| size_t transport::max_download |
◆ offset
◆ output_endpoint
| uint8_t transport::output_endpoint |
Discovered bulk endpoint addresses.
◆ output_packet_size
| unsigned transport::output_packet_size |
Bulk-OUT wMaxPacketSize; zero disables ZLP termination.
◆ transaction_id
| uint32_t transport::transaction_id |
Next command ID; OpenSession starts with zero.
◆ usb_timeout_ms
| unsigned transport::usb_timeout_ms |
The documentation for this struct was generated from the following file: