aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tmc_uart.py
diff options
context:
space:
mode:
authorTimofey Titovets <nefelim4ag@gmail.com>2024-05-15 02:37:58 +0200
committerKevinOConnor <kevin@koconnor.net>2025-07-12 16:17:22 -0400
commit317f8c94c8bf83af4551fe57f1f8d7395a14773d (patch)
tree257ccad995d31e13a8f10894ac03f8f859832216 /klippy/extras/tmc_uart.py
parent9c0d0f6a72897dd8eea8a95a7fabcc3c28f3a12c (diff)
downloadkutter-317f8c94c8bf83af4551fe57f1f8d7395a14773d.tar.gz
kutter-317f8c94c8bf83af4551fe57f1f8d7395a14773d.tar.xz
kutter-317f8c94c8bf83af4551fe57f1f8d7395a14773d.zip
tmc.py: add track of stallguard
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Diffstat (limited to 'klippy/extras/tmc_uart.py')
-rw-r--r--klippy/extras/tmc_uart.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/extras/tmc_uart.py b/klippy/extras/tmc_uart.py
index 93935042..fa0d6262 100644
--- a/klippy/extras/tmc_uart.py
+++ b/klippy/extras/tmc_uart.py
@@ -187,6 +187,8 @@ class MCU_TMC_uart_bitbang:
self.analog_mux.activate(instance_id)
msg = self._encode_write(0xf5, addr, reg | 0x80, val)
self.tmcuart_send_cmd.send([self.oid, msg, 0], minclock=minclock)
+ def get_mcu(self):
+ return self.mcu
# Lookup a (possibly shared) tmc uart
def lookup_tmc_uart_bitbang(config, max_addr):
@@ -261,3 +263,5 @@ class MCU_TMC_uart:
"Unable to write tmc uart '%s' register %s" % (self.name, reg_name))
def get_tmc_frequency(self):
return self.tmc_frequency
+ def get_mcu(self):
+ return self.mcu_uart.get_mcu()