protocol.h 287 B

12345678910111213141516
  1. #ifndef __PROTOCOL_H
  2. #define __PROTOCOL_H
  3. #include "gateway_message.h"
  4. // 解析发过来的数据是modbus还是dlt645
  5. #define MODBUS_WRITE 4 //本机用于区分读写
  6. #define MODBUS_READ 3
  7. #define DLT645_07 1
  8. #define DLT645_97 2
  9. extern uint8_t protocol_485;
  10. #define MODBUS 3
  11. #endif