11 #define DEMO_APP_INPUT_ASSEMBLY_NUM 100 //0x064
12 #define DEMO_APP_OUTPUT_ASSEMBLY_NUM 150 //0x096
13 #define DEMO_APP_CONFIG_ASSEMBLY_NUM 151 //0x097
14 #define DEMO_APP_HEARTBEAT_INPUT_ONLY_ASSEMBLY_NUM 152 //0x098
15 #define DEMO_APP_HEARTBEAT_LISTEN_ONLY_ASSEMBLY_NUM 153 //0x099
16 #define DEMO_APP_EXPLICT_ASSEMBLY_NUM 154 //0x09A
71 unsigned int pa_unInputAssembly,
75 (void) pa_unOutputAssembly;
76 (void) pa_unInputAssembly;
77 (void) pa_eIOConnectionEvent;
137 unsigned pa_nSizeOfElement) {
138 return calloc(pa_nNumberOfElements, pa_nSizeOfElement);
146 (void) pa_nRunIdleValue;
EipStatus ApplicationInitialization(void)
Callback for the application initialization.
#define DEMO_APP_INPUT_ASSEMBLY_NUM
#define DEMO_APP_EXPLICT_ASSEMBLY_NUM
EipUint8 g_assembly_data064[40]
CipInstance * CreateAssemblyObject(const EipUint32 instance_id, EipByte *const data, const EipUint16 data_length)
Create an instance of an assembly object.
#define DEMO_APP_HEARTBEAT_INPUT_ONLY_ASSEMBLY_NUM
CipUint g_encapsulation_inactivity_timeout
#13 Number of seconds of inactivity before TCP connection is closed
void CheckIoConnectionEvent(unsigned int pa_unOutputAssembly, unsigned int pa_unInputAssembly, IoConnectionEvent pa_eIOConnectionEvent)
Inform the application on changes occurred for a connection.
void * CipCalloc(size_t pa_nNumberOfElements, size_t pa_nSizeOfElement)
Allocate memory for the CIP stack.
void ConfigureListenOnlyConnectionPoint(const unsigned int connection_number, const unsigned int output_assembly, const unsigned int input_assembly, const unsigned int config_assembly)
Configures the connection point for a listen only connection.
EipStatus
EIP stack status enum.
void HandleApplication(void)
Allow the device specific application to perform its execution.
EipStatus ResetDevice(void)
Emulate as close a possible a power cycle of the device.
void ConfigureInputOnlyConnectionPoint(const unsigned int connection_number, const unsigned int output_assembly, const unsigned int input_assembly, const unsigned int config_assembly)
Configures the connection point for an input only connection.
EipStatus AfterAssemblyDataReceived(CipInstance *pa_pstInstance)
Call back function to inform application on received data for an assembly object. ...
EipUint8 g_assembly_data09A[32]
void CipFree(void *pa_poData)
Free memory allocated by the OpENer.
void ConfigureExclusiveOwnerConnectionPoint(const unsigned int connection_number, const unsigned int output_assembly, const unsigned int input_assembly, const unsigned int config_assembly)
Configures the connection point for an exclusive owner connection.
#define DEMO_APP_HEARTBEAT_LISTEN_ONLY_ASSEMBLY_NUM
void CloseAllConnections(void)
EipStatus ResetDeviceToInitialConfiguration(void)
Reset the device to the initial configuration and emulate as close as possible a power cycle of the d...
EipUint8 g_assembly_data097[10]
void RunIdleChanged(EipUint32 pa_nRunIdleValue)
Inform the application that the Run/Idle State has been changed by the originator.
#define DEMO_APP_CONFIG_ASSEMBLY_NUM
EipUint8 g_assembly_data096[40]
EipBool8 BeforeAssemblyDataSend(CipInstance *pa_pstInstance)
Inform the application that the data of an assembly object will be sent.
#define DEMO_APP_OUTPUT_ASSEMBLY_NUM
EipUint32 instance_number