TMC5160 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
tmc5160::units::CurrentPlan Struct Reference

The registers a current request turns into (page 36, 38). More...

#include <tmc5160_units.hpp>

Public Attributes

uint32_t global_scaler {0}
 GLOBALSCALER as a numerator, 129 to 256.
 
uint32_t global_scaler_reg {0}
 The register value: 0 stands for 256.
 
uint32_t irun {0}
 IRUN 0 to 31.
 
uint32_t ihold {0}
 IHOLD 0 to 31 (0 is 1/32 of full scale, not zero current).
 
uint32_t run_ma {0}
 The nominal run current the registers give, in mA, rounded down.
 
uint32_t hold_ma {0}
 The nominal hold current the registers give, in mA.
 
uint32_t full_scale_ma {0}
 The current at IRUN 31 with this GLOBALSCALER.
 

Detailed Description

The registers a current request turns into (page 36, 38).


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