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 | |
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... | |
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.
|
noexcept |
Function to create doip generic header.
[in] | payload_type | The type of payload |
[in] | payload_len | The length of payload |
Definition at line 141 of file doip_vehicle_identification_handler.cpp.
References doip_client::kDoip_ProtocolVersion.
Referenced by 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 161 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().