MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / GetElectronicKeyFormat4FromMessage

Function GetElectronicKeyFormat4FromMessage

source/src/cip/cipepath.c:441–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441void GetElectronicKeyFormat4FromMessage(
442 const CipOctet **const message,
443 ElectronicKeyFormat4 *key) {
444 OPENER_ASSERT( kElectronicKeySegmentFormatKeyFormat4 ==
445 GetPathLogicalSegmentElectronicKeyFormat(*message) )
446
447 MoveMessageNOctets(2, message);
448 ElectronicKeyFormat4SetVendorId(key, GetIntFromMessage(message) );
449 ElectronicKeyFormat4SetDeviceType(key, GetIntFromMessage(message) );
450 ElectronicKeyFormat4SetProductCode(key, GetIntFromMessage(message) );
451 ElectronicKeyFormat4SetMajorRevisionCompatibility(key,
452 GetSintFromMessage(message) );
453 ElectronicKeyFormat4SetMinorRevision(key, GetSintFromMessage(message) );
454}
455
456/*** Logical Segment ***/
457

Callers 3

ParseConnectionPathFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68