Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ebpfCAT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
karaboDevices
ebpfCAT
Commits
aaa7983b
Commit
aaa7983b
authored
4 years ago
by
Martin Teichmann
Browse files
Options
Downloads
Patches
Plain Diff
add autodocs for modules
parent
81c69350
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
ebpfcat/devices.py
+18
-0
18 additions, 0 deletions
ebpfcat/devices.py
ebpfcat/ethercat.rst
+7
-0
7 additions, 0 deletions
ebpfcat/ethercat.rst
with
26 additions
and
0 deletions
.gitlab-ci.yml
+
1
−
0
View file @
aaa7983b
...
...
@@ -6,6 +6,7 @@ test:
docs
:
image
:
tk0miya/sphinx-html
script
:
-
python3 setup.py install --user
-
sphinx-build -b html -d _build/doctrees . _build/html
-
eval $(ssh-agent)
-
echo "$SSHKEY" | ssh-add -
...
...
This diff is collapsed.
Click to expand it.
ebpfcat/devices.py
+
18
−
0
View file @
aaa7983b
"""
\
A collection of devices
=======================
This modules contains a collection of devices which may be helpful
in many projects.
"""
from
.ebpfcat
import
Device
,
FastSyncGroup
,
TerminalVar
,
DeviceVar
class
AnalogInput
(
Device
):
"""
Generic analog input device
This device can be linked to an analog input of a terminal.
It will read from there and return the result in its
parameter `value`.
"""
value
=
DeviceVar
()
data
=
TerminalVar
()
...
...
@@ -16,6 +29,11 @@ class AnalogInput(Device):
class
AnalogOutput
(
Device
):
"""
Generic analog output device
This device can be linked to an analog output of a terminal.
It will write the `value` to that terminal.
"""
value
=
DeviceVar
()
data
=
TerminalVar
()
...
...
This diff is collapsed.
Click to expand it.
ebpfcat/ethercat.rst
+
7
−
0
View file @
aaa7983b
...
...
@@ -92,3 +92,10 @@ The communication with the terminals can happen in three different ways:
- fast: the data is sent, received and processed using XDP in the Linux
Kernel. Only very limited operations can be done, but the loop cycle
frequency exceeds 10 kHz.
.. automodule:: ebpfcat.devices
:members:
.. automodule:: ebpfcat.ethercat
:members:
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