HF-TMC9660 Driver
Hardware Agnostic C++ Driver for the TMC9660
|
ADC Setup Register (Address 0x002, Block 1). 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 (Address 0x002, Block 1).
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. |
|
strong |
ADC sample time shift options.
union { ... } TMC9660::ADC::SETUP |
uint32_t TMC9660::ADC::SETUP::__pad0__ |
uint32_t TMC9660::ADC::SETUP::__pad1__ |
ADCShiftSample TMC9660::ADC::SETUP::ADC_SHIFT_SAMPLE |
ADC sample time shift.
|
staticconstexpr |
Register address (Block 1)
struct { ... } TMC9660::ADC::SETUP::bits |
uint32_t TMC9660::ADC::SETUP::value |