libdoip  0.1.0
DoIP (Diagnostics over Internet Protocol) ISO 13400 C++17 Library
DoIPPayloadType.h File Reference
#include <stdint.h>
#include <iostream>
#include <iomanip>
#include <optional>
Include dependency graph for DoIPPayloadType.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 doip
 

Enumerations

enum class  doip::DoIPPayloadType : uint16_t {
  doip::NegativeAck = 0x0000 ,
  doip::VehicleIdentificationRequest = 0x0001 ,
  doip::VehicleIdentificationRequestWithEid = 0x0002 ,
  doip::VehicleIdentificationRequestWithVin = 0x0003 ,
  doip::VehicleIdentificationResponse = 0x0004 ,
  doip::RoutingActivationRequest = 0x0005 ,
  doip::RoutingActivationResponse = 0x0006 ,
  doip::AliveCheckRequest = 0x0007 ,
  doip::AliveCheckResponse = 0x0008 ,
  doip::EntityStatusRequest = 0x4001 ,
  doip::EntityStatusResponse = 0x4002 ,
  doip::DiagnosticPowerModeRequest = 0x4003 ,
  doip::DiagnosticPowerModeResponse = 0x4004 ,
  doip::DiagnosticMessage = 0x8001 ,
  doip::DiagnosticMessageAck = 0x8002 ,
  doip::DiagnosticMessageNegativeAck = 0x8003 ,
  doip::PeriodicDiagnosticMessage = 0x8004
}
 DoIP Payload Type identifiers according to ISO 13400-2. More...
 

Functions

constexpr bool doip::isValidPayloadType (uint16_t value) noexcept
 Validates if a uint16_t value represents a valid DoIPPayloadType. More...
 
constexpr std::optional< DoIPPayloadType > doip::toPayloadType (uint16_t value) noexcept
 Safely converts uint16_t to DoIPPayloadType with validation. More...
 
constexpr std::optional< DoIPPayloadType > doip::toPayloadType (uint8_t hsb, uint8_t lsb) noexcept
 
std::ostream & doip::operator<< (std::ostream &os, DoIPPayloadType type)
 Stream operator for DoIPPayloadType enum. More...