zlgcan 0.2.2__cp312-cp312-win_amd64.whl → 0.2.3b0__cp312-cp312-win_amd64.whl
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.
- zlgcan/zlgcan.py +6 -5
- {zlgcan-0.2.2.dist-info → zlgcan-0.2.3b0.dist-info}/METADATA +1 -1
- zlgcan-0.2.3b0.dist-info/RECORD +9 -0
- zlgcan_driver/zlgcan_driver.cp312-win_amd64.pyd +0 -0
- zlgcan-0.2.2.dist-info/RECORD +0 -9
- {zlgcan-0.2.2.dist-info → zlgcan-0.2.3b0.dist-info}/WHEEL +0 -0
- {zlgcan-0.2.2.dist-info → zlgcan-0.2.3b0.dist-info}/entry_points.txt +0 -0
- {zlgcan-0.2.2.dist-info → zlgcan-0.2.3b0.dist-info}/licenses/LICENSE.txt +0 -0
zlgcan/zlgcan.py
CHANGED
@@ -28,9 +28,10 @@ except ModuleNotFoundError:
|
|
28
28
|
}.get(_platform, not_support)
|
29
29
|
|
30
30
|
|
31
|
-
class
|
32
|
-
|
33
|
-
|
31
|
+
class ZCanChlType:
|
32
|
+
CAN = 0
|
33
|
+
CANFD_ISO = 1
|
34
|
+
CANFD_NON_ISO = 2
|
34
35
|
|
35
36
|
class ZCanChlMode:
|
36
37
|
Normal = 0
|
@@ -168,12 +169,12 @@ class ZCanBus(can.BusABC):
|
|
168
169
|
dbitrate = cfg.get("dbitrate", None)
|
169
170
|
assert bitrate is not None, "bitrate is required!"
|
170
171
|
_cfg = ZCanChlCfgPy(
|
171
|
-
|
172
|
+
chl_type=cfg.get("chl_type", ZCanChlType.CANFD_ISO if dbitrate else ZCanChlType.CAN),
|
173
|
+
chl_mode=cfg.get("chl_mode", 0),
|
172
174
|
bitrate=bitrate,
|
173
175
|
filter=cfg.get("filter"),
|
174
176
|
dbitrate=dbitrate,
|
175
177
|
resistance=bool(cfg.get("resistance", 1)),
|
176
|
-
fdchl_type=cfg.get("fdchl_type", ZCanFdChlType.ISO),
|
177
178
|
acc_code=cfg.get("acc_code"),
|
178
179
|
acc_mask=cfg.get("acc_mask"),
|
179
180
|
brp=cfg.get("brp")
|
@@ -0,0 +1,9 @@
|
|
1
|
+
zlgcan-0.2.3b0.dist-info/METADATA,sha256=We1kpOQXZQPKlARbGGeAlPIPzu1UYRXvdl_rVUXdBBI,3737
|
2
|
+
zlgcan-0.2.3b0.dist-info/WHEEL,sha256=0ua6B-UmXPKizyn4Mhcu6S66EB8t6wxm_Wsw5H1bZYs,96
|
3
|
+
zlgcan-0.2.3b0.dist-info/entry_points.txt,sha256=1BprfQnq7A25SfDsPk1ZbOgMv_SmYEUWc7Xz-oAf-V4,45
|
4
|
+
zlgcan-0.2.3b0.dist-info/licenses/LICENSE.txt,sha256=6n0EnHcF3BOvwgLdGOGCfzSE-CEv0_p7gvxKDDY0Msk,7816
|
5
|
+
zlgcan/__init__.py,sha256=uspwQytd3RGSaVs6LQADIa9MS_qvzySlfL2S9OhFBQA,21
|
6
|
+
zlgcan/zlgcan.py,sha256=mllOSEBmxG1hvpdfajCdKd-UTdgu5dgML0qSsYN4ph0,8837
|
7
|
+
zlgcan_driver/__init__.py,sha256=JBAj4WkBypBiHIJqXHIJTNHF4kpmhRmKqY48oDAmY3E,135
|
8
|
+
zlgcan_driver/zlgcan_driver.cp312-win_amd64.pyd,sha256=YhfI7orf-eswoBGl-a_aRP0m0jLYtWTiIrtPu8eMnTc,706560
|
9
|
+
zlgcan-0.2.3b0.dist-info/RECORD,,
|
Binary file
|
zlgcan-0.2.2.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
zlgcan-0.2.2.dist-info/METADATA,sha256=8wW5t7vgqXMchHeqp_zJOl7Gf2y1uwyaDaoL2_Tndo8,3735
|
2
|
-
zlgcan-0.2.2.dist-info/WHEEL,sha256=0ua6B-UmXPKizyn4Mhcu6S66EB8t6wxm_Wsw5H1bZYs,96
|
3
|
-
zlgcan-0.2.2.dist-info/entry_points.txt,sha256=1BprfQnq7A25SfDsPk1ZbOgMv_SmYEUWc7Xz-oAf-V4,45
|
4
|
-
zlgcan-0.2.2.dist-info/licenses/LICENSE.txt,sha256=6n0EnHcF3BOvwgLdGOGCfzSE-CEv0_p7gvxKDDY0Msk,7816
|
5
|
-
zlgcan/__init__.py,sha256=uspwQytd3RGSaVs6LQADIa9MS_qvzySlfL2S9OhFBQA,21
|
6
|
-
zlgcan/zlgcan.py,sha256=iyx6dkOl1E9uB62jFlWF8Q-AiamnkWFa769MuUZjbCg,8798
|
7
|
-
zlgcan_driver/__init__.py,sha256=JBAj4WkBypBiHIJqXHIJTNHF4kpmhRmKqY48oDAmY3E,135
|
8
|
-
zlgcan_driver/zlgcan_driver.cp312-win_amd64.pyd,sha256=KxG416YE7GdriGjh4f7ybTwXz7jUFH361jpMMNmQ1Zc,704512
|
9
|
-
zlgcan-0.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|