- new drivers

This commit is contained in:
zolliker
2005-09-05 08:05:56 +00:00
parent c57ebaf0ba
commit e83353d722
5 changed files with 613 additions and 0 deletions

21
modbus.h Normal file
View File

@ -0,0 +1,21 @@
/*---------------------------------------------------------------------------
modbus.h
Communication routines for Eurotherm ModBus instruments
Markus Zolliker, Aug 2005
----------------------------------------------------------------------------*/
#ifndef MODBUS_H
#define MODBUS_H
#include "ease.h"
#define MODBUS_BAD_CRC -3090
int ModBusHandler(void *eab);
void ModBusPutFloats(EaseBase *eab, int adr, int npar, float val[]);
void ModBusRequestFloats(EaseBase *eab, int adr, int npar);
float ModBusGetFloat(EaseBase *eab, int adr);
#endif