Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
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
LOFAR2.0
PyPCC
Commits
ff256b1a
Commit
ff256b1a
authored
3 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
RCU lookup table added
parent
0132a082
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#21387
passed
3 years ago
Stage: image
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/RECVTR.yaml
+2
-1
2 additions, 1 deletion
config/RECVTR.yaml
config/UNB2TR.yaml
+2
-1
2 additions, 1 deletion
config/UNB2TR.yaml
i2cserv/i2c_array.py
+3
-3
3 additions, 3 deletions
i2cserv/i2c_array.py
with
7 additions
and
5 deletions
config/RECVTR.yaml
+
2
−
1
View file @
ff256b1a
...
...
@@ -9,7 +9,8 @@ drivers:
-
name
:
I2C_RCU
type
:
i2c_array
#An array of similar devices connected to an I2C switch
parent
:
I2C1
parameters
:
[
0
,
31
,
5
]
#start,number of RCUs, error count to disable I2C (14 for LTS?)
parameters
:
[
20
,
22
,
0
,
2
,
4
,
6
,
10
,
12
,
14
,
16
,
18
,
24
,
26
,
28
,
30
,
8
,
7
,
5
,
3
,
1
,
23
,
21
,
19
,
13
,
11
,
9
,
15
,
17
,
31
,
29
,
27
,
25
]
#RCU lookup table
I2Ccut
:
5
#error count to disable I2C (14 for LTS?)
status
:
RECVTR_I2C_error
-
name
:
I2C_HBAT
type
:
hba1
#Special driver to manage HBAT1s.
...
...
This diff is collapsed.
Click to expand it.
config/UNB2TR.yaml
+
2
−
1
View file @
ff256b1a
...
...
@@ -10,7 +10,8 @@ drivers:
-
name
:
switch_UNB2
type
:
i2c_array
parent
:
I2C1
parameters
:
[
0
,
1
,
10
]
parameters
:
[
0
,
1
]
#lookup table
I2Ccut
:
10
status
:
UNB2TR_I2C_bus_error
-
name
:
switch_PS
...
...
This diff is collapsed.
Click to expand it.
i2cserv/i2c_array.py
+
3
−
3
View file @
ff256b1a
...
...
@@ -15,11 +15,11 @@ class i2c_array(i2c_dev):
# self.SWcallback=Switchcallback
# self.previousHBA=np.zeros([number,3,32],dtype='int')
pars
=
config
[
'
parameters
'
];
self
.
RCU_Switch1
=
range
(
pars
[
0
],
pars
[
1
]
+
1
);
self
.
RCU_Switch1
=
pars
;
#
range(pars[0],pars[1]+1);
self
.
N
=
len
(
self
.
RCU_Switch1
);
self
.
I2Cmask
=
[
0
]
*
self
.
N
self
.
I2Ccut
=
pars
[
2
];
self
.
disableI2ConError
=
pars
[
2
]
>
0
;
self
.
I2Ccut
=
config
.
get
(
'
I2Ccut
'
,
5
);
#
pars[2];
self
.
disableI2ConError
=
self
.
I2Ccut
>
0
;
# self.devregs,RCU_storeReg=DevRegList(yaml)
# print("Init",config['name'],'len=',len(self.RCU_Switch1),' stored reg=',RCU_storeReg)
# self.previous =np.zeros([self.N,RCU_storeReg],dtype='int')
...
...
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