You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
311 B
C
14 lines
311 B
C
#ifndef _MODBUS_RTU_SLAVE_H
|
|
#define _MODBUS_RTU_SLAVE_H
|
|
|
|
//J24.1 J24.2 ===> A-B
|
|
#define MODBUS_RTU_SERIAL "/dev/ttyO3"
|
|
#define MODBUS_RTU_BAUD 38400
|
|
#define SERVER_ID 1
|
|
|
|
|
|
//extern YSP_MODBUS_REGS ysp_modbus_data;
|
|
|
|
int modbus_rtu_slave_init(void);
|
|
void modbus_rtu_data_fresh(void *data,int is_new);
|
|
#endif |