- Adapted indenation to new agreed upon system
- Fixed bad status in poldi zug driver
This commit is contained in:
16
modbus.h
16
modbus.h
@ -13,26 +13,26 @@ Markus Zolliker, Aug 2005
|
||||
|
||||
#define MODBUS_BAD_CRC -3090
|
||||
|
||||
typedef enum {modBusFloat, modBusInt, modBusTime} ModBusType;
|
||||
typedef enum { modBusFloat, modBusInt, modBusTime } ModBusType;
|
||||
|
||||
int ModBusHandler(void *eab);
|
||||
|
||||
void ModBusPutFloats(EaseBase *eab, int adr, int npar, float val[]);
|
||||
void ModBusPutFloats(EaseBase * eab, int adr, int npar, float val[]);
|
||||
/* put floats with contiguous adresses */
|
||||
|
||||
void ModBusRequestValues(EaseBase *eab, int adr, int npar);
|
||||
void ModBusRequestValues(EaseBase * eab, int adr, int npar);
|
||||
/* request floats or time (not int) with contiguous adresses */
|
||||
|
||||
float ModBusGet(EaseBase *eab, int adr, int type);
|
||||
|
||||
float ModBusGet(EaseBase * eab, int adr, int type);
|
||||
/* get value from the ModBusRequestValues command (no int!) */
|
||||
|
||||
void ModBusRequestValue(EaseBase *eab, int adr, int type);
|
||||
void ModBusRequestValue(EaseBase * eab, int adr, int type);
|
||||
/* request one value of arbitrary type */
|
||||
|
||||
float ModBusGetValue(EaseBase *eab, int type);
|
||||
float ModBusGetValue(EaseBase * eab, int type);
|
||||
/* get this value */
|
||||
|
||||
void ModBusPutValue(EaseBase *eab, int adr, int type, float val);
|
||||
void ModBusPutValue(EaseBase * eab, int adr, int type, float val);
|
||||
/* put one value of arbitrary type */
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user