Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ev3-toolbox-matlab
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mindstorms
ev3-toolbox-matlab
Commits
5893f8dd
Commit
5893f8dd
authored
7 years ago
by
Tim Stadtmann
Browse files
Options
Downloads
Patches
Plain Diff
Add Device-class file (trailing commit)
parent
3062ff73
Branches
50-use-ubuntus-libhidapi
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/Device.m
+39
-0
39 additions, 0 deletions
source/Device.m
with
39 additions
and
0 deletions
source/Device.m
0 → 100644
+
39
−
0
View file @
5893f8dd
classdef
Device
<
MaskedHandle
% NOTE: WIP -> Bis jetzt nur debug-Parameter testweise implementiert. Läuft noch nicht
properties
% debug (numeric in {0,1,2}): Debug mode. [WRITABLE]
% - 0: Debug turned off
% - 1: (High-level-) Debug turned on for EV3-object - enables feedback in the
% console about what firmware-commands have been called when using a method
% - 2: Low-level-Debug turned on - each packet sent and received is printed to the
% console
debug
;
end
properties
(
Abstract
,
Access
=
protected
)
commInterface
;
end
methods
function
setDebug
(
device
,
debug
)
if
~
isBool
(
debug
)
error
(
'Given parameter is not a bool.'
);
end
device
.
debug
=
str2bool
(
debug
);
end
function
set
.
debug
(
device
,
debug
)
device
.
setDebug
(
debug
);
end
function
debug
=
get
.
debug
(
device
)
debug
=
device
.
debug
;
end
end
methods
(
Abstract
)
%reset(device);
%dispatch(device,...)
end
end
\ No newline at end of file
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