6 #ifndef OPENER_CIPTYPES_H_
7 #define OPENER_CIPTYPES_H_
10 #include "networkhandler.h"
13 #include "opener_user_conf.h"
194 #define MAX_SIZE_OF_ADD_STATUS 2
281 struct sockaddr *originator_address,
282 const int encapsulation_session);
327 #define MASK1(a) ( 1 << (a) )
328 #define MASK2(a, b) ( 1 << (a) | 1 << (b) )
329 #define MASK3(a, b, c) ( 1 << (a) | 1 << (b) | 1 << (c) )
330 #define MASK4(a, b, c, d) ( 1 << (a) | 1 << (b) | 1 << (c) | 1 << (d) )
331 #define MASK5(a, b, c, d, e) \
332 ( 1 << (a) | 1 << (b) | 1 << (c) | 1 << (d) | 1 << (e) )
333 #define MASK6(a, b, c, d, e, f) \
334 ( 1 << (a) | 1 << (b) | 1 << (c) | 1 << (d) | 1 << (e) | 1 << (f) )
335 #define MASK7(a, b, c, d, e, f, g) \
336 ( 1 << (a) | 1 << (b) | 1 << (c) | 1 << (d) | 1 << (e) | 1 << (f) | 1 << (g) )
337 #define MASK8(a, b, c, d, e, f, g, h) \
338 ( 1 << (a) | 1 << (b) | 1 << (c) | 1 << (d) | 1 << (e) | 1 << (f) | \
339 1 << (g) | 1 << (h) )
struct cip_class CipClass
Class is a subclass of Instance.
Struct for padded EPATHs.
struct cip_service_struct * services
EipUint16 attribute_number
EipUint16 number_of_instances
EipUint16 number_of_attributes
CipAttributeStruct * attributes
EipStatus(* CipServiceFunction)(CipInstance *const instance, CipMessageRouterRequest *const message_router_request, CipMessageRouterResponse *const message_router_response, struct sockaddr *originator_address, const int encapsulation_session)
Signature definition for the implementation of CIP services.
CIP Message Router Request.
Class is a subclass of Instance.
CipServiceFunction service_function
EipUint32 get_attribute_all_mask
enum cip_data_types CipDataType
Enum containing the encoding values for CIP data types for CIP Messages.
uint8_t * get_single_bit_mask
#define MAX_SIZE_OF_ADD_STATUS
CIPServiceCode
Definition of CIP service codes.
CIPAttributeFlag attribute_flags
uint8_t CipOctet
Data types as defined in the CIP Specification Vol 1 Appendix C.
CIPAttributeFlag
Definition of Get and Set Flags for CIP Attributes.
EipStatus
EIP stack status enum.
CipInstance class_instance
struct cip_instance * next
struct cip_service_struct CipServiceStruct
Service descriptor. These are stored in an array.
cip_data_types
Enum containing the encoding values for CIP data types for CIP Messages.
enum connection_point_type ConnectionPointType
Service descriptor. These are stored in an array.
Struct for saving TCP/IP interface information.
EipUint16 instance_number
EipUint16 number_of_services
EipUint16 attribute_number
uint8_t EipByte
EIP Data type definitions.
struct cip_instance CipInstance
EipUint16 highest_attribute_number
Struct storing the CIP revision.
CIP Message Router Response.
EipUint16 message_request_size
struct cip_class * cip_class
CipMessageRouterRequest message_request
CipMessageRouterResponse * message_response
EipUint32 instance_number
EipInt16 request_path_size
uint8_t * get_all_bit_mask
CipUsint size_of_additional_status