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

Register conversion constants. More...

Variables

constexpr float TPOWERDOWN_DIVISOR = 262144.0F
 2^18, used for TPOWERDOWN and TZEROWAIT register conversion
 
constexpr float MS_PER_SEC = 1e3F
 Milliseconds per second (used for ms to seconds conversion)
 
constexpr float US_PER_SEC = 1e6F
 Microseconds per second (used for us to seconds conversion)
 
constexpr float NS_PER_SEC = 1e9F
 Nanoseconds per second (used for ns to seconds conversion)
 
constexpr float ENC_DECIMAL_MULTIPLIER = 1e4F
 Multiplier for encoder decimal mode (fractional part)
 
constexpr uint32_t ENC_BINARY_MULTIPLIER = 65536U
 Multiplier for encoder binary mode (2^16)
 

Detailed Description

Register conversion constants.

Constants used for converting between user-friendly units and register values.

Variable Documentation

◆ ENC_BINARY_MULTIPLIER

constexpr uint32_t tmc51x0::RegisterConstants::ENC_BINARY_MULTIPLIER = 65536U
constexpr

Multiplier for encoder binary mode (2^16)

◆ ENC_DECIMAL_MULTIPLIER

constexpr float tmc51x0::RegisterConstants::ENC_DECIMAL_MULTIPLIER = 1e4F
constexpr

Multiplier for encoder decimal mode (fractional part)

◆ MS_PER_SEC

constexpr float tmc51x0::RegisterConstants::MS_PER_SEC = 1e3F
constexpr

Milliseconds per second (used for ms to seconds conversion)

◆ NS_PER_SEC

constexpr float tmc51x0::RegisterConstants::NS_PER_SEC = 1e9F
constexpr

Nanoseconds per second (used for ns to seconds conversion)

◆ TPOWERDOWN_DIVISOR

constexpr float tmc51x0::RegisterConstants::TPOWERDOWN_DIVISOR = 262144.0F
constexpr

2^18, used for TPOWERDOWN and TZEROWAIT register conversion

◆ US_PER_SEC

constexpr float tmc51x0::RegisterConstants::US_PER_SEC = 1e6F
constexpr

Microseconds per second (used for us to seconds conversion)