OpENer - Open Source EtherNet/IP(TM) I/O Target Stack
2.1
|
OpENer configuration setup. More...
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/select.h>
#include <assert.h>
#include "typedefs.h"
#include "devicedata.h"
Go to the source code of this file.
Macros | |
#define | OPENER_ASSERT(assertion) |
#define | OPENER_CIP_NUM_APPLICATION_SPECIFIC_CONNECTABLE_OBJECTS 1 |
Identity configuration of the device. More... | |
#define | OPENER_CIP_NUM_EXLUSIVE_OWNER_CONNS 1 |
Define the number of supported exclusive owner connections. Each of these connections has to be configured with the function void configureExclusiveOwnerConnectionPoint(unsigned int pa_unConnNum, unsigned int pa_unOutputAssembly, unsigned int pa_unInputAssembly, unsigned int pa_unConfigAssembly) More... | |
#define | OPENER_CIP_NUM_EXPLICIT_CONNS 6 |
Define the number of supported explicit connections. According to ODVA's PUB 70 this number should be equal or greater than 6. More... | |
#define | OPENER_CIP_NUM_INPUT_ONLY_CONNS 1 |
Define the number of supported input only connections. Each of these connections has to be configured with the function void configureInputOnlyConnectionPoint(unsigned int pa_unConnNum, unsigned int pa_unOutputAssembly, unsigned int pa_unInputAssembly, unsigned int pa_unConfigAssembly) More... | |
#define | OPENER_CIP_NUM_INPUT_ONLY_CONNS_PER_CON_PATH 3 |
Define the number of supported input only connections per connection path. More... | |
#define | OPENER_CIP_NUM_LISTEN_ONLY_CONNS 1 |
Define the number of supported listen only connections. Each of these connections has to be configured with the function void configureListenOnlyConnectionPoint(unsigned int pa_unConnNum, unsigned int pa_unOutputAssembly, unsigned int pa_unInputAssembly, unsigned int pa_unConfigAssembly) More... | |
#define | OPENER_CIP_NUM_LISTEN_ONLY_CONNS_PER_CON_PATH 3 |
Define the number of supported Listen only connections per connection path. More... | |
#define | OPENER_MESSAGE_DATA_REPLY_BUFFER 100 |
The number of bytes used for the buffer that will be used for generating any reply data of messages. There are two uses in OpENer: More... | |
#define | OPENER_NUMBER_OF_SUPPORTED_SESSIONS 20 |
Number of sessions that can be handled at the same time. More... | |
#define | PC_OPENER_ETHERNET_BUFFER_SIZE 512 |
The number of bytes used for the Ethernet message buffer on the PC port. For different platforms it may makes sense to have more than one buffer. More... | |
OpENer configuration setup.
This file contains the general application specific configuration for OpENer.
Furthermore you have to specific platform specific network include files. OpENer needs definitions for the following data-types and functions:
Definition in file opener_user_conf.h.
#define OPENER_ASSERT | ( | assertion | ) |
Definition at line 125 of file opener_user_conf.h.
#define OPENER_CIP_NUM_APPLICATION_SPECIFIC_CONNECTABLE_OBJECTS 1 |
Identity configuration of the device.
Define the number of objects that may be used in connections
This number needs only to consider additional objects. Connections to the connection manager object as well as to the assembly object are supported in any case.
Definition at line 41 of file opener_user_conf.h.
#define OPENER_CIP_NUM_EXLUSIVE_OWNER_CONNS 1 |
Define the number of supported exclusive owner connections. Each of these connections has to be configured with the function void configureExclusiveOwnerConnectionPoint(unsigned int pa_unConnNum, unsigned int pa_unOutputAssembly, unsigned int pa_unInputAssembly, unsigned int pa_unConfigAssembly)
Definition at line 53 of file opener_user_conf.h.
#define OPENER_CIP_NUM_EXPLICIT_CONNS 6 |
Define the number of supported explicit connections. According to ODVA's PUB 70 this number should be equal or greater than 6.
Definition at line 46 of file opener_user_conf.h.
#define OPENER_CIP_NUM_INPUT_ONLY_CONNS 1 |
Define the number of supported input only connections. Each of these connections has to be configured with the function void configureInputOnlyConnectionPoint(unsigned int pa_unConnNum, unsigned int pa_unOutputAssembly, unsigned int pa_unInputAssembly, unsigned int pa_unConfigAssembly)
Definition at line 60 of file opener_user_conf.h.
#define OPENER_CIP_NUM_INPUT_ONLY_CONNS_PER_CON_PATH 3 |
Define the number of supported input only connections per connection path.
Definition at line 64 of file opener_user_conf.h.
#define OPENER_CIP_NUM_LISTEN_ONLY_CONNS 1 |
Define the number of supported listen only connections. Each of these connections has to be configured with the function void configureListenOnlyConnectionPoint(unsigned int pa_unConnNum, unsigned int pa_unOutputAssembly, unsigned int pa_unInputAssembly, unsigned int pa_unConfigAssembly)
Definition at line 71 of file opener_user_conf.h.
#define OPENER_CIP_NUM_LISTEN_ONLY_CONNS_PER_CON_PATH 3 |
Define the number of supported Listen only connections per connection path.
Definition at line 75 of file opener_user_conf.h.
#define OPENER_MESSAGE_DATA_REPLY_BUFFER 100 |
The number of bytes used for the buffer that will be used for generating any reply data of messages. There are two uses in OpENer:
Definition at line 82 of file opener_user_conf.h.
#define OPENER_NUMBER_OF_SUPPORTED_SESSIONS 20 |
Number of sessions that can be handled at the same time.
Definition at line 86 of file opener_user_conf.h.
#define PC_OPENER_ETHERNET_BUFFER_SIZE 512 |
The number of bytes used for the Ethernet message buffer on the PC port. For different platforms it may makes sense to have more than one buffer.
This buffer size will be used for any received message. The same buffer is used for the replied explicit message.
Definition at line 147 of file opener_user_conf.h.