Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cohtdrivers
coht
Commits
1caed97d
Commit
1caed97d
authored
8 years ago
by
Juan David Gonzalez Cobas
Browse files
Options
Downloads
Patches
Plain Diff
cvorbtest: enhance decoding of channel status
parent
83e63fe8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cvorb/include/cvorb.h
+3
-0
3 additions, 0 deletions
cvorb/include/cvorb.h
cvorb/test/cvorbtest.c
+4
-0
4 additions, 0 deletions
cvorb/test/cvorbtest.c
with
7 additions
and
0 deletions
cvorb/include/cvorb.h
+
3
−
0
View file @
1caed97d
...
...
@@ -51,7 +51,10 @@ enum cvorb_input_polarity {
*/
#define CVORB_CH_BUSY 0x1
#define CVORB_CH_FCN_PAUSED 0x2
#define CVORB_CH_FCN_NOT_USED 0x4
#define CVORB_CH_FCN_WAITING_START 0x8
#define CVORB_CH_SERIAL_LINK_ERR 0x10
#define CVORB_CH_WAVEFORM_COPY 0x100
/**
* @brief Function Vectors
...
...
This diff is collapsed.
Click to expand it.
cvorb/test/cvorbtest.c
+
4
−
0
View file @
1caed97d
...
...
@@ -105,6 +105,10 @@ int h_ch_status(struct cmd_desc *cmdd, struct atom *atoms)
printf
(
"
\t
Waveform paused
\n
"
);
if
(
ch_status
&
CVORB_CH_SERIAL_LINK_ERR
)
printf
(
"
\t
Serial link in fault
\n
"
);
if
(
ch_status
&
CVORB_CH_FCN_WAITING_START
)
printf
(
"
\t
Idle (waiting for start pulse)
\n
"
);
if
(
ch_status
&
CVORB_CH_WAVEFORM_COPY
)
printf
(
"
\t
Waveform copy in progress
\n
"
);
printf
(
"
\t
Channel state machine details:
\n
"
);
/* Extract the bit field channel state in order to use it as an index in the state messages*/
ch_state
=
(
ch_status
>>
CVORB_CH_STATE_SHIFT
)
&
CVORB_CH_STATE_MASK
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment