OpENer - Open Source EtherNet/IP(TM) I/O Target Stack  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cipidentity.h File Reference
#include "typedefs.h"
#include "ciptypes.h"
Include dependency graph for cipidentity.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  CipIdentityExtendedStatus {
  kSelftestingUnknown = 0x0000, kFirmwareUpdateInProgress = 0x0010, kStatusAtLeastOneFaultedIoConnection = 0x0020, kNoIoConnectionsEstablished = 0x0030,
  kNonVolatileConfigurationBad = 0x0040, kMajorFault = 0x0050, kAtLeastOneIoConnectionInRunMode = 0x0060, kAtLeastOneIoConnectionEstablishedAllInIdleMode = 0x0070
}
 
enum  CipIdentityStatus {
  kOwned = 0x0001, kConfigured = 0x0004, kMinorRecoverableFault = 0x0100, kMinorUncoverableFault = 0x0200,
  kMajorRecoveralbeFault = 0x0400, kMajorUnrecoverableFault = 0x0800
}
 Status of the CIP Identity object. More...
 

Functions

EipStatus CipIdentityInit (void)
 CIP Identity object constructor. More...
 
void CipIdentitySetExtendedDeviceStatus (CipIdentityExtendedStatus extended_status)
 

Enumeration Type Documentation

Enumerator
kSelftestingUnknown 
kFirmwareUpdateInProgress 
kStatusAtLeastOneFaultedIoConnection 
kNoIoConnectionsEstablished 
kNonVolatileConfigurationBad 
kMajorFault 
kAtLeastOneIoConnectionInRunMode 
kAtLeastOneIoConnectionEstablishedAllInIdleMode 

Definition at line 33 of file cipidentity.h.

Status of the CIP Identity object.

Enumerator
kOwned 

Indicates that the device has an owner

kConfigured 

Indicates that the device is configured to do something different, than the out-of-the-box default.

kMinorRecoverableFault 

Indicates that the device detected a fault with itself, which was thought to be recoverable. The device did not switch to a faulted state.

kMinorUncoverableFault 

Indicates that the device detected a fault with itself, which was thought to be recoverable. The device did not switch to a faulted state.

kMajorRecoveralbeFault 

Indicates that the device detected a fault with itself,which was thought to be recoverable. The device changed to the "Major Recoverable Fault" state

kMajorUnrecoverableFault 

Indicates that the device detected a fault with itself,which was thought to be recoverable. The device changed to the "Major Unrecoverable Fault" state

Definition at line 15 of file cipidentity.h.

Function Documentation

EipStatus CipIdentityInit ( void  )

CIP Identity object constructor.

Returns
kEipStatusError if the class could not be created, otherwise kEipStatusOk

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void CipIdentitySetExtendedDeviceStatus ( CipIdentityExtendedStatus  extended_status)

Definition at line 185 of file cipidentity.c.

References OPENER_TRACE_INFO, and status_.

Referenced by HandleReceivedIoConnectionData(), and RunIdleChanged().

Here is the caller graph for this function: