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
8e744aa1
Commit
8e744aa1
authored
Jan 21, 2019
by
Marcus Nordenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsdml attribute navigator: Add value enumeration + default value fix
parent
34dfa9a3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
209 additions
and
23 deletions
+209
-23
profibus/lib/cow/src/cow_pn_gsdml_attrnav.cpp
profibus/lib/cow/src/cow_pn_gsdml_attrnav.cpp
+176
-20
profibus/lib/cow/src/cow_pn_gsdml_attrnav.h
profibus/lib/cow/src/cow_pn_gsdml_attrnav.h
+33
-3
No files found.
profibus/lib/cow/src/cow_pn_gsdml_attrnav.cpp
View file @
8e744aa1
This diff is collapsed.
Click to expand it.
profibus/lib/cow/src/cow_pn_gsdml_attrnav.h
View file @
8e744aa1
...
...
@@ -64,6 +64,7 @@ typedef enum {
attrnav_eItemType_PnParValue
,
attrnav_eItemType_PnParEnum
,
attrnav_eItemType_PnParEnumBit
,
attrnav_eItemType_PnParEnumValue
,
attrnav_eItemType_PnModuleClass
,
attrnav_eItemType_PnIOData
,
attrnav_eItemType_PnInput
,
...
...
@@ -509,7 +510,7 @@ class ItemPnParValue : public ItemPn {
public:
ItemPnParValue
(
GsdmlAttrNav
*
attrnav
,
const
char
*
item_name
,
gsdml_Ref
*
item_value_ref
,
gsdml_eValueDataType
item_datatype
,
unsigned
char
*
item_data
,
brow_tNode
dest
,
flow_eDest
dest_code
);
unsigned
char
*
item_data
,
unsigned
char
*
item_data_reversed_endianess
,
brow_tNode
dest
,
flow_eDest
dest_code
);
virtual
~
ItemPnParValue
()
{
}
...
...
@@ -517,6 +518,7 @@ public:
gsdml_Ref
*
value_ref
;
gsdml_eValueDataType
datatype
;
unsigned
char
*
data
;
unsigned
char
*
data_reversed_endianess
;
unsigned
int
byte_offset
;
unsigned
int
size
;
int
first_scan
;
...
...
@@ -541,7 +543,7 @@ class ItemPnParEnum : public ItemPn {
public:
ItemPnParEnum
(
GsdmlAttrNav
*
attrnav
,
const
char
*
item_name
,
gsdml_Ref
*
item_value_ref
,
gsdml_eValueDataType
item_datatype
,
unsigned
char
*
item_data
,
brow_tNode
dest
,
flow_eDest
dest_code
);
unsigned
char
*
item_data
,
unsigned
char
*
item_data_reversed_endianess
,
brow_tNode
dest
,
flow_eDest
dest_code
);
virtual
~
ItemPnParEnum
()
{
}
...
...
@@ -549,6 +551,7 @@ public:
gsdml_Ref
*
value_ref
;
gsdml_eValueDataType
datatype
;
unsigned
char
*
data
;
unsigned
char
*
data_reversed_endianess
;
unsigned
int
byte_offset
;
unsigned
int
bit_offset
;
unsigned
int
bit_length
;
...
...
@@ -566,7 +569,7 @@ public:
class
ItemPnParEnumBit
:
public
ItemPn
{
public:
ItemPnParEnumBit
(
GsdmlAttrNav
*
attrnav
,
const
char
*
item_name
,
gsdml_eValueDataType
item_datatype
,
unsigned
char
*
item_data
,
gsdml_eValueDataType
item_datatype
,
unsigned
char
*
item_data
,
unsigned
char
*
item_data_reversed_endianess
,
unsigned
int
item_byte_offset
,
unsigned
int
item_value
,
unsigned
int
item_mask
,
int
item_noedit
,
brow_tNode
dest
,
flow_eDest
dest_code
);
...
...
@@ -577,6 +580,33 @@ public:
gsdml_Assign
*
assign
;
gsdml_eValueDataType
datatype
;
unsigned
char
*
data
;
unsigned
char
*
data_reversed_endianess
;
unsigned
int
byte_offset
;
unsigned
int
value
;
unsigned
int
mask
;
int
first_scan
;
unsigned
int
old_value
;
int
noedit
;
int
scan
(
GsdmlAttrNav
*
attrnav
,
void
*
p
);
void
update
(
GsdmlAttrNav
*
attrnav
);
};
class
ItemPnParEnumValue
:
public
ItemPn
{
public:
ItemPnParEnumValue
(
GsdmlAttrNav
*
attrnav
,
const
char
*
item_name
,
gsdml_eValueDataType
item_datatype
,
unsigned
char
*
item_data
,
unsigned
char
*
item_data_reversed_endianess
,
unsigned
int
item_byte_offset
,
unsigned
int
item_value
,
unsigned
int
item_mask
,
int
item_noedit
,
brow_tNode
dest
,
flow_eDest
dest_code
);
virtual
~
ItemPnParEnumValue
()
{
}
gsdml_Assign
*
assign
;
gsdml_eValueDataType
datatype
;
unsigned
char
*
data
;
unsigned
char
*
data_reversed_endianess
;
unsigned
int
byte_offset
;
unsigned
int
value
;
unsigned
int
mask
;
...
...
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