HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
tmc9660::register_mode::ADC::SETUP Struct Reference

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)
 

Detailed Description

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.
Note
This register configures ADC timing and operational modes.

Member Enumeration Documentation

◆ ADCShiftSample

ADC sample time shift options.

Enumerator
SHIFT_500NS 

500ns

SHIFT_600NS 

600ns

SHIFT_700NS 

700ns

SHIFT_800NS 

800ns

SHIFT_900NS 

900ns

SHIFT_1000NS 

1000ns

SHIFT_1100NS 

1100ns

SHIFT_1200NS 

1200ns

SHIFT_1300NS 

1300ns

SHIFT_1400NS 

1400ns

SHIFT_1500NS 

1500ns

SHIFT_1600NS 

1600ns

SHIFT_1700NS 

1700ns

SHIFT_1800NS 

1800ns

SHIFT_1900NS 

1900ns

SHIFT_2000NS 

2000ns

Member Data Documentation

◆ [union]

◆ __pad0__

uint32_t tmc9660::register_mode::ADC::SETUP::__pad0__

◆ __pad1__

uint32_t tmc9660::register_mode::ADC::SETUP::__pad1__

◆ ADC_SHIFT_SAMPLE

ADCShiftSample tmc9660::register_mode::ADC::SETUP::ADC_SHIFT_SAMPLE

ADC sample time shift.

◆ ADDRESS

constexpr uint8_t tmc9660::register_mode::ADC::SETUP::ADDRESS = 0x02
staticconstexpr

Register address (Block 1)

◆ [struct]

struct { ... } tmc9660::register_mode::ADC::SETUP::bits

◆ value

uint32_t tmc9660::register_mode::ADC::SETUP::value

The documentation for this struct was generated from the following file: