Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOAAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Streitenberger
SOAAP
Commits
4660fb7b
Commit
4660fb7b
authored
2 years ago
by
Lennard Karger
Browse files
Options
Downloads
Patches
Plain Diff
Update Kommentare für Anwenderfunktionen
parent
605ce73c
Branches
Branches containing commit
Tags
hsh_1.22.4
2 merge requests
!4
PIO Projekte in main-Branch implementieren
,
!3
Vorbereitung Main merge PIO - Projektstrukturen
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/BlePoll/BlePoll.cpp
+3
-3
3 additions, 3 deletions
libraries/BlePoll/BlePoll.cpp
libraries/BlePoll/BlePoll.h
+22
-1
22 additions, 1 deletion
libraries/BlePoll/BlePoll.h
with
25 additions
and
4 deletions
libraries/BlePoll/BlePoll.cpp
+
3
−
3
View file @
4660fb7b
...
@@ -1370,7 +1370,7 @@ void BlePoll::smWaitComES()
...
@@ -1370,7 +1370,7 @@ void BlePoll::smWaitComES()
//
//
// neue Steuerungsdaten für einen Slave
// neue Steuerungsdaten für einen Slave
//
void
BlePoll
::
updControl
(
int
adr
,
byte
*
ctrlList
,
int
nr
)
void
BlePoll
::
updControl
(
int
adr
,
byte
*
ctrlList
,
int
nr
)
{
{
if
(
adr
<=
0
)
return
;
if
(
adr
<=
0
)
return
;
...
@@ -1387,7 +1387,7 @@ void BlePoll::updControl(int adr, byte *ctrlList, int nr)
...
@@ -1387,7 +1387,7 @@ void BlePoll::updControl(int adr, byte *ctrlList, int nr)
}
}
// Feststellenn, ob Übertragung der Steuerungsdaten erfolgt ist
// Feststellenn, ob Übertragung der Steuerungsdaten erfolgt ist
//
bool
BlePoll
::
ackTrans
(
int
adr
)
bool
BlePoll
::
ackTrans
(
int
adr
)
{
{
if
(
adr
<=
0
)
return
(
false
);
if
(
adr
<=
0
)
return
(
false
);
...
@@ -1398,7 +1398,7 @@ bool BlePoll::ackTrans(int adr)
...
@@ -1398,7 +1398,7 @@ bool BlePoll::ackTrans(int adr)
}
}
// Feststellen, ob Steuerungsdaten beim Slave verarbeitet sind
// Feststellen, ob Steuerungsdaten beim Slave verarbeitet sind
//
bool
BlePoll
::
ackControl
(
int
adr
)
bool
BlePoll
::
ackControl
(
int
adr
)
{
{
if
(
adr
<=
0
)
return
(
false
);
if
(
adr
<=
0
)
return
(
false
);
...
...
This diff is collapsed.
Click to expand it.
libraries/BlePoll/BlePoll.h
+
22
−
1
View file @
4660fb7b
...
@@ -427,9 +427,30 @@ public:
...
@@ -427,9 +427,30 @@ public:
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
//
//
void
run
();
// Ablaufsteuerung (CPU-Übergabe) dieses Moduls
void
run
();
// Ablaufsteuerung (CPU-Übergabe) dieses Moduls
/**
* @brief Sendet neue Steuerungsdaten an einen Slave
*
* @param adr Addresse d. zu Steuernden Slaves
* @param ctrlList Liste mit Bytes zum Austausch der Steuerbytes
* @param nr Anzahl d. Steuerbytes
*/
void
updControl
(
int
adr
,
byte
*
ctrlList
,
int
nr
);
// neue Steuerungsdaten
void
updControl
(
int
adr
,
byte
*
ctrlList
,
int
nr
);
// neue Steuerungsdaten
//
/**
* @brief Prüft ob Steuerungsdaten übertragen wurden
*
* @param adr Adresse d. Slaves
* @return true Erfolgreiche übertragung
* @return false Fehler in Übertragung / Falsche Adresse
*/
bool
ackTrans
(
int
adr
);
// Bestätigung Steuerungsdaten übertragen
bool
ackTrans
(
int
adr
);
// Bestätigung Steuerungsdaten übertragen
/**
* @brief Überprüft ob Steuerungsdaten korrekt übertragen wurden
*
* @param adr Adresse d. Slavrs
* @return true Daten erfolgreich verarbeitet
* @return false Fehler in Übertragung
*/
bool
ackControl
(
int
adr
);
// Bestätigung Steuerung ausgeführt
bool
ackControl
(
int
adr
);
// Bestätigung Steuerung ausgeführt
...
...
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