Crate doip_rw

Crate doip_rw 

Source
Expand description

DoIP protocol encoding and decoding library

This crate provides all the Diagnostic over IP messages, with their associated :

  • encoding into a writer
  • decoding from a reader

For reference on the protocol, see ISO-14229-1.

A DoIP message is composed of a header and a payload, ie. DoIpHeader and Payload.

The payload is the meaningfull part of the message, and is one of the message module structs.

A typical reception sequence using the library would be :

A typical emission sequence using the library would be :

Modules§

message
Module containing all the messages handled by the API.

Structs§

DoIpHeader
Generic DoIP header data structure.

Enums§

DoIpError
DoIp generic error return
PayloadType
Supported DoIP payload types.

Constants§

DOIP_HEADER_LENGTH
Length of the DoIP header.

Traits§

BorrowedPayload
A DoIP payload with references
Payload
A DoIP payload

Functions§

length_message
Length of a DoIp message in bytes
read_header
Read a DoIp header
read_message
Reads a DoIP header and attemps to read a DoIp payload
read_payload
Read a specific DoIp payload, specifying the exact payload through Payload type
read_replace_message
Read a specific DoIp message into an existing message
read_replace_payload
Read a specific DoIp payload into an existing payload
write_message
Writes a DoIP header and its DoIp payload

Type Aliases§

LogicalAddress
A DoIP logical address, both for a tester or a tested entity
Vin
A Vehicle Identifier Number