Skip to main content

Crate viva_gencp

Crate viva_gencp 

Source
Expand description

GenCP: generic control protocol encode/decode (transport-agnostic).

Modules§

ccd_flags
Flag bits of a GenCP command’s flags field (GenCP 1.2, Table 4).
command_id
GenCP command ids (GenCP 1.2, Table 7) — what USB3 Vision carries.

Structs§

AckHeader
Header of a GVCP acknowledgement.
CommandFlags
Flags that can be set on a GenCP command packet.
GenCpAck
GenCP acknowledgement packet.

Enums§

GenCpError
Errors that can occur when dealing with GenCP packets.
OpCode
GVCP operation codes for the GenCP-style operations GigE Vision carries.
StatusCode
Status codes shared by the GVCP and GenCP acknowledgement tables.

Constants§

HEADER_SIZE
Size of the GenCP header (in bytes).
PENDING_ACK_COMMAND
Command id of the GenCP pending-acknowledge.

Functions§

decode_ack
Decode a GenCP acknowledgement from raw bytes.