Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
TIMIQLib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Libraries
TIMIQLib
Commits
7ead7cad
Commit
7ead7cad
authored
8 years ago
by
Jacques Gouno
Browse files
Options
Downloads
Patches
Plain Diff
TANGODEVIC-1647: point1 & 2, fixed
parent
9adffd9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TIMIQTypesAndConsts.h
+66
-2
66 additions, 2 deletions
src/TIMIQTypesAndConsts.h
with
66 additions
and
2 deletions
src/TIMIQTypesAndConsts.h
+
66
−
2
View file @
7ead7cad
...
...
@@ -90,15 +90,79 @@ typedef enum
Error
=
0
,
OK
,
Busy
,
Warning
Warning
,
Undefined
}
E_timiq_code_t
;
//- TimIQsSystem commands
typedef
enum
{
RESET_SYSTEM
=
1
,
RECALIBRATE_PLL
RECALIBRATE_PLL
,
ACKNOWLEDGE_ERRORS
}
E_timiq_cmd_t
;
//------------------------------
//- timIQ struct config
//------------------------------
typedef
enum
{
Undef
=
0
,
TI_IVAL
,
TI_QVAL
,
TI_BTEMP
,
TI_DATA
}
E_ti_t
;
typedef
struct
timIQConfig
{
E_ti_t
id
;
float
value
;
E_timiq_errno_t
ti_err
;
//- default constructor -----------------------
timIQConfig
()
:
id
(
Undef
),
value
(
0.0
),
ti_err
(
timiq_NO_ERROR
)
{
};
//- destructor -----------------------
~
timIQConfig
()
{
}
//- copy constructor ------------------
timIQConfig
(
const
timIQConfig
&
src
)
{
*
this
=
src
;
}
//- operator= ------------------
const
timIQConfig
&
operator
=
(
const
timIQConfig
&
src
)
{
if
(
this
==
&
src
)
return
*
this
;
this
->
id
=
src
.
id
;
this
->
value
=
src
.
value
;
this
->
ti_err
=
src
.
ti_err
;
return
*
this
;
}
//- dump -----------------------
void
dump
()
const
{
std
::
cout
<<
"timIQConfig::id........."
<<
this
->
id
<<
std
::
endl
;
std
::
cout
<<
"timIQConfig::value........."
<<
this
->
value
<<
std
::
endl
;
}
}
timIQConfig_t
;
}
//- namespace timiqlib
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment