7 #ifndef SRC_CIP_CIPELECTRONICKEY_H_
8 #define SRC_CIP_CIPELECTRONICKEY_H_
void ElectronicKeyFormat4SetMajorRevisionCompatibility(ElectronicKeyFormat4 *const electronic_key, const CipByte major_revision_compatibility)
Sets the major revision byte including the compatibility flag.
CipUsint ElectronicKeyFormat4GetMinorRevision(const ElectronicKeyFormat4 *const electronic_key)
Gets the minor revision from an format 4 electronic key.
CipUint ElectronicKeyFormat4GetDeviceType(const ElectronicKeyFormat4 *const electronic_key)
Gets the device type from a format 4 electronic key.
const size_t kElectronicKeyFormat4Size
CipUint ElectronicKeyFormat4GetVendorId(const ElectronicKeyFormat4 *const electronic_key)
Gets the vendor ID form the electronic key.
void ElectronicKeyFormat4SetMinorRevision(ElectronicKeyFormat4 *const electronic_key, const CipUsint minor_revision)
Sets the devices minor revision in an format 4 electronic key.
void ElectronicKeyFormat4SetDeviceType(ElectronicKeyFormat4 *const electronic_key, const CipUint device_type)
Sets the device type in the electronic key.
CIP Electronic Key Segment struct.
CipByte ElectronicKeyFormat4GetMajorRevision(const ElectronicKeyFormat4 *const electronic_key)
Gets the major revision from an format 4 electronic key.
CipUsint ElectronicKeyGetSegmentType(const CipElectronicKey *const electronic_key)
void ElectronicKeyFormat4SetProductCode(ElectronicKeyFormat4 *const electronic_key, const CipUint product_code)
Set product code in the electronic key.
void ElectronicKeySetSegmentType(CipElectronicKey *const electronic_key, const CipUsint segment_type)
bool ElectronicKeyFormat4GetMajorRevisionCompatibility(const ElectronicKeyFormat4 *const electronic_key)
Gets the Compatibility flag from the format 4 electronic key.
CipUint ElectronicKeyGetKeyFormat(const CipElectronicKey *const electronic_key)
void ElectronicKeyFormat4SetVendorId(ElectronicKeyFormat4 *const electronic_key, const CipUint vendor_id)
Sets vendor ID in the electronic key.
void ElectronicKeyFormat4Delete(ElectronicKeyFormat4 **electronic_key)
Destructor for the electroic key format 4 class.
ElectronicKeyFormat4 * ElectronicKeyFormat4New()
Constructor for the electroic key format 4 class.
CipUint ElectronicKeyFormat4GetProductCode(const ElectronicKeyFormat4 *const electronic_key)
Gets the product code from an format 4 electronic key.
segment_type
Segment type Enum.
void ElectronicKeySetKeyFormat(CipElectronicKey *const electronic_key, const CipUsint key_format)
void ElectronicKeySetKeyData(CipElectronicKey *const electronic_key, void *key_data)
void * ElectronicKeyGetKeyData(const CipElectronicKey *const electronic_key)