Commit 83f7282e authored by claes's avatar claes

Deadband and hightimeresolution added

parent 0c08b65f
/*
* Proview $Id: rt_sev_net.h,v 1.2 2008-09-05 09:00:19 claes Exp $
* Proview $Id: rt_sev_net.h,v 1.3 2008-09-09 11:27:32 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -43,16 +43,26 @@ typedef enum {
} sev_eMsgType;
typedef struct {
pwr_tOid oid;
pwr_tOName oname;
pwr_tOName aname;
pwr_tDeltaTime storagetime;
pwr_eType type;
unsigned int size;
unsigned int elem;
pwr_tString16 unit;
} sev_sHistAttr;
typedef struct {
pwr_tOid oid;
pwr_tOName oname;
pwr_tDeltaTime storagetime;
pwr_tTime creatime;
pwr_tTime modtime;
pwr_tRefId sevid;
pwr_tString80 description;
pwr_tString16 unit;
pwr_tFloat32 scantime;
pwr_tFloat32 deadband;
pwr_tBoolean hightimeres;
unsigned int attrnum;
sev_sHistAttr attr[1];
} sev_sHistItem;
typedef struct {
......@@ -71,7 +81,7 @@ typedef struct {
typedef struct {
sev_eMsgType Type;
pwr_tStatus Status;
sev_sHistItem Items[1];
sev_sHistItem Items[1];
} sev_sMsgHistItems;
typedef struct {
......
/*
* Proview $Id: rt_sevcli.c,v 1.2 2008-09-05 09:00:37 claes Exp $
* Proview $Id: rt_sevcli.c,v 1.3 2008-09-09 11:27:32 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -159,13 +159,18 @@ int sevcli_get_itemlist( pwr_tStatus *sts, sevcli_tCtx ctx, sevcli_sHistItem **l
for ( i = 0; i < item_cnt; i++) {
lp[i].oid = rmsg->Items[i].oid;
strncpy( lp[i].oname, rmsg->Items[i].oname, sizeof(lp[0].oname));
strncpy( lp[i].aname, rmsg->Items[i].aname, sizeof(lp[0].aname));
lp[i].storagetime = rmsg->Items[i].storagetime;
lp[i].type = rmsg->Items[i].type;
lp[i].size = rmsg->Items[i].size;
lp[i].deadband = rmsg->Items[i].deadband;
lp[i].hightimeres = rmsg->Items[i].hightimeres;
lp[i].creatime = rmsg->Items[i].creatime;
lp[i].modtime = rmsg->Items[i].modtime;
strncpy( lp[i].description, rmsg->Items[i].description, sizeof(lp[0].description));
strncpy( lp[i].unit, rmsg->Items[i].unit, sizeof(lp[0].unit));
lp[i].scantime = rmsg->Items[i].scantime;
lp[i].attrnum = 1;
lp[i].attr[0].type = rmsg->Items[i].attr[0].type;
lp[i].attr[0].size = rmsg->Items[i].attr[0].size;
strncpy( lp[i].attr[0].aname, rmsg->Items[i].attr[0].aname, sizeof(lp[0].attr[0].aname));
strncpy( lp[i].attr[0].unit, rmsg->Items[i].attr[0].unit, sizeof(lp[0].attr[0].unit));
}
qcom_Free( sts, rmsg);
......
/*
* Proview $Id: rt_sevcli.h,v 1.2 2008-09-05 09:00:37 claes Exp $
* Proview $Id: rt_sevcli.h,v 1.3 2008-09-09 11:27:32 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -42,15 +42,26 @@ typedef struct {
} sevcli_sCtx, *sevcli_tCtx;
typedef struct {
pwr_tOid oid;
pwr_tAName oname;
pwr_tAName aname;
pwr_tDeltaTime storagetime;
pwr_eType type;
unsigned int size;
pwr_tString80 description;
unsigned int elem;
pwr_tString16 unit;
}
sevcli_sHistAttr;
typedef struct {
pwr_tOid oid;
pwr_tAName oname;
pwr_tDeltaTime storagetime;
pwr_tTime creatime;
pwr_tTime modtime;
pwr_tString80 description;
pwr_tFloat32 scantime;
pwr_tFloat32 deadband;
pwr_tBoolean hightimeres;
unsigned int attrnum;
sevcli_sHistAttr attr[1];
} sevcli_sHistItem;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment