|
| DoIpVehicleAnnouncementMessage (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
| Constructs the layer from raw DoIP packet data. More...
|
|
| DoIpVehicleAnnouncementMessage (const std::array< uint8_t, DOIP_VIN_LEN > &vin, uint16_t logicalAddress, const std::array< uint8_t, DOIP_EID_LEN > &eid, const std::array< uint8_t, DOIP_GID_LEN > &gid, DoIpActionCodes actionCode) |
| Constructs the message using specified field values. More...
|
|
std::array< uint8_t, DOIP_VIN_LEN > | getVIN () const |
| Gets the Vehicle Identification Number (VIN). More...
|
|
void | setVIN (const std::array< uint8_t, DOIP_VIN_LEN > &vin) |
| Sets the Vehicle Identification Number (VIN). More...
|
|
uint16_t | getLogicalAddress () const |
| Gets the logical address of the vehicle. More...
|
|
void | setLogicalAddress (uint16_t address) |
| Sets the logical address. More...
|
|
std::array< uint8_t, DOIP_EID_LEN > | getEID () const |
| Gets the Entity Identifier (EID). More...
|
|
void | setEID (const std::array< uint8_t, DOIP_EID_LEN > &eid) |
| Sets the Entity Identifier (EID). More...
|
|
std::array< uint8_t, DOIP_GID_LEN > | getGID () const |
| Gets the Group Identifier (GID). More...
|
|
void | setGID (const std::array< uint8_t, DOIP_GID_LEN > &gid) |
| Sets the Group Identifier (GID). More...
|
|
DoIpActionCodes | getFurtherActionRequired () const |
| Gets the further action required code. More...
|
|
void | setFurtherActionRequired (DoIpActionCodes action) |
| Sets the further action required code. More...
|
|
DoIpSyncStatus | getSyncStatus () const |
| Gets the optional synchronization status if available. More...
|
|
void | setSyncStatus (DoIpSyncStatus sync) |
| Sets the synchronization status. More...
|
|
bool | hasSyncStatus () const |
| Checks whether the sync status is present. More...
|
|
void | clearSyncStatus () |
| Clears the optional sync status field.
|
|
std::string | getSummary () const |
| Returns a human-readable summary of the message.
|
|
DoIpPayloadTypes | getPayloadType () const override |
| Returns the DoIP payload type.
|
|
std::string | getPayloadTypeAsStr () const |
|
DoIpProtocolVersion | getProtocolVersion () const |
|
std::string | getProtocolVersionAsStr () const |
|
void | setProtocolVersion (DoIpProtocolVersion version) |
|
void | setProtocolVersion (uint8_t rawVersion) |
|
uint8_t | getInvertProtocolVersion () const |
|
void | setInvertProtocolVersion (uint8_t iVersion) |
|
uint32_t | getPayloadLength () const |
|
void | setPayloadLength (uint32_t length) |
|
void | parseNextLayer () override |
| parse UDS layer
|
|
size_t | getHeaderLen () const override |
|
std::string | toString () const override |
|
void | computeCalculateFields () override |
| Each layer can compute field values automatically using this method. This is an abstract method.
|
|
OsiModelLayer | getOsiModelLayer () const override |
|
| ~Layer () override |
|
Layer * | getNextLayer () const |
|
Layer * | getPrevLayer () const |
|
ProtocolType | getProtocol () const |
|
bool | isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) const |
|
uint8_t * | getData () const |
|
size_t | getDataLen () const |
|
uint8_t * | getLayerPayload () const |
|
size_t | getLayerPayloadSize () const |
|
bool | isAllocatedToPacket () const |
|
void | copyData (uint8_t *toArr) const |
|
uint8_t * | getDataPtr (size_t offset=0) const override |
|
|
template<typename T , typename... Args> |
Layer * | constructNextLayer (uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
|
template<typename T , typename TFallback , typename... Args> |
Layer * | tryConstructNextLayerWithFallback (uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
|
template<typename T > |
static bool | canReinterpretAs (const uint8_t *data, size_t dataLen) |
| Check if the data is large enough to reinterpret as a type. More...
|
|
Represents a DoIP Vehicle Announcement message.
This message is broadcasted by a vehicle to announce its presence, including VIN, logical address, EID, GID, and optionally synchronization status.