Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
83f7282e
Commit
83f7282e
authored
Sep 09, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deadband and hightimeresolution added
parent
0c08b65f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
16 deletions
+42
-16
src/lib/rt/src/rt_sev_net.h
src/lib/rt/src/rt_sev_net.h
+16
-6
src/lib/rt/src/rt_sevcli.c
src/lib/rt/src/rt_sevcli.c
+10
-5
src/lib/rt/src/rt_sevcli.h
src/lib/rt/src/rt_sevcli.h
+16
-5
No files found.
src/lib/rt/src/rt_sev_net.h
View file @
83f7282e
/*
* 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
{
...
...
src/lib/rt/src/rt_sevcli.c
View file @
83f7282e
/*
* 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
);
...
...
src/lib/rt/src/rt_sevcli.h
View file @
83f7282e
/*
* 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment