Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
EtherBone Core
Commits
82074a7b
Commit
82074a7b
authored
13 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Add finish bindings
parent
d450814d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/v2/etherbone.h
+14
-1
14 additions, 1 deletion
api/v2/etherbone.h
with
14 additions
and
1 deletion
api/v2/etherbone.h
+
14
−
1
View file @
82074a7b
...
...
@@ -437,7 +437,7 @@ class Cycle {
~
Cycle
();
// End of cycle = destructor
void
abort
();
//
void
...don't receive segfault...
void
silent_finish
();
Cycle
&
read
(
address_t
address
,
data_t
*
data
=
0
);
Cycle
&
write
(
address_t
address
,
data_t
data
);
...
...
@@ -457,6 +457,9 @@ class Cycle {
class
Operation
{
public:
bool
is_null
()
const
;
/* Only call these if is_null is false */
bool
is_read
()
const
;
bool
is_config
()
const
;
bool
had_error
()
const
;
...
...
@@ -562,6 +565,12 @@ inline void Cycle::abort() {
cycle
=
EB_NULL
;
}
inline
void
Cycle
::
silent_finish
()
{
if
(
cycle
!=
EB_NULL
)
eb_cycle_close_silently
(
cycle
);
cycle
=
EB_NULL
;
}
inline
Cycle
&
Cycle
::
read
(
address_t
address
,
data_t
*
data
)
{
eb_cycle_read
(
cycle
,
address
,
data
);
return
*
this
;
...
...
@@ -590,6 +599,10 @@ inline Operation::Operation(eb_operation_t op)
:
operation
(
op
)
{
}
inline
bool
Operation
::
is_null
()
const
{
return
operation
==
EB_NULL
;
}
inline
bool
Operation
::
is_read
()
const
{
return
eb_operation_is_read
(
operation
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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