zlgcan 0.2.1b1__cp310-cp310-win_amd64.whl → 0.2.2__cp310-cp310-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 CHANGED
@@ -28,10 +28,9 @@ except ModuleNotFoundError:
28
28
  }.get(_platform, not_support)
29
29
 
30
30
 
31
- class ZCanChlType:
32
- CAN = 0
33
- CANFD_ISO = 1
34
- CANFD_NON_ISO = 2
31
+ class ZCanFdChlType:
32
+ ISO = 0
33
+ NON_ISO = 1
35
34
 
36
35
  class ZCanChlMode:
37
36
  Normal = 0
@@ -169,12 +168,12 @@ class ZCanBus(can.BusABC):
169
168
  dbitrate = cfg.get("dbitrate", None)
170
169
  assert bitrate is not None, "bitrate is required!"
171
170
  _cfg = ZCanChlCfgPy(
172
- chl_type=cfg.get("chl_type", ZCanChlType.CANFD_ISO if dbitrate else ZCanChlType.CAN),
173
- chl_mode=cfg.get("chl_mode", 0),
171
+ chl_mode=cfg.get("chl_mode", ZCanChlMode.Normal),
174
172
  bitrate=bitrate,
175
173
  filter=cfg.get("filter"),
176
174
  dbitrate=dbitrate,
177
175
  resistance=bool(cfg.get("resistance", 1)),
176
+ fdchl_type=cfg.get("fdchl_type", ZCanFdChlType.ISO),
178
177
  acc_code=cfg.get("acc_code"),
179
178
  acc_mask=cfg.get("acc_mask"),
180
179
  brp=cfg.get("brp")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zlgcan
3
- Version: 0.2.1b1
3
+ Version: 0.2.2
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -0,0 +1,9 @@
1
+ zlgcan-0.2.2.dist-info/METADATA,sha256=8wW5t7vgqXMchHeqp_zJOl7Gf2y1uwyaDaoL2_Tndo8,3735
2
+ zlgcan-0.2.2.dist-info/WHEEL,sha256=oIYcReGXK7h7Rxp85Q3K9Z3I1xK99xgU5My5R5-0sSU,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.cp310-win_amd64.pyd,sha256=ps6TPsoBtmDlUNtfLYp6nI85999ytYdSY3VGK4L8kY0,704512
9
+ zlgcan-0.2.2.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- zlgcan-0.2.1b1.dist-info/METADATA,sha256=cHTdXgN-AObf4e4EClJhDb46dfAQ-TKsicaHezXB5jo,3737
2
- zlgcan-0.2.1b1.dist-info/WHEEL,sha256=oIYcReGXK7h7Rxp85Q3K9Z3I1xK99xgU5My5R5-0sSU,96
3
- zlgcan-0.2.1b1.dist-info/entry_points.txt,sha256=1BprfQnq7A25SfDsPk1ZbOgMv_SmYEUWc7Xz-oAf-V4,45
4
- zlgcan-0.2.1b1.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.cp310-win_amd64.pyd,sha256=udDZKE7ZZZfa3T855jpoccmhoVwgyioFEi04Z_Gg2h4,702976
9
- zlgcan-0.2.1b1.dist-info/RECORD,,