Skip to main content

Crate viva_gencp

Crate viva_gencp 

Source
Expand description

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

Structs§

AckHeader
Header for GenCP acknowledgements.
CommandFlags
Flags that can be set on a GenCP command packet.
CommandHeader
Command header for GenCP requests.
GenCpAck
GenCP acknowledgement packet.
GenCpCmd
GenCP command packet.

Enums§

GenCpError
Errors that can occur when dealing with GenCP packets.
OpCode
GenCP operation codes supported by this crate.
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.
encode_cmd
Encode a GenCP command into the on-the-wire representation.