Diag-Client-Lib
|
Classes | |
class | kIdle |
Class implements idle state. More... | |
class | kSendVehicleIdentificationReq |
Class implements sending of vehicle identification request state. More... | |
class | kWaitForVehicleIdentificationRes |
Class implements wait for vehicle identification response state. More... | |
class | kDoIPCtrlTimeout |
Class implements Ctrl timeout state. More... | |
Typedefs | |
using | VehiclePayloadType = std::pair< std::uint16_t, std::uint8_t > |
Type alias of vehicle payload type. More... | |
Enumerations | |
enum class | VehicleIdentificationState : std::uint8_t { kIdle = 0U , kSendVehicleIdentificationReq , kWaitForVehicleIdentificationRes , kDoIPCtrlTimeout } |
Different vehicle identification state. More... | |
Functions | |
void | CreateDoipGenericHeader (std::vector< std::uint8_t > &doip_header_buffer, std::uint16_t payload_type, std::uint32_t payload_len) |
Create the doip generic header. More... | |
auto | GetVehicleIdentificationPayloadType (std::uint8_t preselection_mode) noexcept -> VehiclePayloadType |
Get the vehicle identification payload type based on preselection mode. More... | |
using doip_client::channel::udp_channel::anonymous_namespace{doip_vehicle_identification_handler.cpp}::VehiclePayloadType = typedef std::pair<std::uint16_t, std::uint8_t> |
Type alias of vehicle payload type.
Definition at line 25 of file doip_vehicle_identification_handler.cpp.
|
strong |
Different vehicle identification state.
Enumerator | |
---|---|
kIdle | |
kSendVehicleIdentificationReq | |
kWaitForVehicleIdentificationRes | |
kDoIPCtrlTimeout |
Definition at line 30 of file doip_vehicle_identification_handler.cpp.
void doip_client::channel::udp_channel::anonymous_namespace{doip_vehicle_identification_handler.cpp}::CreateDoipGenericHeader | ( | std::vector< std::uint8_t > & | doip_header_buffer, |
std::uint16_t | payload_type, | ||
std::uint32_t | payload_len | ||
) |
Create the doip generic header.
Definition at line 133 of file doip_vehicle_identification_handler.cpp.
References doip_client::kDoip_ProtocolVersion.
Referenced by doip_client::channel::tcp_channel::DiagnosticMessageHandler::SendDiagnosticRequest(), doip_client::channel::tcp_channel::RoutingActivationHandler::SendRoutingActivationRequest(), and doip_client::channel::udp_channel::VehicleIdentificationHandler::SendVehicleIdentificationRequest().
|
noexcept |
Get the vehicle identification payload type based on preselection mode.
[in] | preselection_mode | The preselection mode |
Definition at line 151 of file doip_vehicle_identification_handler.cpp.
References doip_client::kDoip_VehicleIdentification_ReqLen, doip_client::kDoip_VehicleIdentification_ReqType, doip_client::kDoip_VehicleIdentificationEID_ReqLen, doip_client::kDoip_VehicleIdentificationEID_ReqType, doip_client::kDoip_VehicleIdentificationVIN_ReqLen, and doip_client::kDoip_VehicleIdentificationVIN_ReqType.
Referenced by doip_client::channel::udp_channel::VehicleIdentificationHandler::SendVehicleIdentificationRequest().