| OpENer - Open Source EtherNet/IP(TM)  I/O Target Stack
    2.1
    | 
#include <string.h>#include "cipidentity.h"#include "opener_user_conf.h"#include "cipcommon.h"#include "cipmessagerouter.h"#include "ciperror.h"#include "endianconv.h"#include "opener_api.h"#include "trace.h"Go to the source code of this file.
| Functions | |
| EipStatus | CipIdentityInit () | 
| CIP Identity object constructor.  More... | |
| CipIdentitySetExtendedDeviceStatus (CipIdentityExtendedStatus extended_status) | |
| void | InitializeCipIdentiy (CipClass *class) | 
| void | SetDeviceSerialNumber (const EipUint32 serial_number) | 
| Set the serial number of the device's identity object.  More... | |
| void | SetDeviceStatus (const EipUint16 status) | 
| Private function, sets the devices status.  More... | |
Definition in file cipidentity.c.
| EipStatus CipIdentityInit | ( | void | ) | 
CIP Identity object constructor.
Definition at line 148 of file cipidentity.c.
References CreateCipClass(), device_type_, GetAttributeAll(), GetAttributeSingle(), GetCipInstance(), InitializeCipIdentiy(), InsertAttribute(), InsertService(), kCipShortString, kCipUdint, kCipUint, kCipUsintUsint, kCipWord, kEipStatusError, kEipStatusOk, kGetableSingleAndAll, kGetAttributeAll, kGetAttributeSingle, kReset, product_code_, serial_number_, status_, and vendor_id_.
Referenced by CipStackInit().
| CipIdentitySetExtendedDeviceStatus | ( | CipIdentityExtendedStatus | extended_status | ) | 
Definition at line 185 of file cipidentity.c.
References OPENER_TRACE_INFO, and status_.
Referenced by HandleReceivedIoConnectionData(), and RunIdleChanged().
| void InitializeCipIdentiy | ( | CipClass * | class | ) | 
Definition at line 123 of file cipidentity.c.
References cip_instance::cip_class, cip_class::class_instance, cip_class::highest_attribute_number, InsertAttribute(), kCipUint, kGetableSingleAndAll, kGetAttributeSingle, and kNotSetOrGetable.
Referenced by CipIdentityInit().
| CipUint device_type_ = OPENER_DEVICE_TYPE | 
Attribute 2: Device Type
Definition at line 42 of file cipidentity.c.
Referenced by CheckElectronicKeyData(), CipIdentityInit(), and EncapsulateListIdentityResponseMessage().
| CipUint product_code_ = OPENER_DEVICE_PRODUCT_CODE | 
Attribute 3: Product Code
Definition at line 43 of file cipidentity.c.
Referenced by CheckElectronicKeyData(), CipIdentityInit(), and EncapsulateListIdentityResponseMessage().
| CipShortString product_name_ | 
Attribute 7: Product Name
Definition at line 48 of file cipidentity.c.
| CipRevision revision_ | 
Attribute 4: Revision / USINT Major, USINT Minor
Definition at line 44 of file cipidentity.c.
| CipUdint serial_number_ = 0 | 
Attribute 6: Serial Number, has to be set prior to OpENer initialization
Definition at line 47 of file cipidentity.c.
Referenced by CipIdentityInit(), EncapsulateListIdentityResponseMessage(), and SetDeviceSerialNumber().
| CipWord status_ = 0 | 
Attribute 5: Status
Definition at line 46 of file cipidentity.c.
Referenced by CipIdentityInit(), CipIdentitySetExtendedDeviceStatus(), EncapsulateListIdentityResponseMessage(), and SetDeviceStatus().
| CipUint vendor_id_ = OPENER_DEVICE_VENDOR_ID | 
Attribute 1: Vendor ID
Definition at line 41 of file cipidentity.c.
Referenced by CheckElectronicKeyData(), CipIdentityInit(), and EncapsulateListIdentityResponseMessage().