Diag-Client-Lib
|
Classes | |
class | kIdle |
Class implements idle state. More... | |
class | kSendDiagnosticReqFailed |
Class implements sending of diagnostic request failed. More... | |
class | kWaitForDiagnosticAck |
Class implements wait for diagnostic acknowledgement response. More... | |
class | kDiagnosticPositiveAckRecvd |
Class implements reception of diagnostic positive acknowledgement response. More... | |
class | kDiagnosticNegativeAckRecvd |
Class implements reception of diagnostic negative acknowledgement response. More... | |
class | kWaitForDiagnosticResponse |
Class implements wait for diagnostic message positive/negative response. More... | |
struct | DiagAckType |
Type holding acknowledgement type. More... | |
Enumerations | |
enum class | DiagnosticMessageState : std::uint8_t { kIdle = 0U , kSendDiagnosticReqFailed , kWaitForDiagnosticAck , kDiagnosticPositiveAckRecvd , kDiagnosticNegativeAckRecvd , kWaitForDiagnosticResponse , kDiagnosticFinalResRecvd } |
Different diagnostic message state. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &msg, DiagAckType diag_ack_type) |
Function to stream the diagnostic acknowledgement type. More... | |
auto | CreateDoipGenericHeader (std::uint16_t payload_type, std::uint32_t payload_len) noexcept -> std::vector< std::uint8_t > |
Function to create doip generic header. More... | |
Variables | |
constexpr std::uint16_t | kDoipDiagMessage {0x8001} |
Diagnostic message type. More... | |
constexpr std::uint16_t | kDoipDiagMessagePosAck {0x8002} |
constexpr std::uint16_t | kDoipDiagMessageNegAck {0x8003} |
constexpr std::uint8_t | kDoipDiagnosticMessageNegAckCodeInvalidSa {0x02} |
Diagnostic Message negative acknowledgement code. More... | |
constexpr std::uint8_t | kDoipDiagnosticMessageNegAckCodeUnknownTa {0x03} |
constexpr std::uint8_t | kDoipDiagnosticMessageNegAckCodeMessageTooLarge {0x04} |
constexpr std::uint8_t | kDoipDiagnosticMessageNegAckCodeOutOfMemory {0x05} |
constexpr std::uint8_t | kDoipDiagnosticMessageNegAckCodeTargetUnreachable {0x06} |
constexpr std::uint8_t | kDoipDiagnosticMessageNegAckCodeUnknownNetwork {0x07} |
constexpr std::uint8_t | kDoipDiagnosticMessageNegAckCodeTpError {0x08} |
constexpr std::uint8_t | kDoipDiagnosticMessagePosAckCodeConfirm {0x00} |
Diagnostic Message positive acknowledgement code. More... | |
constexpr std::uint8_t | kDoipDiagMessageReqResMinLen = 4U |
Diagnostic Message request/response lengths. More... | |
constexpr std::uint8_t | kDoipDiagMessageAckResMinLen = 5U |
constexpr std::uint32_t | kDoIPDiagnosticAckTimeout {2000u} |
The timeout specifies the maximum time that the test equipment waits for a confirmation ACK or NACK from the DoIP entity after the last byte of a DoIP Diagnostic request message has been sent. More... | |
|
strong |
Different diagnostic message state.
Enumerator | |
---|---|
kIdle | |
kSendDiagnosticReqFailed | |
kWaitForDiagnosticAck | |
kDiagnosticPositiveAckRecvd | |
kDiagnosticNegativeAckRecvd | |
kWaitForDiagnosticResponse | |
kDiagnosticFinalResRecvd |
Definition at line 68 of file doip_diagnostic_message_handler.cpp.
|
noexcept |
Function to create doip generic header.
[in] | payload_type | The type of payload |
[in] | payload_len | The length of payload |
Definition at line 268 of file doip_diagnostic_message_handler.cpp.
References doip_client::kDoip_ProtocolVersion.
Referenced by doip_client::channel::tcp_channel::DiagnosticMessageHandler::SendDiagnosticRequest().
std::ostream& doip_client::channel::tcp_channel::anonymous_namespace{doip_diagnostic_message_handler.cpp}::operator<< | ( | std::ostream & | msg, |
DiagAckType | diag_ack_type | ||
) |
Function to stream the diagnostic acknowledgement type.
Definition at line 231 of file doip_diagnostic_message_handler.cpp.
References doip_client::channel::tcp_channel::anonymous_namespace{doip_diagnostic_message_handler.cpp}::DiagAckType::ack_type_, kDoipDiagnosticMessageNegAckCodeInvalidSa, kDoipDiagnosticMessageNegAckCodeMessageTooLarge, kDoipDiagnosticMessageNegAckCodeOutOfMemory, kDoipDiagnosticMessageNegAckCodeTargetUnreachable, kDoipDiagnosticMessageNegAckCodeTpError, kDoipDiagnosticMessageNegAckCodeUnknownNetwork, and kDoipDiagnosticMessageNegAckCodeUnknownTa.
|
constexpr |
Diagnostic message type.
Definition at line 28 of file doip_diagnostic_message_handler.cpp.
Referenced by doip_client::channel::tcp_channel::DiagnosticMessageHandler::SendDiagnosticRequest().
|
constexpr |
Definition at line 52 of file doip_diagnostic_message_handler.cpp.
|
constexpr |
Definition at line 30 of file doip_diagnostic_message_handler.cpp.
Referenced by doip_client::channel::tcp_channel::DiagnosticMessageHandler::ProcessDoIPDiagnosticAckMessageResponse().
|
constexpr |
Definition at line 29 of file doip_diagnostic_message_handler.cpp.
Referenced by doip_client::channel::tcp_channel::DiagnosticMessageHandler::ProcessDoIPDiagnosticAckMessageResponse().
|
constexpr |
Diagnostic Message request/response lengths.
Definition at line 51 of file doip_diagnostic_message_handler.cpp.
Referenced by doip_client::channel::tcp_channel::DiagnosticMessageHandler::SendDiagnosticRequest().
|
constexpr |
The timeout specifies the maximum time that the test equipment waits for a confirmation ACK or NACK from the DoIP entity after the last byte of a DoIP Diagnostic request message has been sent.
Definition at line 63 of file doip_diagnostic_message_handler.cpp.
Referenced by doip_client::channel::tcp_channel::DiagnosticMessageHandler::HandleDiagnosticRequest().
|
constexpr |
Diagnostic Message negative acknowledgement code.
Definition at line 35 of file doip_diagnostic_message_handler.cpp.
Referenced by operator<<().
|
constexpr |
Definition at line 37 of file doip_diagnostic_message_handler.cpp.
Referenced by operator<<().
|
constexpr |
Definition at line 38 of file doip_diagnostic_message_handler.cpp.
Referenced by operator<<().
|
constexpr |
Definition at line 39 of file doip_diagnostic_message_handler.cpp.
Referenced by operator<<().
|
constexpr |
Definition at line 41 of file doip_diagnostic_message_handler.cpp.
Referenced by operator<<().
|
constexpr |
Definition at line 40 of file doip_diagnostic_message_handler.cpp.
Referenced by operator<<().
|
constexpr |
Definition at line 36 of file doip_diagnostic_message_handler.cpp.
Referenced by operator<<().
|
constexpr |
Diagnostic Message positive acknowledgement code.
Definition at line 46 of file doip_diagnostic_message_handler.cpp.
Referenced by doip_client::channel::tcp_channel::DiagnosticMessageHandler::ProcessDoIPDiagnosticAckMessageResponse().