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

Actual microstep current register (MSCURACT) More...

#include <tmc51x0_registers.hpp>

Public Attributes

uint32_t value
 
struct { 
 
   int32_t   cur_b: 9 
 
   uint32_t   reserved1: 7 
 Reserved bits (9..15) More...
 
   int32_t   cur_a: 9 
 
   uint32_t   reserved2: 7 
 Reserved bits (25..31) More...
 
bits 
 

Detailed Description

Actual microstep current register (MSCURACT)

Read-only register showing actual microstep current for both phases. Values are signed 9-bit (-256 to 255) as read from MSLUT (not scaled by current).

Bit assignments per datasheet:

  • Bits 8..0: CUR_B (signed) - Actual microstep current for motor phase B (sine wave)
  • Bits 24..16: CUR_A (signed) - Actual microstep current for motor phase A (co-sine wave)

Member Data Documentation

◆ [struct]

struct { ... } tmc51x0::MSCURACT_Register::bits

◆ cur_a

int32_t tmc51x0::MSCURACT_Register::cur_a

Bits 24..16: Actual microstep current phase A (signed, -256 to 255)

◆ cur_b

int32_t tmc51x0::MSCURACT_Register::cur_b

Bits 8..0: Actual microstep current phase B (signed, -256 to 255)

◆ reserved1

uint32_t tmc51x0::MSCURACT_Register::reserved1

Reserved bits (9..15)

◆ reserved2

uint32_t tmc51x0::MSCURACT_Register::reserved2

Reserved bits (25..31)

◆ value

uint32_t tmc51x0::MSCURACT_Register::value

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