|
bool | setShuntType (tmc9660::tmcl::AdcShuntType shuntType) noexcept |
| Set the ADC shunt type (Parameter 12: ADC_SHUNT_TYPE).
|
|
bool | getShuntType (tmc9660::tmcl::AdcShuntType &shuntType) noexcept |
| Get the ADC shunt type (Parameter 12: ADC_SHUNT_TYPE).
|
|
bool | readRaw (int16_t &adc0, int16_t &adc1, int16_t &adc2, int16_t &adc3) noexcept |
| Read raw ADC values (Parameters 13-16: ADC_I0_RAW ... ADC_I3_RAW).
|
|
bool | setCSAGain (tmc9660::tmcl::CsaGain gain012, tmc9660::tmcl::CsaGain gain3) noexcept |
| Set current sense amplifier gain (Parameters 17/18: CSA_GAIN_ADC_I0_TO_ADC_I2, CSA_GAIN_ADC_I3).
|
|
bool | getCSAGain (tmc9660::tmcl::CsaGain &gain012, tmc9660::tmcl::CsaGain &gain3) noexcept |
| Get current sense amplifier gain (Parameters 17/18: CSA_GAIN_ADC_I0_TO_ADC_I2, CSA_GAIN_ADC_I3).
|
|
bool | setCSAFilter (tmc9660::tmcl::CsaFilter filter012, tmc9660::tmcl::CsaFilter filter3) noexcept |
| Set current sense amplifier filter (Parameters 19/20: CSA_FILTER_ADC_I0_TO_ADC_I2, CSA_FILTER_ADC_I3).
|
|
bool | getCSAFilter (tmc9660::tmcl::CsaFilter &filter012, tmc9660::tmcl::CsaFilter &filter3) noexcept |
| Get current sense amplifier filter (Parameters 19/20: CSA_FILTER_ADC_I0_TO_ADC_I2, CSA_FILTER_ADC_I3).
|
|
bool | setScalingFactor (uint16_t scalingFactor) noexcept |
| Set current scaling factor (Parameter 21: CURRENT_SCALING_FACTOR).
|
|
bool | getScalingFactor (uint16_t &scalingFactor) noexcept |
| Get current scaling factor (Parameter 21: CURRENT_SCALING_FACTOR).
|
|
bool | setPhaseAdcMapping (tmc9660::tmcl::AdcMapping ux1, tmc9660::tmcl::AdcMapping vx2, tmc9660::tmcl::AdcMapping wy1, tmc9660::tmcl::AdcMapping y2) noexcept |
| Set ADC mapping for each phase (Parameters 22-25: PHASE_UX1_ADC_MAPPING ... PHASE_Y2_ADC_MAPPING).
|
|
bool | getPhaseAdcMapping (tmc9660::tmcl::AdcMapping &ux1, tmc9660::tmcl::AdcMapping &vx2, tmc9660::tmcl::AdcMapping &wy1, tmc9660::tmcl::AdcMapping &y2) noexcept |
| Get ADC mapping for each phase (Parameters 22-25: PHASE_UX1_ADC_MAPPING ... PHASE_Y2_ADC_MAPPING).
|
|
bool | setScalingFactors (uint16_t scale0, uint16_t scale1, uint16_t scale2, uint16_t scale3) noexcept |
| Set individual ADC scaling factors (Parameters 26-29: ADC_I0_SCALE ... ADC_I3_SCALE).
|
|
bool | getScalingFactors (uint16_t &scale0, uint16_t &scale1, uint16_t &scale2, uint16_t &scale3) noexcept |
| Get individual ADC scaling factors (Parameters 26-29: ADC_I0_SCALE ... ADC_I3_SCALE).
|
|
bool | setInversion (tmc9660::tmcl::AdcInversion inv0, tmc9660::tmcl::AdcInversion inv1, tmc9660::tmcl::AdcInversion inv2, tmc9660::tmcl::AdcInversion inv3) noexcept |
| Set ADC inversion (Parameters 30-33: ADC_I0_INVERTED ... ADC_I3_INVERTED).
|
|
bool | getInversion (tmc9660::tmcl::AdcInversion &inv0, tmc9660::tmcl::AdcInversion &inv1, tmc9660::tmcl::AdcInversion &inv2, tmc9660::tmcl::AdcInversion &inv3) noexcept |
| Get ADC inversion (Parameters 30-33: ADC_I0_INVERTED ... ADC_I3_INVERTED).
|
|
bool | setOffsets (int16_t offset0, int16_t offset1, int16_t offset2, int16_t offset3) noexcept |
| Set ADC offset (Parameters 34-37: ADC_I0_OFFSET ... ADC_I3_OFFSET).
|
|
bool | getOffsets (int16_t &offset0, int16_t &offset1, int16_t &offset2, int16_t &offset3) noexcept |
| Get ADC offset (Parameters 34-37: ADC_I0_OFFSET ... ADC_I3_OFFSET).
|
|
bool | readScaledAndOffset (int16_t &adc0, int16_t &adc1, int16_t &adc2, int16_t &adc3) noexcept |
| Read scaled and offset-compensated ADC values (Parameters 38-41: ADC_I0 ... ADC_I3).
|
|
bool | calibrateOffsets (bool waitForCompletion=false, uint32_t timeoutMs=1000) noexcept |
| Calibrate the ADC offsets for current measurement.
|
|
bool | getCalibrationStatus (bool &isCalibrated) noexcept |
| Check if ADC offset calibration has been completed.
|
|
Subsystem for configuring ADC-based current measurement.