HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
tmc51x0::PWM_SCALE_Register Union Reference

Results of stealthChop amplitude regulator register (PWM_SCALE) More...

#include <tmc51x0_registers.hpp>

Public Attributes

uint32_t value
 
struct { 
 
   uint32_t   pwm_scale_sum: 8 
 Bits 7..0: Actual PWM duty cycle (0-255) More...
 
   uint32_t   reserved1: 8 
 Reserved bits (8..15) More...
 
   int32_t   pwm_scale_auto: 9 
 
   uint32_t   reserved2: 7 
 Reserved bits (25..31) More...
 
bits 
 

Detailed Description

Results of stealthChop amplitude regulator register (PWM_SCALE)

Read-only register showing actual PWM duty cycle and automatic regulation results.

Bit assignments per datasheet:

  • Bits 7..0: PWM_SCALE_SUM - Actual PWM duty cycle (0-255)
  • Bits 24..16: PWM_SCALE_AUTO - 9-bit signed offset added to calculated PWM duty cycle Result of automatic amplitude regulation based on current measurement (signed -255...+255)

Member Data Documentation

◆ [struct]

struct { ... } tmc51x0::PWM_SCALE_Register::bits

◆ pwm_scale_auto

int32_t tmc51x0::PWM_SCALE_Register::pwm_scale_auto

Bits 24..16: Result of automatic amplitude regulation (signed -255...+255)

◆ pwm_scale_sum

uint32_t tmc51x0::PWM_SCALE_Register::pwm_scale_sum

Bits 7..0: Actual PWM duty cycle (0-255)

◆ reserved1

uint32_t tmc51x0::PWM_SCALE_Register::reserved1

Reserved bits (8..15)

◆ reserved2

uint32_t tmc51x0::PWM_SCALE_Register::reserved2

Reserved bits (25..31)

◆ value

uint32_t tmc51x0::PWM_SCALE_Register::value

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