@@ -120,6 +120,23 @@ A libmodbus 'context' is thread safe and may be shared among as many application
120
120
threads as necessary, without any additional locking required on the part of the
121
121
caller.
122
122
123
+ Macros for data manipulation::
124
+ MODBUS_GET_HIGH_BYTE(data), extracts the high byte from a byte
125
+ MODBUS_GET_LOW_BYTE(data), extracts the low byte from a byte
126
+ MODBUS_GET_INT32_FROM_INT16(tab_int16, index), builds an int32 from the two
127
+ first int16 starting at tab_int16[index]
128
+ MODBUS_GET_INT16_FROM_INT8(tab_int8, index), builds an int16 from the two
129
+ first int8 starting at tab_int8[index]
130
+ MODBUS_SET_INT16_TO_INT8(tab_int8, index, value), set an int16 value into
131
+ the two first bytes starting at tab_int8[index]
132
+
133
+ Functions for data manipulation::
134
+ linkmb:modbus_set_bits_from_byte[3]
135
+ linkmb:modbus_set_bits_from_bytes[3]
136
+ linkmb:modbus_get_byte_from_bits[3]
137
+ linkmb:modbus_get_float[3]
138
+ linkmb:modbus_set_float[3]
139
+
123
140
124
141
Connection
125
142
~~~~~~~~~~
@@ -162,6 +179,9 @@ Raw requests::
162
179
linkmb:modbus_send_raw_request[3]
163
180
linkmb:modbus_receive_confirmation[3]
164
181
182
+ Reply an exception::
183
+ linkmb:modbus_reply_exception[3]
184
+
165
185
166
186
Server
167
187
~~~~~~
@@ -178,6 +198,7 @@ Receive::
178
198
179
199
Reply::
180
200
linkmb:modbus_reply[3]
201
+ linkmb:modbus_reply_exception[3]
181
202
182
203
183
204
ERROR HANDLING
0 commit comments