|
libdoip
0.1.0
DoIP (Diagnostics over Internet Protocol) ISO 13400 C++17 Library
|
Factory functions for creating specific DoIP message types. More...
Factory functions for creating specific DoIP message types.
These functions provide a clean, type-safe interface for creating different types of DoIP messages without polluting the base class.
|
inline |
Create an 'alive check' request.
Definition at line 637 of file DoIPMessage.h.
References doip::AliveCheckRequest.
Referenced by doip::DoIPDefaultConnection::sendAliveCheckRequest().
|
inline |
Create an 'alive check' response.
| sa | the source address |
Definition at line 647 of file DoIPMessage.h.
References doip::AliveCheckResponse, and doip::ByteArray::writeU16BE().
Referenced by doip::DoIPClient::sendAliveCheckResponse().
|
inline |
Creates a diagnostic message.
| sa | the source address |
| ta | the target address |
| msg_payload | the original diagnostic messages (e.g. UDS message) |
Definition at line 567 of file DoIPMessage.h.
References doip::DiagnosticMessage, and doip::ByteArray::writeU16BE().
Referenced by doip::DoIPDefaultConnection::receiveDownstreamResponse(), doip::DoIPClient::sendDiagnosticMessage(), and doip::DoIPDefaultConnection::sendDownstreamResponse().
|
inline |
Creates a diagnostic negative ACK message (NACK).
| sa | the source address |
| ta | the target address |
| nack | the negative acknowledgment code |
| msg_payload | the original diagnostic messages (e.g. UDS message) |
Definition at line 615 of file DoIPMessage.h.
References doip::DiagnosticMessageNegativeAck, and doip::ByteArray::writeU16BE().
Referenced by doip::DoIPDefaultConnection::receiveDownstreamResponse(), and doip::DoIPDefaultConnection::sendDiagnosticMessageResponse().
|
inline |
void b
Creates a diagnostic positive ACK message.
| sa | the source address |
| ta | the target address |
| msg_payload | the original diagnostic messages (e.g. UDS message) |
Definition at line 590 of file DoIPMessage.h.
References doip::DIAGNOSTIC_MESSAGE_ACK, doip::DiagnosticMessageAck, and doip::ByteArray::writeU16BE().
Referenced by doip::DoIPDefaultConnection::sendDiagnosticMessageResponse().
|
inline |
Creates a generic DoIP negative response (NACK).
| nack | the negative response code |
Definition at line 555 of file DoIPMessage.h.
References doip::NegativeAck.
|
inline |
Creates a routing activation request message.
| ea | the entity address |
| actType | the activation type |
Definition at line 660 of file DoIPMessage.h.
References doip::RoutingActivationRequest, doip::ByteArray::writeEnum(), and doip::ByteArray::writeU16BE().
Referenced by doip::DoIPClient::sendRoutingActivationRequest().
|
inline |
Creates a routing activation response message.
| routingReq | the routing request message |
| ea | the entity address |
| actType | the activation type |
Definition at line 682 of file DoIPMessage.h.
References doip::DoIPMessage::getSourceAddress(), doip::RoutingActivationResponse, and doip::ByteArray::writeU16BE().
|
inline |
Creates a vehicle identification request message.
Definition at line 513 of file DoIPMessage.h.
References doip::VehicleIdentificationRequest.
Referenced by doip::DoIPClient::sendVehicleIdentificationRequest().
|
inline |
Creates a vehicle identification response message.
| vin | the vehicle identification number (VIN) |
| logicalAddress | the logical address of the entity |
| entityType | the entity identifier (EID) |
| groupId | the group identifier (GID) |
| furtherAction | the further action code |
| syncStatus | the synchronization status |
Definition at line 528 of file DoIPMessage.h.
References doip::GenericFixedId< IdLength, zeroPadding, padChar >::begin(), doip::GenericFixedId< IdLength, zeroPadding, padChar >::end(), doip::GenericFixedId< IdLength, zeroPadding, padChar >::size(), doip::VehicleIdentificationResponse, doip::ByteArray::writeEnum(), and doip::ByteArray::writeU16BE().