- various enhancements

This commit is contained in:
zolliker
2007-02-23 12:32:24 +00:00
parent e201ed597e
commit c0605b2398
2 changed files with 22 additions and 7 deletions

View File

@ -16,11 +16,23 @@ Markus Zolliker, Aug 2005
typedef enum {modBusFloat, modBusInt, modBusTime} ModBusType;
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);
/* put floats with contiguous adresses */
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);
/* get value from the ModBusRequestValues command (no int!) */
void ModBusRequestValue(EaseBase *eab, int adr, int type);
/* request one value of arbitrary type */
float ModBusGetValue(EaseBase *eab, int type);
/* get this value */
void ModBusPutValue(EaseBase *eab, int adr, int type, float val);
/* put one value of arbitrary type */
#endif