Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fw0.32/adc_calib: sync calibration state and use new attribute to decouple HW calibration #351

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

Adrian-Stanea
Copy link
Contributor

@Adrian-Stanea Adrian-Stanea commented Nov 29, 2023

  • Sync class parameters: m_adc_calib_offset, m_adc_calib_gain with device attributes. These are used to calibrate the raw data to volts.

  • In firmware version 0.32, the device attribute won't be used by the hardware, samples will be recieved uncalibrated. The calibration will be done in software.

  • In new libm2k, use the calibration attr is used to disable setting the computed calibration values in HW.

  • Note: - set calibration = 'true' (string vale): stops the HW calibration - set calibration = 'false' (string value): enables the HW calibration

@Adrian-Stanea Adrian-Stanea changed the title M2kAnalogIn: sync calibration state with device attrs and use new cal… fw0.32/adc_calib: syn calibration state and use new attribute to decouple HW calibration Nov 29, 2023
src/analog/m2kanalogin_impl.cpp Outdated Show resolved Hide resolved
src/analog/m2kanalogin_impl.hpp Show resolved Hide resolved
@Adrian-Stanea Adrian-Stanea changed the title fw0.32/adc_calib: syn calibration state and use new attribute to decouple HW calibration fw0.32/adc_calib: sync calibration state and use new attribute to decouple HW calibration Dec 7, 2023
…ibration attr

- Sync class parameters: m_adc_calib_offset, m_adc_calib_gain with device attributes.
These are used to calibrate the raw data to volts.
- In firmware version 0.32, the device attribute won't be used by the hardware,
samples will be recieved uncalibrated. The calibration will be done in software.

- I new libm2k, use the calibration attr is used to disable setting the computed calibration values in HW.
- Note:
    - set calibration = 'true' (string vale): stops the HW calibration
    - set calibration = 'false' (string value): enables the HW calibration

Signed-off-by: Adrian Stanea <[email protected]>
@AlexandraTrifan AlexandraTrifan merged commit d34e102 into master Jan 29, 2024
1 of 8 checks passed
@AlexandraTrifan AlexandraTrifan deleted the fw0.32/adc_calib branch January 29, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants