Supachai Vorapojpisut
/
TAIST_modbus
Example code for modbus serial
Diff: modbus.h
- Revision:
- 1:0007712e84a8
- Parent:
- 0:f306cb0263a6
diff -r f306cb0263a6 -r 0007712e84a8 modbus.h --- a/modbus.h Wed Mar 14 06:17:48 2018 +0000 +++ b/modbus.h Fri Mar 16 04:34:08 2018 +0000 @@ -10,5 +10,7 @@ uint16_t modbus_read(uint16_t offset); uint16_t modbus_update(uint8_t offset, uint16_t val); int modbus_parser(char ch, uint8_t *frame); +uint8_t modbus_check(uint16_t offset, uint16_t count); +void modbus_response(uint8_t reg_map); #endif // MODBUS_H