TMC5160 Driver
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
tmc51x0::PWMCONF_Register Union Reference

stealthChop voltage PWM mode chopper configuration register (PWMCONF) More...

#include <tmc51x0_registers.hpp>

Public Attributes

uint32_t value
 
struct { 
 
   uint32_t   pwm_ofs: 8 
 Bits 7..0: User defined PWM amplitude (offset) More...
 
   uint32_t   pwm_grad: 8 
 Bits 15..8: User defined PWM amplitude (gradient) More...
 
   uint32_t   pwm_freq: 2 
 Bits 17..16: PWM frequency selection. More...
 
   uint32_t   pwm_autoscale: 1 
 Bit 18: Enable PWM automatic amplitude scaling. More...
 
   uint32_t   pwm_autograd: 1 
 Bit 19: PWM automatic gradient adaptation. More...
 
   uint32_t   freewheel: 2 
 Bits 21..20: Stand still option when I_HOLD=0. More...
 
   uint32_t   reserved1: 2 
 Bits 23..22: Reserved, set to 0. More...
 
   uint32_t   pwm_reg: 4 
 Bits 27..24: Regulation loop gradient. More...
 
   uint32_t   pwm_lim: 4 
 
} bits 
 

Detailed Description

stealthChop voltage PWM mode chopper configuration register (PWMCONF)

Configuration for stealthChop PWM mode operation.

Bit assignments per datasheet:

Member Data Documentation

◆ [struct]

struct { ... } tmc51x0::PWMCONF_Register::bits

◆ freewheel

uint32_t tmc51x0::PWMCONF_Register::freewheel

Bits 21..20: Stand still option when I_HOLD=0.

◆ pwm_autograd

uint32_t tmc51x0::PWMCONF_Register::pwm_autograd

Bit 19: PWM automatic gradient adaptation.

◆ pwm_autoscale

uint32_t tmc51x0::PWMCONF_Register::pwm_autoscale

Bit 18: Enable PWM automatic amplitude scaling.

◆ pwm_freq

uint32_t tmc51x0::PWMCONF_Register::pwm_freq

Bits 17..16: PWM frequency selection.

◆ pwm_grad

uint32_t tmc51x0::PWMCONF_Register::pwm_grad

Bits 15..8: User defined PWM amplitude (gradient)

◆ pwm_lim

uint32_t tmc51x0::PWMCONF_Register::pwm_lim

Bits 31..28: PWM automatic scale amplitude limit when switching on

◆ pwm_ofs

uint32_t tmc51x0::PWMCONF_Register::pwm_ofs

Bits 7..0: User defined PWM amplitude (offset)

◆ pwm_reg

uint32_t tmc51x0::PWMCONF_Register::pwm_reg

Bits 27..24: Regulation loop gradient.

◆ reserved1

uint32_t tmc51x0::PWMCONF_Register::reserved1

Bits 23..22: Reserved, set to 0.

◆ value

uint32_t tmc51x0::PWMCONF_Register::value

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