PyTmcStepper 0.7.4__tar.gz → 0.7.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytmcstepper-0.7.4/src/PyTmcStepper.egg-info → pytmcstepper-0.7.5}/PKG-INFO +1 -1
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/setup.cfg +1 -1
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5/src/PyTmcStepper.egg-info}/PKG-INFO +1 -1
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/reg/_tmc220x_reg.py +12 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/tmc_220x.py +13 -6
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/tmc_2240.py +3 -5
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/LICENSE +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/README.md +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/pyproject.toml +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/PyTmcStepper.egg-info/SOURCES.txt +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/PyTmcStepper.egg-info/dependency_links.txt +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/PyTmcStepper.egg-info/requires.txt +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/PyTmcStepper.egg-info/top_level.txt +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/__init__.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/_tmc_exceptions.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/_tmc_gpio_board.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/_tmc_logger.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/_tmc_math.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/_tmc_stallguard.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/_tmc_stepperdriver.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/com/__init__.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/com/_tmc_com.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/com/_tmc_com_spi.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/com/_tmc_com_uart.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/enable_control/__init__.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/enable_control/_tmc_ec.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/enable_control/_tmc_ec_pin.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/enable_control/_tmc_ec_toff.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/motion_control/__init__.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/motion_control/_tmc_mc.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/motion_control/_tmc_mc_step_dir.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/motion_control/_tmc_mc_step_pwm_dir.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/motion_control/_tmc_mc_step_reg.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/motion_control/_tmc_mc_vactual.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/reg/__init__.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/reg/_tmc2209_reg.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/reg/_tmc224x_reg.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/reg/_tmc_reg.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/tmc_2208.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/tmc_2209.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/tests/test_tmc2209.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/tests/test_tmc2240.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/tests/test_tmc_com_spi.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/tests/test_tmc_com_uart.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/tests/test_tmc_ec_pin.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/tests/test_tmc_math.py +0 -0
- {pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/tests/test_tmc_move.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyTmcStepper
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.5
|
|
4
4
|
Summary: This is a Python libary to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi
|
|
5
5
|
Home-page: https://github.com/Chr157i4n/PyTmcStepper
|
|
6
6
|
Author: Christian Köhlke
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = PyTmcStepper
|
|
3
|
-
version = 0.7.
|
|
3
|
+
version = 0.7.5
|
|
4
4
|
author = Christian Köhlke
|
|
5
5
|
author_email = christian@koehlke.de
|
|
6
6
|
description = This is a Python libary to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyTmcStepper
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.5
|
|
4
4
|
Summary: This is a Python libary to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi
|
|
5
5
|
Home-page: https://github.com/Chr157i4n/PyTmcStepper
|
|
6
6
|
Author: Christian Köhlke
|
|
@@ -125,6 +125,18 @@ class TStep(TmcReg):
|
|
|
125
125
|
super().__init__(0x12, "TSTEP", tmc_com, reg_map)
|
|
126
126
|
|
|
127
127
|
|
|
128
|
+
class TPwmThrs(TmcReg):
|
|
129
|
+
"""TPWMTHRS register class"""
|
|
130
|
+
|
|
131
|
+
def __init__(self, tmc_com: TmcCom):
|
|
132
|
+
"""constructor"""
|
|
133
|
+
|
|
134
|
+
reg_map = [
|
|
135
|
+
["tpwmthrs", 0, 0xFFFFF, int, None, ""]
|
|
136
|
+
]
|
|
137
|
+
super().__init__(0x13, "TPWMTHRS", tmc_com, reg_map)
|
|
138
|
+
|
|
139
|
+
|
|
128
140
|
class VActual(TmcReg):
|
|
129
141
|
"""VACTUAL register class"""
|
|
130
142
|
|
|
@@ -22,7 +22,6 @@ import typing
|
|
|
22
22
|
from ._tmc_stepperdriver import *
|
|
23
23
|
from .com._tmc_com import TmcCom
|
|
24
24
|
from .com._tmc_com_uart import TmcComUart
|
|
25
|
-
from .com._tmc_com_spi import TmcComSpi
|
|
26
25
|
from .motion_control._tmc_mc_step_reg import TmcMotionControlStepReg
|
|
27
26
|
from .enable_control._tmc_ec_toff import TmcEnableControlToff
|
|
28
27
|
from .motion_control._tmc_mc_vactual import TmcMotionControlVActual
|
|
@@ -102,6 +101,7 @@ class Tmc220x(TmcStepperDriver):
|
|
|
102
101
|
IHoldIRun,
|
|
103
102
|
TPowerDown,
|
|
104
103
|
TStep,
|
|
104
|
+
TPwmThrs,
|
|
105
105
|
VActual,
|
|
106
106
|
MsCnt,
|
|
107
107
|
ChopConf,
|
|
@@ -127,9 +127,9 @@ class Tmc220x(TmcStepperDriver):
|
|
|
127
127
|
# Setup Registers
|
|
128
128
|
self.tmc_com.tmc_registers = self.tmc_registers
|
|
129
129
|
|
|
130
|
+
self.clear_gstat()
|
|
130
131
|
if self.tmc_mc is not None:
|
|
131
132
|
self.read_steps_per_rev()
|
|
132
|
-
self.clear_gstat()
|
|
133
133
|
self.tmc_com.flush_serial_buffer()
|
|
134
134
|
|
|
135
135
|
|
|
@@ -207,11 +207,9 @@ class Tmc220x(TmcStepperDriver):
|
|
|
207
207
|
def clear_gstat(self):
|
|
208
208
|
"""clears the "GSTAT" register"""
|
|
209
209
|
self.tmc_logger.log("clearing GSTAT", Loglevel.INFO)
|
|
210
|
-
self.gstat.read()
|
|
211
210
|
|
|
212
|
-
self.gstat.
|
|
213
|
-
|
|
214
|
-
self.gstat.uv_cp = True
|
|
211
|
+
for reg in self.gstat.reg_map:
|
|
212
|
+
setattr(self.gstat, reg[0], True)
|
|
215
213
|
|
|
216
214
|
self.gstat.write_check()
|
|
217
215
|
|
|
@@ -581,6 +579,15 @@ class Tmc220x(TmcStepperDriver):
|
|
|
581
579
|
return self.chopconf.tstep
|
|
582
580
|
|
|
583
581
|
|
|
582
|
+
def set_tpwmthrs(self, tpwmthrs: int):
|
|
583
|
+
"""sets the current tpwmthrs
|
|
584
|
+
|
|
585
|
+
Args:
|
|
586
|
+
tpwmthrs (int): value for tpwmthrs
|
|
587
|
+
"""
|
|
588
|
+
self.tpwmthrs.tpwmthrs = tpwmthrs
|
|
589
|
+
self.tpwmthrs.write_check()
|
|
590
|
+
|
|
584
591
|
|
|
585
592
|
def set_vactual(self, vactual:int):
|
|
586
593
|
"""sets the register bit "VACTUAL" to to a given value
|
|
@@ -140,9 +140,9 @@ class Tmc2240(TmcStepperDriver, StallGuard):
|
|
|
140
140
|
# Setup Registers
|
|
141
141
|
self.tmc_com.tmc_registers = self.tmc_registers
|
|
142
142
|
|
|
143
|
+
self.clear_gstat()
|
|
143
144
|
if self.tmc_mc is not None:
|
|
144
145
|
self.read_steps_per_rev()
|
|
145
|
-
self.clear_gstat()
|
|
146
146
|
self.tmc_com.flush_serial_buffer()
|
|
147
147
|
|
|
148
148
|
|
|
@@ -220,11 +220,9 @@ class Tmc2240(TmcStepperDriver, StallGuard):
|
|
|
220
220
|
def clear_gstat(self):
|
|
221
221
|
"""clears the "GSTAT" register"""
|
|
222
222
|
self.tmc_logger.log("clearing GSTAT", Loglevel.INFO)
|
|
223
|
-
self.gstat.read()
|
|
224
223
|
|
|
225
|
-
self.gstat.
|
|
226
|
-
|
|
227
|
-
self.gstat.uv_cp = True
|
|
224
|
+
for reg in self.gstat.reg_map:
|
|
225
|
+
setattr(self.gstat, reg[0], True)
|
|
228
226
|
|
|
229
227
|
self.gstat.write_check()
|
|
230
228
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytmcstepper-0.7.4 → pytmcstepper-0.7.5}/src/tmc_driver/motion_control/_tmc_mc_step_pwm_dir.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|