|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
ADC Setup Register for timing and operational configuration. More...
#include <tmc9660_adc.hpp>
Public Types | |
| enum class | ADCShiftSample : uint8_t { SHIFT_500NS = 0 , SHIFT_600NS = 1 , SHIFT_700NS = 2 , SHIFT_800NS = 3 , SHIFT_900NS = 4 , SHIFT_1000NS = 5 , SHIFT_1100NS = 6 , SHIFT_1200NS = 7 , SHIFT_1300NS = 8 , SHIFT_1400NS = 9 , SHIFT_1500NS = 10 , SHIFT_1600NS = 11 , SHIFT_1700NS = 12 , SHIFT_1800NS = 13 , SHIFT_1900NS = 14 , SHIFT_2000NS = 15 } |
| ADC sample time shift options. More... | |
Public Attributes | ||
| union { | ||
| uint32_t value | ||
| struct { | ||
| uint32_t : 16 | ||
| ADCShiftSample ADC_SHIFT_SAMPLE: 4 | ||
| ADC sample time shift. More... | ||
| uint32_t : 12 | ||
| } bits | ||
| }; | ||
Static Public Attributes | |
| static constexpr uint8_t | ADDRESS = 0x02 |
| Register address (Block 1) | |
ADC Setup Register for timing and operational configuration.
Configures fundamental ADC timing parameters including sample time adjustments and operational modes. The sample time shift allows fine-tuning of measurement timing to optimize for different signal characteristics and noise environments.
Proper timing configuration is critical for accurate measurements, especially when dealing with high-frequency switching noise from PWM operations or when measuring rapidly changing signals like motor currents.
General ADC setup parameters such as timing and mode.
Block 1, Address: 0x002
Register Map:
| Bits | Name | Access | Description |
|---|---|---|---|
| 19:16 | ADC_SHIFT_SAMPLE | RW | Shift ADC sample time in steps of 100ns, base = 500ns. |
ADC sample time shift options.
| union { ... } tmc9660::register_mode::ADC::SETUP |
| uint32_t tmc9660::register_mode::ADC::SETUP::__pad0__ |
| uint32_t tmc9660::register_mode::ADC::SETUP::__pad1__ |
| ADCShiftSample tmc9660::register_mode::ADC::SETUP::ADC_SHIFT_SAMPLE |
ADC sample time shift.
Register address (Block 1)
| struct { ... } tmc9660::register_mode::ADC::SETUP::bits |
| uint32_t tmc9660::register_mode::ADC::SETUP::value |