Skip to main content

Module stream

Module stream 

Source
Expand description

USB3 Vision streaming protocol.

U3V streaming uses USB bulk transfers with a leader/payload/trailer structure. Unlike GigE Vision (GVSP over UDP), USB bulk transfers are reliable and ordered — no packet reassembly, bitmap tracking, or resend logic is needed.

Frame structure:

┌─────────┐   ┌─────────────┐   ┌──────────┐
│ Leader  │ → │ Payload(s)  │ → │ Trailer  │
│ (meta)  │   │ (image data)│   │ (status) │
└─────────┘   └─────────────┘   └──────────┘

Structs§

Leader
Parsed U3V stream leader (image metadata).
RawFrame
A raw frame as received from the U3V stream, before conversion to the transport-agnostic Frame type.
Trailer
Parsed U3V stream trailer.
U3vStream
U3V stream receiver that reads frames from a USB bulk endpoint.

Functions§

parse_leader
Parse a U3V stream leader from raw bytes.
parse_trailer
Parse a U3V stream trailer from raw bytes.