Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Testing
Commits
66654062
Commit
66654062
authored
Jun 06, 2012
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc_adc: Fix bug in function to get adc correction registers value.
parent
4d6e8f85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fmc_adc.py
test/fmcadc100m14b4cha/python/fmc_adc.py
+2
-2
No files found.
test/fmcadc100m14b4cha/python/fmc_adc.py
View file @
66654062
...
...
@@ -769,7 +769,7 @@ class CFmcAdc100m:
def
get_adc_gain_corr
(
self
,
channel
):
try
:
reg_name
=
'CH'
+
str
(
self
.
channel_check
(
channel
))
+
"_GAIN"
self
.
fmc_adc_csr
.
set_field
(
reg_name
,
'VAL'
,
gain
)
return
self
.
fmc_adc_csr
.
get_field
(
reg_name
,
'VAL'
)
except
CSRDeviceOperationError
as
e
:
raise
FmcAdc100mOperationError
(
e
)
...
...
@@ -777,7 +777,7 @@ class CFmcAdc100m:
def
get_adc_offset_corr
(
self
,
channel
):
try
:
reg_name
=
'CH'
+
str
(
self
.
channel_check
(
channel
))
+
"_OFFSET"
self
.
fmc_adc_csr
.
set_field
(
reg_name
,
'VAL'
,
offset
)
return
self
.
fmc_adc_csr
.
get_field
(
reg_name
,
'VAL'
)
except
CSRDeviceOperationError
as
e
:
raise
FmcAdc100mOperationError
(
e
)
...
...
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