TAIST class assignment

Dependencies:   mbed

Fork of TAIST_modbus by Supachai Vorapojpisut

Committer:
Benjaphan
Date:
Wed Mar 14 14:55:52 2018 +0000
Revision:
1:d2e8a3c822f1
Parent:
0:f306cb0263a6
Ms. Benjaphan Sommana StudentID: 6022040445; Mr. Thotsawut Mhudchuay StudentID:6014552855; Mr. Pongporamat Charuchinda ID:6014552863; Ms. Nabeela Shaheen, ID:6014553142

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vsupacha 0:f306cb0263a6 1 #ifndef MODBUS_H
vsupacha 0:f306cb0263a6 2 #define MODBUS_H
vsupacha 0:f306cb0263a6 3
vsupacha 0:f306cb0263a6 4 #define FUNC_CODE 3
vsupacha 0:f306cb0263a6 5 #define ADDR_BASE 0x0000
vsupacha 0:f306cb0263a6 6 #define ADDR_RANGE 2
vsupacha 0:f306cb0263a6 7 #define MAX_FRAME_SIZE 20
vsupacha 0:f306cb0263a6 8
vsupacha 0:f306cb0263a6 9 void modbus_init(uint8_t id);
vsupacha 0:f306cb0263a6 10 uint16_t modbus_read(uint16_t offset);
vsupacha 0:f306cb0263a6 11 uint16_t modbus_update(uint8_t offset, uint16_t val);
vsupacha 0:f306cb0263a6 12 int modbus_parser(char ch, uint8_t *frame);
vsupacha 0:f306cb0263a6 13
vsupacha 0:f306cb0263a6 14 #endif // MODBUS_H