You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
testmodbus-server/guimodbusdata.h

40 lines
860 B

/////////////////////////////////////////////////////////////////////////////////
//
// guimodbusdata.h is part of TestModbus-Server.
//
/////////////////////////////////////////////////////////////////////////////////
#ifndef _GUIMODBUSDATA_H_
#define _GUIMODBUSDATA_H_
#include "gui.h"
#include "modbus.h"
#include "guivalues.h"
enum {
MBDATA_COL_FCREG = 0,
MBDATA_COL_REQREAD,
MBDATA_COL_REQWRITE,
MBDATA_COL_ENABLED,
MBDATA_COL_VALUE,
MBDATA_COLCOUNT
};
GtkTreeModel *MBData_create_with_data();
void MBData_ChangeRegs (int fc, int regstart, int count, ModbusRegister *r);
void MBData_Enable (int fc, int regstart, int count, int onoff);
void MBData_EnableAll (int onoff);
void MBData_ReqReset ();
#ifdef __cplusplus
extern "C" {
#endif
G_MODULE_EXPORT void mbdata_show(GtkWidget *widget, gpointer data);
#ifdef __cplusplus
}
#endif
#endif