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
59d96e50
Commit
59d96e50
authored
Jan 26, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt remote struct display, typ net_sTime added
parent
7d88aba2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
src/lib/co/src/co_dcli_struct.c
src/lib/co/src/co_dcli_struct.c
+5
-0
xtt/lib/xtt/src/xtt_xnav.cpp
xtt/lib/xtt/src/xtt_xnav.cpp
+11
-0
xtt/lib/xtt/src/xtt_xnav.h
xtt/lib/xtt/src/xtt_xnav.h
+2
-1
No files found.
src/lib/co/src/co_dcli_struct.c
View file @
59d96e50
...
@@ -734,6 +734,11 @@ static int add_element( t_ctx ctx,
...
@@ -734,6 +734,11 @@ static int add_element( t_ctx ctx,
type
=
pwr_eType_RefId
;
type
=
pwr_eType_RefId
;
size
=
sizeof
(
pwr_tRefId
);
size
=
sizeof
(
pwr_tRefId
);
}
}
else
if
(
strcmp
(
line_elem
[
0
],
"net_sTime"
)
==
0
)
{
type
=
10004
;
/* xnav_eType_NetTime */
size
=
2
*
sizeof
(
pwr_tInt32
);
}
else
else
{
{
undefined
=
1
;
undefined
=
1
;
...
...
xtt/lib/xtt/src/xtt_xnav.cpp
View file @
59d96e50
...
@@ -975,6 +975,17 @@ void XNav::attrvalue_to_string( int type_id, pwr_tTid tid, void *value_ptr,
...
@@ -975,6 +975,17 @@ void XNav::attrvalue_to_string( int type_id, pwr_tTid tid, void *value_ptr,
*
len
=
snprintf
(
str
,
size
,
"%s"
,
timstr
);
*
len
=
snprintf
(
str
,
size
,
"%s"
,
timstr
);
break
;
break
;
}
}
case
xnav_eType_NetTime
:
{
pwr_tTime
t
;
t
.
tv_sec
=
((
net_sTime
*
)
value_ptr
)
->
tv_sec
;
t
.
tv_nsec
=
((
net_sTime
*
)
value_ptr
)
->
tv_nsec
;
sts
=
time_AtoAscii
(
&
t
,
time_eFormat_DateAndTime
,
timstr
,
sizeof
(
timstr
));
if
(
EVEN
(
sts
))
strcpy
(
timstr
,
"Undefined time"
);
*
len
=
snprintf
(
str
,
size
,
"%s"
,
timstr
);
break
;
}
case
xnav_eType_GdbNodeFlags
:
{
case
xnav_eType_GdbNodeFlags
:
{
if
(
((
gdb_mNode
*
)
value_ptr
)
->
b
.
up
)
if
(
((
gdb_mNode
*
)
value_ptr
)
->
b
.
up
)
*
len
=
sprintf
(
str
,
"Up"
);
*
len
=
sprintf
(
str
,
"Up"
);
...
...
xtt/lib/xtt/src/xtt_xnav.h
View file @
59d96e50
...
@@ -150,7 +150,8 @@ typedef enum {
...
@@ -150,7 +150,8 @@ typedef enum {
xnav_eType_GdbNodeFlags
=
10000
,
xnav_eType_GdbNodeFlags
=
10000
,
xnav_eType_Empty
=
10001
,
xnav_eType_Empty
=
10001
,
xnav_eType_FixStr
=
10002
,
xnav_eType_FixStr
=
10002
,
xnav_eType_ShortTime
=
10003
xnav_eType_ShortTime
=
10003
,
xnav_eType_NetTime
=
10004
}
xnav_eType
;
}
xnav_eType
;
typedef
enum
{
typedef
enum
{
...
...
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