OpENer - Open Source EtherNet/IP(TM) I/O Target Stack  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedefs.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (c) 2009, Rockwell Automation, Inc.
3  * All rights reserved.
4  *
5  ******************************************************************************/
6 #ifndef OPENER_TYPEDEFS_H_
7 #define OPENER_TYPEDEFS_H_
8 
9 #include <inttypes.h>
10 #include <stddef.h>
11 #include <stdbool.h>
12 
28 typedef uint8_t EipByte;
29 typedef int8_t EipInt8;
30 typedef int16_t EipInt16;
31 typedef int32_t EipInt32;
32 typedef uint8_t EipUint8;
33 typedef uint16_t EipUint16;
34 typedef uint32_t EipUint32;
35 typedef float EipFloat;
36 typedef double EipDfloat;
37 typedef uint8_t EipBool8;
41 typedef uint8_t CipOctet;
42 typedef uint8_t CipBool;
43 typedef uint8_t CipByte;
44 typedef uint16_t CipWord;
45 typedef uint32_t CipDword;
46 typedef uint8_t CipUsint;
47 typedef uint16_t CipUint;
48 typedef uint32_t CipUdint;
49 typedef int8_t CipSint;
50 typedef int16_t CipInt;
51 typedef int32_t CipDint;
52 typedef float CipReal;
53 typedef double CipLreal;
55 #ifdef OPENER_SUPPORT_64BIT_DATATYPES
56 typedef int64_t EipInt64;
57 typedef uint64_t EipUint64;
59 typedef int64_t CipLint;
60 typedef uint64_t CipUlint;
61 typedef uint64_t CipLword;
62 #endif /* OPENER_SUPPORT_64BIT_DATATYPES */
63 
66 static const int kEipInvalidSocket = -1;
67 
68 typedef unsigned long MilliSeconds;
69 typedef unsigned long long MicroSeconds;
70 
93 typedef enum {
97 } EipStatus;
98 
104 typedef enum {
108 
109 #ifndef __cplusplus
110 
112 //typedef enum {
113 // false = 0, /**< defines "false" as 0 */
114 // true = 1 /**< defines "true" as 1 */
115 //} BoolKeywords;
116 #endif /* __cplusplus */
117 
118 #endif /* OPENER_TYPEDEFS_H_ */
float CipReal
Definition: typedefs.h:52
UdpCommuncationDirection
Communication direction of an UDP socket; consuming is receiver, producing is sender.
Definition: typedefs.h:104
int32_t CipDint
Definition: typedefs.h:51
unsigned long long MicroSeconds
Definition: typedefs.h:69
float EipFloat
Definition: typedefs.h:35
int16_t CipInt
Definition: typedefs.h:50
int8_t CipSint
Definition: typedefs.h:49
int32_t EipInt32
Definition: typedefs.h:31
uint8_t CipOctet
Data types as defined in the CIP Specification Vol 1 Appendix C.
Definition: typedefs.h:41
double EipDfloat
Definition: typedefs.h:36
EipStatus
EIP stack status enum.
Definition: typedefs.h:93
uint8_t EipUint8
Definition: typedefs.h:32
int8_t EipInt8
Definition: typedefs.h:29
uint32_t EipUint32
Definition: typedefs.h:34
uint8_t CipBool
Definition: typedefs.h:42
uint8_t CipByte
Definition: typedefs.h:43
double CipLreal
Definition: typedefs.h:53
uint8_t CipUsint
Definition: typedefs.h:46
uint8_t EipByte
EIP Data type definitions.
Definition: typedefs.h:28
int16_t EipInt16
Definition: typedefs.h:30
uint8_t EipBool8
Definition: typedefs.h:37
unsigned long MilliSeconds
Definition: typedefs.h:68
uint32_t CipUdint
Definition: typedefs.h:48
uint16_t CipUint
Definition: typedefs.h:47
uint32_t CipDword
Definition: typedefs.h:45
uint16_t CipWord
Definition: typedefs.h:44
uint16_t EipUint16
Definition: typedefs.h:33