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
714903a4
Commit
714903a4
authored
Jan 15, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved from os_linux
parent
b4e5ecc1
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
570 additions
and
0 deletions
+570
-0
src/exe/rt_fast/src/rt_fast.cpp
src/exe/rt_fast/src/rt_fast.cpp
+481
-0
src/exe/rt_fast/src/rt_fast.h
src/exe/rt_fast/src/rt_fast.h
+89
-0
No files found.
src/exe/rt_fast/src/rt_fast.cpp
0 → 100644
View file @
714903a4
This diff is collapsed.
Click to expand it.
src/exe/rt_fast/src/rt_fast.h
0 → 100644
View file @
714903a4
#ifndef rt_dsfast_h
#define rt_dsfast_h
#include <string.h>
#include <vector>
extern
"C"
{
#include "pwr.h"
#include "pwr_baseclasses.h"
#include "rt_qcom.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