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
1cab9e42
Commit
1cab9e42
authored
Jul 21, 2016
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Небольщая правка типов. Исравлена ошибка в ModbusMaster "nbit"
parent
0f2b33f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
MBExchange.h
extensions/ModbusMaster/MBExchange.h
+5
-5
start_fg_mbtcp.sh
extensions/ModbusMaster/start_fg_mbtcp.sh
+2
-2
LT_Object.h
include/LT_Object.h
+2
-1
uniset2.includes
uniset2.includes
+1
-1
No files found.
extensions/ModbusMaster/MBExchange.h
View file @
1cab9e42
...
@@ -92,10 +92,10 @@ class MBExchange:
...
@@ -92,10 +92,10 @@ class MBExchange:
public
IOBase
public
IOBase
{
{
// only for RTU
// only for RTU
unsigned
short
nbit
;
/*!< bit number
) */
short
nbit
;
/*!< bit number (-1 - not used
) */
VTypes
::
VType
vType
;
/*!< type of value */
VTypes
::
VType
vType
;
/*!< type of value */
unsigned
short
rnum
;
/*!< count of registers */
unsigned
short
rnum
;
/*!< count of registers */
unsigned
short
nbyte
;
/*!< byte number (1-2) */
unsigned
short
nbyte
;
/*!< byte number (1-2) */
RSProperty
()
:
RSProperty
()
:
nbit
(
-
1
),
vType
(
VTypes
::
vtUnknown
),
nbit
(
-
1
),
vType
(
VTypes
::
vtUnknown
),
...
@@ -152,8 +152,8 @@ class MBExchange:
...
@@ -152,8 +152,8 @@ class MBExchange:
MTR
::
MTRType
mtrType
;
/*!< тип регистра (согласно спецификации на MTR) */
MTR
::
MTRType
mtrType
;
/*!< тип регистра (согласно спецификации на MTR) */
// optimization
// optimization
unsigned
in
t
q_num
;
/*!< number in query */
size_
t
q_num
;
/*!< number in query */
unsigned
in
t
q_count
;
/*!< count registers for query */
size_
t
q_count
;
/*!< count registers for query */
RegMap
::
iterator
rit
;
RegMap
::
iterator
rit
;
...
...
extensions/ModbusMaster/start_fg_mbtcp.sh
View file @
1cab9e42
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
--confile
test.xml
\
--confile
test.xml
\
--mbtcp-name
MBMaster1
\
--mbtcp-name
MBMaster1
\
--smemory-id
SharedMemory
\
--smemory-id
SharedMemory
\
--mbtcp-log-add-levels
level4
\
--mbtcp-log-add-levels
level4
,level3
\
--mbtcp-set-prop-prefix
\
--mbtcp-set-prop-prefix
\
--mbtcp-filter-field
rs
\
--mbtcp-filter-field
rs
\
--mbtcp-filter-value
5
\
--mbtcp-filter-value
5
\
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
--mbtcp-recv-timeout
900
\
--mbtcp-recv-timeout
900
\
--mbtcp-polltime
200
\
--mbtcp-polltime
200
\
--mbtcp-polltime
200
\
--mbtcp-polltime
200
\
--mbtcp-force-disconnect
1
\
--mbtcp-force-out
1
\
--mbtcp-force-out
1
\
--mbtcp-persistent-connection
1
\
--ulog-add-levels
system
\
--ulog-add-levels
system
\
--mbtcp-run-logserver
\
--mbtcp-run-logserver
\
$*
$*
...
...
include/LT_Object.h
View file @
1cab9e42
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#define Object_LT_H_
#define Object_LT_H_
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
#include <deque>
#include <deque>
#include <time.h>
#include "UniSetTypes.h"
#include "UniSetTypes.h"
#include "MessageType.h"
#include "MessageType.h"
#include "PassiveTimer.h"
#include "PassiveTimer.h"
...
@@ -138,7 +139,7 @@ class LT_Object
...
@@ -138,7 +139,7 @@ class LT_Object
struct
TimerInfo
struct
TimerInfo
{
{
TimerInfo
()
:
id
(
0
),
curTimeMS
(
0
),
priority
(
UniSetTypes
::
Message
::
High
)
{};
TimerInfo
()
:
id
(
0
),
curTimeMS
(
0
),
priority
(
UniSetTypes
::
Message
::
High
)
{};
TimerInfo
(
UniSetTypes
::
TimerId
id
,
timeout_t
timeMS
,
shor
t
cnt
,
UniSetTypes
::
Message
::
Priority
p
)
:
TimerInfo
(
UniSetTypes
::
TimerId
id
,
timeout_t
timeMS
,
clock_
t
cnt
,
UniSetTypes
::
Message
::
Priority
p
)
:
id
(
id
),
id
(
id
),
curTimeMS
(
timeMS
),
curTimeMS
(
timeMS
),
priority
(
p
),
priority
(
p
),
...
...
uniset2.includes
View file @
1cab9e42
...
@@ -23,4 +23,4 @@ Utilities/codegen
...
@@ -23,4 +23,4 @@ Utilities/codegen
Utilities/codegen/tests
Utilities/codegen/tests
Utilities/MBTester
Utilities/MBTester
Utilities/NullController
Utilities/NullController
/usr/include/sigc++-2.0
/
/usr/include/sigc++-2.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