pub struct GvspHeader {
pub status: u16,
pub block_id: u64,
pub packet_id: u32,
pub extended_ids: bool,
pub header_len: usize,
}Expand description
The header every GVSP packet starts with, in either layout.
| Bytes | Standard (8) | Extended ids (20) |
|---|---|---|
| 0–1 | status | status |
| 2–3 | block id (16 bits) | flags |
| 4 | packet format | 0x80 | packet format |
| 5–7 | packet id (24 bits) | unused |
| 8–15 | block id (64 bits) | |
| 16–19 | packet id (32 bits) |
The extended layout is corroborated by aravis’s ArvGvspExtendedHeader and
by a LUCID TRT009S-E capture, whose bytes 2–3 and 5–7 are zero (the
lucid_evt30_* tests below).
Fields§
§status: u16Status word, raw: decode it with GigeStatus.
Bit 15 marks an error (aravis arv_gvsp_packet_status_is_error);
0x0100 flags a resent packet.
block_id: u64Block id: 16 bits widened, or the 64-bit extended id.
packet_id: u32Packet id: 24 bits widened, or the 32-bit extended id.
extended_ids: boolWhether the packet carries the 20-byte extended-ID header.
header_len: usizeBytes of header before the packet’s own data: 8 or 20.
Trait Implementations§
Source§impl Clone for GvspHeader
impl Clone for GvspHeader
impl Copy for GvspHeader
Source§impl Debug for GvspHeader
impl Debug for GvspHeader
impl Eq for GvspHeader
Source§impl PartialEq for GvspHeader
impl PartialEq for GvspHeader
impl StructuralPartialEq for GvspHeader
Auto Trait Implementations§
impl Freeze for GvspHeader
impl RefUnwindSafe for GvspHeader
impl Send for GvspHeader
impl Sync for GvspHeader
impl Unpin for GvspHeader
impl UnsafeUnpin for GvspHeader
impl UnwindSafe for GvspHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more