Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
transport Struct Reference

Single-session USB transport with bounded input staging. More...

Data Fields

struct usbfs_handle * handle
uint8_t input_endpoint
uint8_t output_endpoint
unsigned output_packet_size
uint32_t transaction_id
uint8_t buffered [TRANSFER_SIZE]
size_t offset
size_t available
uint64_t deadline_ms
unsigned usb_timeout_ms
size_t max_download
bool closing_session

Detailed Description

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.

Field Documentation

◆ available

size_t transport::available

Consumed offset and valid-byte count in buffered.

◆ buffered

uint8_t transport::buffered[TRANSFER_SIZE]

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

size_t transport::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: