16 #define DEMO_APP_INPUT_ASSEMBLY_NUM 100 //0x064
17 #define DEMO_APP_OUTPUT_ASSEMBLY_NUM 150 //0x096
18 #define DEMO_APP_CONFIG_ASSEMBLY_NUM 151 //0x097
19 #define DEMO_APP_HEARTBEAT_INPUT_ONLY_ASSEMBLY_NUM 152 //0x098
20 #define DEMO_APP_HEARTBEAT_LISTEN_ONLY_ASSEMBLY_NUM 153 //0x099
21 #define DEMO_APP_EXPLICT_ASSEMBLY_NUM 154 //0x09A
76 unsigned int input_assembly_id,
80 (void) output_assembly_id;
81 (void) input_assembly_id;
82 (void) io_connection_event;
110 "Unknown assembly instance ind AfterAssemblyDataReceived");
146 size_t size_of_element) {
147 return calloc(number_of_elements, size_of_element);
156 if((0x0001 & run_idle_value) == 1) {
161 (void) run_idle_value;
EipStatus ApplicationInitialization(void)
Callback for the application initialization.
Tracing infrastructure for OpENer.
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_LISTEN_ONLY_ASSEMBLY_NUM
#define DEMO_APP_EXPLICT_ASSEMBLY_NUM
CipUint g_encapsulation_inactivity_timeout
#13 Number of seconds of inactivity before TCP connection is closed
#define DEMO_APP_CONFIG_ASSEMBLY_NUM
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]
#define OPENER_TRACE_INFO(...)
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.
CipIdentitySetExtendedDeviceStatus(CipIdentityExtendedStatus extended_status)
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_INPUT_ASSEMBLY_NUM
#define DEMO_APP_OUTPUT_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.
EipUint32 instance_number
#define DEMO_APP_HEARTBEAT_INPUT_ONLY_ASSEMBLY_NUM