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

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)
 

Detailed Description

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

Member Enumeration Documentation

◆ ADCShiftSample

enum class TMC9660::ADC::SETUP::ADCShiftSample : uint8_t
strong

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]

union { ... } TMC9660::ADC::SETUP

◆ __pad0__

uint32_t TMC9660::ADC::SETUP::__pad0__

◆ __pad1__

uint32_t TMC9660::ADC::SETUP::__pad1__

◆ ADC_SHIFT_SAMPLE

ADCShiftSample TMC9660::ADC::SETUP::ADC_SHIFT_SAMPLE

ADC sample time shift.

◆ ADDRESS

constexpr uint8_t TMC9660::ADC::SETUP::ADDRESS = 0x02
staticconstexpr

Register address (Block 1)

◆ [struct]

struct { ... } TMC9660::ADC::SETUP::bits

◆ value

uint32_t TMC9660::ADC::SETUP::value

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