Vehicle announcement ID response message. More...
#include <vehicle_id_response.h>
Public Member Functions | |
VehicleIdResponse (uint8_t protocolVersion, const std::string &vin, uint16_t logicalAddress, std::array< uint8_t, cIdSize > eid, std::array< uint8_t, cIdSize > gid, uint8_t furtherAction) | |
Constructor without optional VIN/GID synchronization. More... | |
VehicleIdResponse (uint8_t protocolVersion, std::string &&vin, uint16_t logicalAddress, std::array< uint8_t, cIdSize > eid, std::array< uint8_t, cIdSize > gid, uint8_t furtherAction) | |
Constructor without optional VIN/GID synchronization. More... | |
VehicleIdResponse (uint8_t protocolVersion, const std::string &vin, uint16_t logicalAddress, std::array< uint8_t, cIdSize > eid, std::array< uint8_t, cIdSize > gid, uint8_t furtherAction, uint8_t vinGidStatus) | |
Constructor using VIN/GID synchronization. More... | |
VehicleIdResponse (uint8_t protocolVersion, std::string &&vin, uint16_t logicalAddress, std::array< uint8_t, cIdSize > eid, std::array< uint8_t, cIdSize > gid, uint8_t furtherAction, uint8_t vinGidStatus) | |
Constructor using VIN/GID synchronization. More... | |
std::string | GetVin () const |
Get VIN. More... | |
uint16_t | GetLogicalAddress () const noexcept |
Get logical address. More... | |
std::array< uint8_t, cIdSize > | GetEid () const |
Get EID. More... | |
std::array< uint8_t, cIdSize > | GetGid () const |
Get GID. More... | |
uint8_t | GetFurtherAction () const noexcept |
Get further action. More... | |
bool | TryGetVinGinStatus (uint8_t &vinGinStatus) const noexcept |
Try to get the VIN/GIN status. More... | |
Public Member Functions inherited from DoipLib::Message | |
void | Serialize (std::vector< uint8_t > &serializedMessage) const |
Serialize DoIP message. More... | |
bool | TryDeserialize (const std::vector< uint8_t > &serializedMessage, GenericNackType &nackCode) |
Try to deserialize DoIP message. More... | |
Protected Member Functions | |
void | GetPayload (std::vector< uint8_t > &payload) const override |
Get message payload. More... | |
virtual bool | TrySetPayload (const std::vector< uint8_t > &payload, uint32_t payloadLength) override |
Try to set message payload. More... | |
Protected Member Functions inherited from DoipLib::Message | |
Message (PayloadType payloadType) noexcept | |
Constructor. More... | |
Message (uint8_t protocolVersion, PayloadType payloadType) noexcept | |
Constructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from DoipLib::Message | |
static bool | TryExtractPayloadType (const std::vector< uint8_t > &serializedMessage, PayloadType &payloadType) |
Try to extract the payload type from the given serialized message. More... | |
Static Protected Attributes inherited from DoipLib::Message | |
static const std::size_t | cHeaderSize {8} |
DoIP message header size. | |
Vehicle announcement ID response message.
DoipLib::VehicleIdResponse::VehicleIdResponse | ( | uint8_t | protocolVersion, |
const std::string & | vin, | ||
uint16_t | logicalAddress, | ||
std::array< uint8_t, cIdSize > | eid, | ||
std::array< uint8_t, cIdSize > | gid, | ||
uint8_t | furtherAction | ||
) |
Constructor without optional VIN/GID synchronization.
protocolVersion | DoIP ISO protocol version |
vin | Vehicle ID number (VIN) |
logicalAddress | Entity logical address |
eid | Entity ID |
gid | Group ID (GID) |
furtherAction | Further action byte |
std::out_of_range | Throws if the given VIN is invalid |
DoipLib::VehicleIdResponse::VehicleIdResponse | ( | uint8_t | protocolVersion, |
std::string && | vin, | ||
uint16_t | logicalAddress, | ||
std::array< uint8_t, cIdSize > | eid, | ||
std::array< uint8_t, cIdSize > | gid, | ||
uint8_t | furtherAction | ||
) |
Constructor without optional VIN/GID synchronization.
protocolVersion | DoIP ISO protocol version |
vin | Vehicle ID number (VIN) |
logicalAddress | Entity logical address |
eid | Entity ID |
gid | Group ID (GID) |
furtherAction | Further action byte |
std::out_of_range | Throws if the given VIN is invalid |
DoipLib::VehicleIdResponse::VehicleIdResponse | ( | uint8_t | protocolVersion, |
const std::string & | vin, | ||
uint16_t | logicalAddress, | ||
std::array< uint8_t, cIdSize > | eid, | ||
std::array< uint8_t, cIdSize > | gid, | ||
uint8_t | furtherAction, | ||
uint8_t | vinGidStatus | ||
) |
Constructor using VIN/GID synchronization.
protocolVersion | DoIP ISO protocol version |
vin | Vehicle ID number (VIN) |
logicalAddress | Entity logical address |
eid | Entity ID |
gid | Group ID (GID) |
furtherAction | Further action byte |
vinGidStatus | VIN/GID synchronization status |
std::out_of_range | Throws if the given VIN is invalid |
DoipLib::VehicleIdResponse::VehicleIdResponse | ( | uint8_t | protocolVersion, |
std::string && | vin, | ||
uint16_t | logicalAddress, | ||
std::array< uint8_t, cIdSize > | eid, | ||
std::array< uint8_t, cIdSize > | gid, | ||
uint8_t | furtherAction, | ||
uint8_t | vinGidStatus | ||
) |
Constructor using VIN/GID synchronization.
protocolVersion | DoIP ISO protocol version |
vin | Vehicle ID number (VIN) |
logicalAddress | Entity logical address |
eid | Entity ID |
gid | Group ID (GID) |
furtherAction | Further action byte |
vinGidStatus | VIN/GID synchronization status |
std::out_of_range | Throws if the given VIN is invalid |
std::array< uint8_t, cIdSize > DoipLib::VehicleIdResponse::GetEid | ( | ) | const |
Get EID.
|
noexcept |
Get further action.
std::array< uint8_t, cIdSize > DoipLib::VehicleIdResponse::GetGid | ( | ) | const |
Get GID.
|
noexcept |
Get logical address.
|
overrideprotectedvirtual |
std::string DoipLib::VehicleIdResponse::GetVin | ( | ) | const |
Get VIN.
|
noexcept |
Try to get the VIN/GIN status.
[out] | vinGinStatus | VIN/GIN synchronization status |
|
overrideprotectedvirtual |
Try to set message payload.
[in] | payload | Payload byte array |
[in] | payloadLength | Payload length from the message header |
Implements DoipLib::Message.