Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Commits
9b29aacf
Commit
9b29aacf
authored
Sep 08, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: move again the temperature to centi-degree for calib
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
55f47c19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fa-calibration.c
kernel/fa-calibration.c
+4
-4
No files found.
kernel/fa-calibration.c
View file @
9b29aacf
...
...
@@ -83,7 +83,7 @@ static const int64_t gain_adc_error_slope_fix[] = {
* @range: voltage range
* @gain_c: calibration value
* @delta_temp: temperature difference: (current temp. - calibration temp.)
* the unit must be
mill
i-degree
* the unit must be
cent
i-degree
*/
static
int
fa_calib_adc_gain_fix
(
int
range
,
int32_t
gain_c
,
int32_t
delta_temp
)
...
...
@@ -92,7 +92,7 @@ static int fa_calib_adc_gain_fix(int range, int32_t gain_c,
error
=
gain_adc_error_slope_fix
[
range
]
*
delta_temp
;
error
/=
0x2000
;
/* see comment above for gain_adc_error_slope_fix */
error
/=
100
0
;
/* convert to degree */
error
/=
100
;
/* convert to degree */
return
gain_c
-
error
;
}
...
...
@@ -116,7 +116,7 @@ static const int64_t gain_dac_error_slope_fix[] = {
* @range: voltage range
* @gain_c: calibration value
* @delta_temp: temperature difference: (current temp. - calibration temp.)
* the unit must be
mill
i-degree
* the unit must be
cent
i-degree
*/
static
int
fa_calib_dac_gain_fix
(
int
range
,
uint32_t
gain_c
,
int32_t
delta_temp
)
...
...
@@ -125,7 +125,7 @@ static int fa_calib_dac_gain_fix(int range, uint32_t gain_c,
error
=
gain_dac_error_slope_fix
[
range
]
*
delta_temp
;
error
/=
0x2000
;
/* see comment above for gain_dac_error_slope_fix */
error
/=
100
0
;
/* convert to degree */
error
/=
100
;
/* convert to degree */
return
gain_c
-
error
;
}
...
...
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