Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
Esteban Blanc
proview
Commits
53d04b2f
Commit
53d04b2f
authored
Nov 24, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt_fast remade for linux
parent
b9266642
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
590 additions
and
0 deletions
+590
-0
src/exe/rt_fast/src/os_linux/link_rule.mk
src/exe/rt_fast/src/os_linux/link_rule.mk
+11
-0
src/exe/rt_fast/src/os_linux/rt_fast.cpp
src/exe/rt_fast/src/os_linux/rt_fast.cpp
+491
-0
src/exe/rt_fast/src/os_linux/rt_fast.h
src/exe/rt_fast/src/os_linux/rt_fast.h
+88
-0
No files found.
src/exe/rt_fast/src/os_linux/link_rule.mk
0 → 100644
View file @
53d04b2f
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ldxx)
$(linkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_objs)
\
$(pwr_obj)
/rt_io_user.o
\
-lpwr_rt
-lpwr_co
\
-lpwr_msg_dummy
\
-lrpcsvc
-lpthread
-lm
-lrt
endif
src/exe/rt_fast/src/os_linux/rt_fast.cpp
0 → 100644
View file @
53d04b2f
This diff is collapsed.
Click to expand it.
src/exe/rt_fast/src/os_linux/rt_fast.h
0 → 100644
View file @
53d04b2f
#ifndef rt_dsfast_h
#define rt_dsfast_h
#include <string.h>
#include <vector>
extern
"C"
{
#include "pwr.h"
#include "pwr_baseclasses.h"
}
/*! \file rt_dsfast.h
\brief Contains the rt_dsfast class. */
/*! \addtogroup rt */
/*@{*/
#define FAST_CURVES 10
#define fast_cNoTrigg 0xffffffff
typedef
enum
{
fast_mFunction_ManTrigg
=
1
<<
0
,
//!< Allow manual trigg.
fast_mFunction_LevelTrigg
=
1
<<
1
,
//!< Trigg on level.
fast_mFunction_BeforeTrigg
=
1
<<
2
,
//!< Display points before trigg.
fast_mFunction_AlwaysPrepared
=
1
<<
3
,
//!< Overwrite old curve as soon as the old is viewed.
fast_mFunction_User
=
1
<<
4
//!< Curve is handled by the user.
}
fast_mFunction
;
class
fastobject
{
public:
fastobject
(
pwr_tObjid
fast_oid
)
:
oid
(
fast_oid
),
p
(
0
),
trigg
(
0
),
time_buffer
(
0
),
old_level
(
0
),
stop_index
(
0
),
scan_div
(
0
),
scan_cnt
(
0
)
{
memset
(
attributes
,
0
,
sizeof
(
attributes
));
memset
(
buffers
,
0
,
sizeof
(
buffers
));}
void
open
(
double
base_scantime
);
void
close
();
void
scan
();
private:
pwr_tObjid
oid
;
pwr_sClass_DsFastCurve
*
p
;
pwr_tBoolean
*
trigg
;
void
*
attributes
[
FAST_CURVES
];
void
*
buffers
[
FAST_CURVES
];
void
*
time_buffer
;
pwr_tDlid
p_dlid
;
pwr_tDlid
trigg_dlid
;
pwr_tDlid
attributes_dlid
[
FAST_CURVES
];
pwr_tDlid
buffers_dlid
[
FAST_CURVES
];
pwr_tDlid
time_buffer_dlid
;
pwr_tUInt32
attributes_size
[
FAST_CURVES
];
pwr_tTime
prepare_time
;
pwr_tBoolean
old_prepare
;
pwr_tBoolean
old_trigg
;
int
current_index
;
int
new_cnt
;
pwr_tFloat32
old_level
;
int
stop_index
;
int
scan_div
;
int
scan_cnt
;
double
scan_base
;
};
//! Handling of TrendCurve objects.
/*! ...
*/
class
rt_fast
{
public:
rt_fast
()
:
fast_cnt
(
0
),
scan_time
(
0.1
)
{}
void
init
(
qcom_sQid
*
qid
);
void
open
();
void
close
();
void
scan
();
double
scantime
()
{
return
scan_time
;}
private:
vector
<
fastobject
*>
objects
;
int
fast_cnt
;
double
scan_time
;
};
/*@}*/
#endif
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