Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
3700b5d1
Commit
3700b5d1
authored
17 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1161: added RCU version
parent
2c1c051b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/APL/PIC/RSP_Protocol/include/APL/RSP_Protocol/RCUSettings.h
+15
-2
15 additions, 2 deletions
...L/PIC/RSP_Protocol/include/APL/RSP_Protocol/RCUSettings.h
with
15 additions
and
2 deletions
MAC/APL/PIC/RSP_Protocol/include/APL/RSP_Protocol/RCUSettings.h
+
15
−
2
View file @
3700b5d1
...
@@ -125,8 +125,9 @@ namespace LOFAR {
...
@@ -125,8 +125,9 @@ namespace LOFAR {
*
*
* 0x01000000 PRSG pseudo random sequence generator on (1), off (0)
* 0x01000000 PRSG pseudo random sequence generator on (1), off (0)
* 0x02000000 RESET on (1) hold board in reset
* 0x02000000 RESET on (1) hold board in reset
* 0x04000000 free used to be SPEC_INV, SI now in DIAG/Bypass
* 0x04000000 free used to be SPEC_INV, SI now in DIAG/Bypass
* 0xF8000000 TBD reserved
* 0x08000000 TBD reserved
* 0xF0000000 VERSION RCU version //PD
*/
*/
void
setRaw
(
uint32
raw
)
{
m_value
=
raw
;
m_modified
=
0xFFFFFFFF
;
}
void
setRaw
(
uint32
raw
)
{
m_value
=
raw
;
m_modified
=
0xFFFFFFFF
;
}
uint32
getRaw
()
const
{
return
m_value
;
}
uint32
getRaw
()
const
{
return
m_value
;
}
...
@@ -187,6 +188,17 @@ namespace LOFAR {
...
@@ -187,6 +188,17 @@ namespace LOFAR {
m_modified
|=
ENABLE_MASK
;
m_modified
|=
ENABLE_MASK
;
}
}
bool
getEnable
()
const
{
return
m_value
&
ENABLE_MASK
;
}
bool
getEnable
()
const
{
return
m_value
&
ENABLE_MASK
;
}
/**
* Set rcu version //PD
*/
void
setVersion
(
uint8
value
)
{
m_value
&=
~
VERSION_MASK
;
// clear VERSION bit
if
(
value
)
m_value
|=
((
value
&
0x0F
)
<<
(
20
+
8
));
// set VERSION bits
m_modified
|=
VERSION_MASK
;
}
uint8
getVersion
()
const
{
return
(
m_value
&
VERSION_MASK
)
>>
(
20
+
8
);
}
/*
/*
* Get RCU handler and RCU protocol settings separately
* Get RCU handler and RCU protocol settings separately
...
@@ -240,6 +252,7 @@ namespace LOFAR {
...
@@ -240,6 +252,7 @@ namespace LOFAR {
static
const
uint32
PRSG_MASK
=
0x01000000
;
static
const
uint32
PRSG_MASK
=
0x01000000
;
static
const
uint32
RESET_MASK
=
0x02000000
;
static
const
uint32
RESET_MASK
=
0x02000000
;
static
const
uint32
SPECINV_MASK
=
0x04000000
;
static
const
uint32
SPECINV_MASK
=
0x04000000
;
static
const
uint32
VERSION_MASK
=
0xF0000000
;
//PD
static
const
uint32
RCU_HANDLER_MASK
=
0x000000FF
;
static
const
uint32
RCU_HANDLER_MASK
=
0x000000FF
;
static
const
uint32
RCU_PROTOCOL_MASK
=
0xFFFFFF00
;
static
const
uint32
RCU_PROTOCOL_MASK
=
0xFFFFFF00
;
...
...
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