Data Acquisition Framework
API for Tags Programming
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Modules
Modbus.h
Go to the documentation of this file.
1 
7 #ifndef _MXIDAF_MODBUS_H_
8 #define _MXIDAF_MODBUS_H_
9 
10 #include <mxidaf/TagV2.h>
11 
12 #ifdef __cplusplus
13 extern "C"
14 {
15 #endif
16 
28 typedef struct mxmodbus_ mxmodbus;
29 
42 mxmodbus *
43  mxmodbus_new();
44 
45 
54 void
56  mxmodbus *self
57  );
58 
67 int
69  mxmodbus *self,
70  const char *equipment_name,
71  const char *tag_name,
72  int timeout_ms,
73  value_t *value,
74  value_type_t *value_type
75  );
76 
85 int
87  mxmodbus *self,
88  const char *equipment_name,
89  const char *tag_name,
90  int timeout_ms,
91  value_t value,
92  value_type_t value_type
93  );
94 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif
mxmodbus * mxmodbus_new()
Create mxmodbus.
Tag object.
Value.
Definition: TagV2.h:61
int mxmodbus_write(mxmodbus *self, const char *equipment_name, const char *tag_name, int timeout_ms, value_t value, value_type_t value_type)
Write Modbus tag.
int mxmodbus_read(mxmodbus *self, const char *equipment_name, const char *tag_name, int timeout_ms, value_t *value, value_type_t *value_type)
Read Modbus tag.
void mxmodbus_delete(mxmodbus *self)
Delete mxmodbus instance.
value_type_t
Tag value type.
Definition: TagV2.h:76
struct mxmodbus_ mxmodbus
mxmodbus instance
Definition: Modbus.h:28