Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Computing
cbmroot
Commits
ff01cc62
Commit
ff01cc62
authored
4 years ago
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
In raw StsXyter message class, adapt the error flags width and add enum class describing them
parent
7fbadd4f
No related branches found
No related tags found
1 merge request
!10
First part of mCBM changes to data to monitors, tasks and unpackers
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/data/raw/StsXyterMessage.h
+11
-3
11 additions, 3 deletions
core/data/raw/StsXyterMessage.h
with
11 additions
and
3 deletions
core/data/raw/StsXyterMessage.h
+
11
−
3
View file @
ff01cc62
...
...
@@ -55,6 +55,14 @@ namespace stsxyter {
msg_print_Human
=
(
0x1
<<
3
)
};
ENABLE_BITMASK_OPERATORS
(
stsxyter
::
MessagePrintMask
)
// Preproc macro!
/// MS error flags
enum
class
MsErrorFlags
:
uint16_t
{
MsErrOutFifoAlmostFull
=
(
0x1
<<
0
),
MsErrOutFifoOverflow
=
(
0x1
<<
1
),
MsErrTimeoutBinReadout
=
(
0x1
<<
2
),
MsErrBinOverflow
=
(
0x1
<<
3
)
};
/// Fields position (Start bit index)
static
const
uint16_t
kusPosNotHitFlag
=
31
;
...
...
@@ -79,8 +87,8 @@ namespace stsxyter {
static
const
uint16_t
kusPosStatCpFlag
=
0
;
// Empty/End of MS
static
const
uint16_t
kusPosEmptyFlag
=
28
;
static
const
uint16_t
kusPosMsErr
Flag
=
2
;
static
const
uint16_t
kusPosMsErr
Type
=
0
;
static
const
uint16_t
kusPosMsErr
Type
=
1
;
static
const
uint16_t
kusPosMsErr
Flag
=
0
;
/// Fields length (bits)
static
const
uint16_t
kusLenNotHitFlag
=
1
;
...
...
@@ -107,8 +115,8 @@ namespace stsxyter {
static
const
uint16_t
kusLenStatCpFlag
=
1
;
// Empty/End of MS
static
const
uint16_t
kusLenEmptyFlag
=
1
;
static
const
uint16_t
kusLenMsErrType
=
4
;
static
const
uint16_t
kusLenMsErrFlag
=
1
;
static
const
uint16_t
kusLenMsErrType
=
2
;
/// Fields Info
static
const
MessField
kFieldLinkIndex
(
kusPosLinkIndex
,
kusLenLinkIndex
);
...
...
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