|
SmartSnippets DA1459x SDK
|
Gain and offset calibration. More...
Functions | |
| __STATIC_INLINE void | hw_gpadc_set_offset_positive (uint16_t offset) |
| Set offset adjustment for positive ADC array. This register offers a coarse offset calibration, whereas a finer calibration occurs in the hw_gpadc_apply_correction, using the device trim values (positive/negative offsets, gain correction) stored in the Configuration Script. More... | |
| __STATIC_INLINE uint16_t | hw_gpadc_get_offset_positive (void) |
| Get the current offset adjustment for positive ADC array. More... | |
| __STATIC_INLINE void | hw_gpadc_set_offset_negative (uint16_t offset) |
| Set offset adjustment for negative ADC array. This register offers a coarse offset calibration, whereas a finer calibration occurs in the hw_gpadc_apply_correction, using the device trim values (positive/negative offsets, gain correction) stored in the Configuration Script. More... | |
| __STATIC_INLINE uint16_t | hw_gpadc_get_offset_negative (void) |
| Get the current offset adjustment for negative ADC array. More... | |
| void | hw_gpadc_store_se_gain_error (int16_t single) |
| Store Single Ended ADC Gain Error. More... | |
| void | hw_gpadc_store_diff_gain_error (int16_t diff) |
| Store Differential ADC Gain Error. More... | |
| void | hw_gpadc_store_se_offset_error (int16_t single) |
| Store Single Ended ADC Offset Error. More... | |
| void | hw_gpadc_store_diff_offset_error (int16_t diff) |
| Store Differential ADC Offset Error. More... | |
| __STATIC_INLINE int16_t | hw_gpadc_calculate_single_ended_gain_error (int16_t low, int16_t high) |
| Calculate Single Ended ADC Gain Error from two points. More... | |
| __STATIC_INLINE int16_t | hw_gpadc_calculate_single_ended_offset_error (int16_t low, int16_t high) |
| Calculate Single Ended ADC Offset Error from two points. More... | |
| __STATIC_INLINE int16_t | hw_gpadc_calculate_differential_gain_error (int16_t low, int16_t high) |
| Calculate Differential ADC Gain Error from two points. More... | |
| __STATIC_INLINE int16_t | hw_gpadc_calculate_differential_offset_error (int16_t low, int16_t high) |
| Calculate Differential ADC Offset Error from two points. More... | |
| bool | hw_gpadc_pre_check_for_gain_error (void) |
| Check the availability of ADC Gain Error. More... | |
| int16_t | hw_gpadc_get_single_ended_gain_error (void) |
| Get single ended ADC Gain Error. More... | |
| void | hw_gpadc_offset_calibrate (void) |
| Perform coarse ADC offset calibration. More... | |
Gain and offset calibration.
| __STATIC_INLINE int16_t hw_gpadc_calculate_differential_gain_error | ( | int16_t | low, |
| int16_t | high | ||
| ) |
Calculate Differential ADC Gain Error from two points.
| [in] | low | measurement at the low end of the full scale |
| [in] | high | measurement at the high end of the full scale |
| __STATIC_INLINE int16_t hw_gpadc_calculate_differential_offset_error | ( | int16_t | low, |
| int16_t | high | ||
| ) |
Calculate Differential ADC Offset Error from two points.
| [in] | low | measurement at the low end of the full scale |
| [in] | high | measurement at the high end of the full scale |
| __STATIC_INLINE int16_t hw_gpadc_calculate_single_ended_gain_error | ( | int16_t | low, |
| int16_t | high | ||
| ) |
Calculate Single Ended ADC Gain Error from two points.
| [in] | low | measurement at the low end of the full scale |
| [in] | high | measurement at the high end of the full scale |
| __STATIC_INLINE int16_t hw_gpadc_calculate_single_ended_offset_error | ( | int16_t | low, |
| int16_t | high | ||
| ) |
Calculate Single Ended ADC Offset Error from two points.
| [in] | low | measurement at the low end of the full scale |
| [in] | high | measurement at the high end of the full scale |
| __STATIC_INLINE uint16_t hw_gpadc_get_offset_negative | ( | void | ) |
Get the current offset adjustment for negative ADC array.
| __STATIC_INLINE uint16_t hw_gpadc_get_offset_positive | ( | void | ) |
Get the current offset adjustment for positive ADC array.
| int16_t hw_gpadc_get_single_ended_gain_error | ( | void | ) |
Get single ended ADC Gain Error.
| void hw_gpadc_offset_calibrate | ( | void | ) |
Perform coarse ADC offset calibration.
A coarse offset calibration is performed at runtime. Dependent on the current
| bool hw_gpadc_pre_check_for_gain_error | ( | void | ) |
Check the availability of ADC Gain Error.
| __STATIC_INLINE void hw_gpadc_set_offset_negative | ( | uint16_t | offset | ) |
Set offset adjustment for negative ADC array. This register offers a coarse offset calibration, whereas a finer calibration occurs in the hw_gpadc_apply_correction, using the device trim values (positive/negative offsets, gain correction) stored in the Configuration Script.
| [in] | offset | offset value |
| __STATIC_INLINE void hw_gpadc_set_offset_positive | ( | uint16_t | offset | ) |
Set offset adjustment for positive ADC array. This register offers a coarse offset calibration, whereas a finer calibration occurs in the hw_gpadc_apply_correction, using the device trim values (positive/negative offsets, gain correction) stored in the Configuration Script.
| [in] | offset | offset value |
| void hw_gpadc_store_diff_gain_error | ( | int16_t | diff | ) |
Store Differential ADC Gain Error.
| [in] | diff | ADC Differential Gain Error |
| void hw_gpadc_store_diff_offset_error | ( | int16_t | diff | ) |
Store Differential ADC Offset Error.
| [in] | diff | ADC Differential Offset Error |
| void hw_gpadc_store_se_gain_error | ( | int16_t | single | ) |
Store Single Ended ADC Gain Error.
| [in] | single | ADC Single Ended Gain Error |
| void hw_gpadc_store_se_offset_error | ( | int16_t | single | ) |
Store Single Ended ADC Offset Error.
| [in] | single | ADC Single Ended Offset Error |
1.8.16