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
5dfb1db4
Commit
5dfb1db4
authored
1 year ago
by
Martin Teichmann
Browse files
Options
Downloads
Patches
Plain Diff
add some documentation
parent
b5dfea22
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ebpfcat/ebpfcat.py
+18
-0
18 additions, 0 deletions
ebpfcat/ebpfcat.py
with
18 additions
and
0 deletions
ebpfcat/ebpfcat.py
+
18
−
0
View file @
5dfb1db4
...
...
@@ -54,6 +54,18 @@ class PacketDesc:
class
ProcessDesc
:
"""
A process variable as described in the current mapping
This describes a process variable as found in the current
PDO mapping read from the terminal.
:param index: the index of the process variable, usually found
in the terminal
'
s documentation
:param subindex: the subindex, also found in the documentation
:param size: usually the size is taken from the PDO mapping. A
different size as in a `struct` definition may be given here,
or the number of a bit for a bit field.
"""
def
__init__
(
self
,
index
,
subindex
,
size
=
None
):
self
.
index
=
index
self
.
subindex
=
subindex
...
...
@@ -129,6 +141,12 @@ class PacketVar(MemoryDesc):
class
Struct
:
"""
Define repetitive structures in a PDO
Some terminals, especially multi-channel terminals,
have repetitive structures in their PDO. Use this to group
them.
"""
device
=
None
def
__new__
(
cls
,
*
args
):
...
...
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