Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
osie
Commits
f51b3243
Commit
f51b3243
authored
May 06, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement method for mode switch (normal).
parent
4cb31625
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
coupler/opc-ua-server/keep_alive.h
coupler/opc-ua-server/keep_alive.h
+18
-1
No files found.
coupler/opc-ua-server/keep_alive.h
View file @
f51b3243
...
@@ -36,5 +36,22 @@ void gotoSafeMode() {
...
@@ -36,5 +36,22 @@ void gotoSafeMode() {
// do shutdown all attached I2C slaves (MOD-IO's relays).
// do shutdown all attached I2C slaves (MOD-IO's relays).
safeShutdownI2CSlaveList
();
safeShutdownI2CSlaveList
();
// XXX: should process exit ?
// set to virtual mode which means that coupler will mimic working but
// not set any related relays' state
I2C_VIRTUAL_MODE
=
1
;
}
void
gotoNormalMode
()
{
/*
* In this mode coupler will set all
* relays of attached I2C slaves.
* This is the normal mode of operation (
* unless changed over CLI with "-m" switch.)
*/
UA_LOG_INFO
(
UA_Log_Stdout
,
\
UA_LOGCATEGORY_USERLAND
,
\
"Go to NORMAL MODE"
);
I2C_VIRTUAL_MODE
=
0
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment