Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
af13ad1e
Commit
af13ad1e
authored
Feb 10, 2010
by
Pavel Vaynerman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.eter:/projects/uniset
parents
70d0b318
4c0f54da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
libuniset.spec
conf/libuniset.spec
+4
-1
ModbusRTUMaster.h
include/modbus/ModbusRTUMaster.h
+5
-1
ModbusRTUMaster.cc
src/Communications/Modbus/ModbusRTUMaster.cc
+18
-1
No files found.
conf/libuniset.spec
View file @
af13ad1e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
Name: libuniset
Name: libuniset
Version: 0.97
Version: 0.97
Release: eter5
1
Release: eter5
3
Summary: UniSet - library for building distributed industrial control systems
Summary: UniSet - library for building distributed industrial control systems
License: GPL
License: GPL
Group: Development/C++
Group: Development/C++
...
@@ -183,6 +183,9 @@ rm -f %buildroot%_libdir/*.la
...
@@ -183,6 +183,9 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
%changelog
* Tue Feb 02 2010 Larik Ishkulov <gentro@etersoft.ru> 0.97-eter52
- new build
* Fri Jan 29 2010 Pavel Vainerman <pv@altlinux.ru> 0.97-eter50
* Fri Jan 29 2010 Pavel Vainerman <pv@altlinux.ru> 0.97-eter50
- add simitator
- add simitator
...
...
include/modbus/ModbusRTUMaster.h
View file @
af13ad1e
...
@@ -29,7 +29,11 @@ class ModbusRTUMaster:
...
@@ -29,7 +29,11 @@ class ModbusRTUMaster:
void
setSpeed
(
ComPort
::
Speed
s
);
void
setSpeed
(
ComPort
::
Speed
s
);
void
setSpeed
(
const
std
::
string
s
);
void
setSpeed
(
const
std
::
string
s
);
ComPort
::
Speed
getSpeed
();
ComPort
::
Speed
getSpeed
();
void
setParity
(
ComPort
::
Parity
parity
);
void
setCharacterSize
(
ComPort
::
CharacterSize
csize
);
void
setStopBits
(
ComPort
::
StopBits
sBit
);
int
getTimeout
();
int
getTimeout
();
protected
:
protected
:
...
...
src/Communications/Modbus/ModbusRTUMaster.cc
View file @
af13ad1e
...
@@ -82,7 +82,24 @@ ComPort::Speed ModbusRTUMaster::getSpeed()
...
@@ -82,7 +82,24 @@ ComPort::Speed ModbusRTUMaster::getSpeed()
return
port
->
getSpeed
();
return
port
->
getSpeed
();
}
}
// -------------------------------------------------------------------------
void
ModbusRTUMaster
::
setParity
(
ComPort
::
Parity
parity
)
{
if
(
port
!=
NULL
)
port
->
setParity
(
parity
);
}
// -------------------------------------------------------------------------
void
ModbusRTUMaster
::
setCharacterSize
(
ComPort
::
CharacterSize
csize
)
{
if
(
port
!=
NULL
)
port
->
setCharacterSize
(
csize
);
}
// -------------------------------------------------------------------------
void
ModbusRTUMaster
::
setStopBits
(
ComPort
::
StopBits
sBit
)
{
if
(
port
!=
NULL
)
port
->
setStopBits
(
sBit
);
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
int
ModbusRTUMaster
::
getTimeout
()
int
ModbusRTUMaster
::
getTimeout
()
{
{
...
...
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