zlgcan 0.2.1b0__cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.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/__init__.py ADDED
@@ -0,0 +1 @@
1
+ from .zlgcan import *
zlgcan/zlgcan.py ADDED
@@ -0,0 +1,256 @@
1
+ """
2
+ The ZLGCAN device supported based on zlgcan-driver-rs.
3
+ See the example `zlgcan_demo.py`
4
+ """
5
+ import can
6
+ import collections
7
+ import time
8
+
9
+ from can import CanError, CanInitializationError, Message
10
+ from can.bus import LOG
11
+
12
+ from typing import Optional, Union, Sequence, Deque, Tuple, List, Dict
13
+ try:
14
+ from zlgcan_driver import ZCanChlCfgPy, ZCanMessagePy, ZDeriveInfoPy, ZCanDriverWrap, \
15
+ convert_to_python, convert_from_python, set_message_mode, \
16
+ zlgcan_device_info, zlgcan_init_can, zlgcan_clear_can_buffer, zlgcan_send, zlgcan_recv, zlgcan_close
17
+ except ModuleNotFoundError:
18
+ import sys
19
+ import platform
20
+ _system_bit, _ = platform.architecture()
21
+ _platform = sys.platform
22
+ not_support = CanError(f"The system {_platform}'.'{_system_bit} is not supported!")
23
+ require_lib = CanError("Please install library `zlgcan-driver`!")
24
+ raise {
25
+ "win32": {"32bit": not_support}.get(_system_bit, require_lib),
26
+ "darwin": not_support,
27
+ "linux": {"32bit": not_support}.get(_system_bit, require_lib)
28
+ }.get(_platform, not_support)
29
+
30
+
31
+ class ZCanChlType:
32
+ CAN = 0
33
+ CANFD_ISO = 1
34
+ CANFD_NON_ISO = 2
35
+
36
+ class ZCanChlMode:
37
+ Normal = 0
38
+ ListenOnly = 1
39
+
40
+ class ZCanTxMode:
41
+ NORMAL = 0 # 正常发送
42
+ SINGLE = 1 # 单次发送
43
+ SELF_SR = 2 # 自发自收
44
+ SINGLE_SELF_SR = 3 # 单次自发自收
45
+
46
+
47
+ class ZCANDeviceType:
48
+ ZCAN_PCI5121 = 1
49
+ ZCAN_PCI9810 = 2
50
+ ZCAN_USBCAN1 = 3
51
+ ZCAN_USBCAN2 = 4
52
+ ZCAN_PCI9820 = 5
53
+ ZCAN_CAN232 = 6
54
+ ZCAN_PCI5110 = 7
55
+ ZCAN_CANLITE = 8
56
+ ZCAN_ISA9620 = 9
57
+ ZCAN_ISA5420 = 10
58
+ ZCAN_PC104CAN = 11
59
+ ZCAN_CANETUDP = 12
60
+ ZCAN_CANETE = 12
61
+ ZCAN_DNP9810 = 13
62
+ ZCAN_PCI9840 = 14
63
+ ZCAN_PC104CAN2 = 15
64
+ ZCAN_PCI9820I = 16
65
+ ZCAN_CANETTCP = 17
66
+ ZCAN_PCIE_9220 = 18
67
+ ZCAN_PCI5010U = 19
68
+ ZCAN_USBCAN_E_U = 20
69
+ ZCAN_USBCAN_2E_U = 21
70
+ ZCAN_PCI5020U = 22
71
+ ZCAN_EG20T_CAN = 23
72
+ ZCAN_PCIE9221 = 24
73
+ ZCAN_WIFICAN_TCP = 25
74
+ ZCAN_WIFICAN_UDP = 26
75
+ ZCAN_PCIe9120 = 27
76
+ ZCAN_PCIe9110 = 28
77
+ ZCAN_PCIe9140 = 29
78
+ ZCAN_USBCAN_4E_U = 31
79
+ ZCAN_CANDTU_200UR = 32
80
+ ZCAN_CANDTU_MINI = 33
81
+ ZCAN_USBCAN_8E_U = 34
82
+ ZCAN_CANREPLAY = 35
83
+ ZCAN_CANDTU_NET = 36
84
+ ZCAN_CANDTU_100UR = 37
85
+ ZCAN_PCIE_CANFD_100U = 38
86
+ ZCAN_PCIE_CANFD_200U = 39
87
+ ZCAN_PCIE_CANFD_400U = 40
88
+ ZCAN_USBCANFD_200U = 41
89
+ ZCAN_USBCANFD_100U = 42
90
+ ZCAN_USBCANFD_MINI = 43
91
+ ZCAN_CANFDCOM_100IE = 44
92
+ ZCAN_CANSCOPE = 45
93
+ ZCAN_CLOUD = 46
94
+ ZCAN_CANDTU_NET_400 = 47
95
+ ZCAN_CANFDNET_TCP = 48
96
+ ZCAN_CANFDNET_200U_TCP = 48
97
+ ZCAN_CANFDNET_UDP = 49
98
+ ZCAN_CANFDNET_200U_UDP = 49
99
+ ZCAN_CANFDWIFI_TCP = 50
100
+ ZCAN_CANFDWIFI_100U_TCP = 50
101
+ ZCAN_CANFDWIFI_UDP = 51
102
+ ZCAN_CANFDWIFI_100U_UDP = 51
103
+ ZCAN_CANFDNET_400U_TCP = 52
104
+ ZCAN_CANFDNET_400U_UDP = 53
105
+ ZCAN_CANFDBLUE_200U = 54
106
+ ZCAN_CANFDNET_100U_TCP = 55
107
+ ZCAN_CANFDNET_100U_UDP = 56
108
+ ZCAN_CANFDNET_800U_TCP = 57
109
+ ZCAN_CANFDNET_800U_UDP = 58
110
+ ZCAN_USBCANFD_800U = 59
111
+ ZCAN_PCIE_CANFD_100U_EX = 60
112
+ ZCAN_PCIE_CANFD_400U_EX = 61
113
+ ZCAN_PCIE_CANFD_200U_MINI = 62
114
+ ZCAN_PCIE_CANFD_200U_M2 = 63
115
+ ZCAN_CANFDDTU_400_TCP = 64
116
+ ZCAN_CANFDDTU_400_UDP = 65
117
+ ZCAN_CANFDWIFI_200U_TCP = 66
118
+ ZCAN_CANFDWIFI_200U_UDP = 67
119
+ ZCAN_CANFDDTU_800ER_TCP = 68
120
+ ZCAN_CANFDDTU_800ER_UDP = 69
121
+ ZCAN_CANFDDTU_800EWGR_TCP = 70
122
+ ZCAN_CANFDDTU_800EWGR_UDP = 71
123
+ ZCAN_CANFDDTU_600EWGR_TCP = 72
124
+ ZCAN_CANFDDTU_600EWGR_UDP = 73
125
+
126
+ ZCAN_OFFLINE_DEVICE = 98
127
+ ZCAN_VIRTUAL_DEVICE = 99
128
+
129
+
130
+ class ZCanBus(can.BusABC):
131
+
132
+ def __init__(self,
133
+ channel: Union[int, Sequence[int], str] = None, *,
134
+ libpath: str = "library/",
135
+ device_type: int,
136
+ device_index: int = 0,
137
+ derive: ZDeriveInfoPy = None,
138
+ rx_queue_size: Optional[int] = None,
139
+ configs: Union[List[Dict], Tuple[Dict]] = None,
140
+ can_filters: Optional[can.typechecking.CanFilters] = None,
141
+ **kwargs: object):
142
+ """
143
+ Constructor
144
+
145
+ :param channel: Not used(from super).
146
+ :param libpath: The library root path.
147
+ :param device_type: The device type that your device belongs, see `ZCANDeviceType`.
148
+ :param device_index: The device index.
149
+ :param derive: The deriver info for specifying the channels and canfd supported if your device is not official.
150
+ :param rx_queue_size: The receiving queue size.
151
+ :param configs: The channel configration. See `zlgcan_demo.py`.
152
+ :param can_filters: From super.
153
+ """
154
+ super().__init__(channel=channel, can_filters=can_filters, **kwargs)
155
+
156
+ try:
157
+ cfg_length = len(configs)
158
+ if cfg_length == 0:
159
+ raise CanInitializationError("ZLG-CAN - Configuration list or tuple of dict is required.")
160
+
161
+ self.rx_queue = collections.deque(
162
+ maxlen=rx_queue_size
163
+ ) # type: Deque[can.Message] # channel, raw_msg
164
+ self.channels = []
165
+
166
+ cfg_list = []
167
+ for idx, cfg in enumerate(configs):
168
+ bitrate = cfg.get("bitrate", None)
169
+ dbitrate = cfg.get("dbitrate", None)
170
+ assert bitrate is not None, "bitrate is required!"
171
+ _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),
174
+ bitrate=bitrate,
175
+ filter=cfg.get("filter"),
176
+ dbitrate=dbitrate,
177
+ resistance=bool(cfg.get("resistance", 1)),
178
+ acc_code=cfg.get("acc_code"),
179
+ acc_mask=cfg.get("acc_mask"),
180
+ brp=cfg.get("brp")
181
+ )
182
+ cfg_list.append(_cfg)
183
+ self.channels.append(idx)
184
+
185
+ self.device = zlgcan_init_can(libpath, device_type, device_index, cfg_list, derive)
186
+
187
+ self.dev_info = zlgcan_device_info(self.device)
188
+ if self.dev_info is not None:
189
+ LOG.info(f"Device: {self.dev_info} has opened")
190
+ except Exception as e:
191
+ self.shutdown()
192
+ raise e
193
+
194
+ def send(self, msg: can.Message, timeout: Optional[float] = None, *,
195
+ tx_mode: ZCanTxMode = ZCanTxMode.NORMAL) -> None:
196
+ raw_msg = convert_from_python(msg)
197
+ set_message_mode(raw_msg, tx_mode)
198
+ zlgcan_send(self.device, raw_msg)
199
+
200
+ def shutdown(self) -> None:
201
+ LOG.debug("ZLG-CAN - shutdown.")
202
+ super().shutdown()
203
+ if hasattr(self, "device"):
204
+ zlgcan_close(self.device)
205
+
206
+ def poll_received_messages(self, timeout: Optional[float]):
207
+ if timeout is not None:
208
+ timeout = int(1_000 * timeout)
209
+ for channel in self.channels:
210
+ raw_msgs: list[ZCanMessagePy] = zlgcan_recv(self.device, channel, timeout)
211
+ # for raw_msg in raw_msgs:
212
+ # self.rx_queue.append(convert_to_python(raw_msg))
213
+ self.rx_queue.extend(map(lambda raw_msg: convert_to_python(raw_msg), raw_msgs))
214
+
215
+ def _recv_from_queue(self) -> Tuple[Message, bool]:
216
+ """Return a message from the internal receive queue"""
217
+ msg = self.rx_queue.popleft()
218
+ return msg, False
219
+
220
+ def _recv_internal(
221
+ self, timeout: Optional[float]
222
+ ) -> Tuple[Optional[Message], bool]:
223
+ if self.rx_queue:
224
+ return self._recv_from_queue()
225
+
226
+ deadline = None
227
+ while deadline is None or time.monotonic() < deadline:
228
+ if deadline is None and timeout is not None:
229
+ deadline = time.monotonic() + timeout
230
+
231
+ self.poll_received_messages(timeout or 0)
232
+
233
+ if self.rx_queue:
234
+ return self._recv_from_queue()
235
+
236
+ return None, False
237
+
238
+
239
+ if __name__ == '__main__':
240
+ with ZCanBus(interface="zlgcan",
241
+ libpath="../../../RustProjects/rust-can/zlgcan/library",
242
+ device_type=ZCANDeviceType.ZCAN_USBCANFD_200U,
243
+ configs=[{'bitrate': 500000, 'dbitrate': 1_000_000, 'resistance': 1}]) as bus:
244
+ # bus.send(can.Message(
245
+ # arbitration_id=0x7DF,
246
+ # is_extended_id=False,
247
+ # channel=0,
248
+ # data=[0x02, 0x10, 0x03, ],
249
+ # dlc=3,
250
+ # ), tx_mode=ZCanTxMode.SELF_SR)
251
+
252
+ start = time.monotonic()
253
+ while time.monotonic() - start < 10:
254
+ _msg = bus.recv()
255
+ print(_msg)
256
+
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.4
2
+ Name: zlgcan
3
+ Version: 0.2.1b0
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Requires-Dist: python-can
8
+ License-File: LICENSE.txt
9
+ Summary: Python wrapper for zlgcan driver.
10
+ Author: Jesse Smith
11
+ License: LGPL v3
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
14
+ Project-URL: homepage, https://github.com/zhuyu4839/zlgcan-driver
15
+ Project-URL: repository, https://github.com/zhuyu4839/zlgcan-driver
16
+
17
+ ![PyPI Downloads](https://static.pepy.tech/badge/zlgcan)
18
+ ![PyPI Downloads](https://static.pepy.tech/badge/zlgcan/month)
19
+
20
+ # ZLGCAN驱动及集成到python-can(不支持32位)
21
+
22
+ 1. 准备
23
+ * 确保安装相关驱动(USBCAN-I/II驱动得额外安装)
24
+ * 确保安装相[VC++运行环境](https://manual.zlg.cn/web/#/152?page_id=5332)
25
+ * 下载[library](https://github.com/zhuyu4839/rust-can/tree/master/zlgcan/library)文件夹(里面包含[bitrate.cfg.yaml](https://github.com/zhuyu4839/rust-can/tree/master/zlgcan/library/bitrate.cfg.yaml))
26
+ * 库文件示例:
27
+ ```shell
28
+ library
29
+ ├──bitrate.cfg.yaml
30
+ ├──linux
31
+ │ └─x86_64
32
+ └─windows
33
+ └─x86_64
34
+ ```
35
+ * 在初始化can.Bus的时候指定zlgcan库路径(从0.2.0开始移除`zcan.env`配置), 默认为相对工程运行文件同级目录下`library`
36
+ ```python
37
+ libpath=r"C:\your\library\path"
38
+ ```
39
+
40
+ 2. 安装zlgcan(不建议使用低于0.2.0版本)
41
+
42
+ ```shell
43
+ pip install zlgcan >= 0.2.0
44
+ ```
45
+
46
+ 3. 使用:
47
+ ```python
48
+ import can
49
+ from zlgcan.zlgcan import ZCanTxMode, ZCANDeviceType
50
+
51
+ with can.Bus(interface="zlgcan", device_type=ZCANDeviceType.ZCAN_USBCANFD_200U,
52
+ libpath="library/",
53
+ configs=[{'bitrate': 500000, 'resistance': 1}, {'bitrate': 500000, 'resistance': 1}]) as bus:
54
+ bus.send(can.Message(
55
+ arbitration_id=0x123,
56
+ is_extended_id=False,
57
+ channel=0,
58
+ data=[0x01, 0x02, 0x03, ],
59
+ dlc=3,
60
+ ), tx_mode=ZCanTxMode.SELF_SR)
61
+
62
+ # time.sleep(0.1)
63
+ _msg = bus.recv()
64
+ print(_msg)
65
+ ```
66
+
67
+ 4. CAN测试列表:
68
+ * USBCAN-I-mini - ZCAN_USBCAN1, ZCAN_USBCAN2
69
+ * USBCAN-4E-U - ZCAN_USBCAN_4E_U
70
+ * USBCANFD-100U-mini - ZCAN_USBCANFD_MINI
71
+ * USBCANFD-100U - ZCAN_USBCANFD_100U
72
+ * USBCANFD-200U - ZCAN_USBCANFD_200U
73
+ * USBCANFD-800U - ZCAN_USBCANFD_800U
74
+
75
+ 5. 注意事项:
76
+ * ZCAN_USBCAN1及ZCAN_USBCAN2类型的设备无论是windows还是Linux, 波特率支持均在`bitrate.cfg.yaml`中配置
77
+ * 此时计算timing0及timing1请下载[CAN波特率计算软件](https://zlg.cn/can/down/down/id/22.html)
78
+ * `bitrate.cfg.yaml`文件中USBCANFD设备只配置了500k及1M的波特率, 如需使用其他波特率, 请自行添加
79
+ * 其他CANFD类型的CAN卡仅仅在Linux上使用时`bitrate.cfg.yaml`中配置
80
+ * 此时计算相关值可以通过`ZCANPRO`软件
81
+ * 在Linux上使用ZCAN_USBCAN1衍生CAN卡时, 请在初始化时候设置`ZCanDeriveInfo`信息
82
+ * 该库主要依赖[rust-can](https://github.com/zhuyu4839/rust-can),如有问题,请提[issue](https://github.com/zhuyu4839/rust-can/issues/new)
83
+
84
+ 6. 官方工具及文档:
85
+ * [工具下载](https://zlg.cn/can/down/down/id/22.html)
86
+ * [驱动下载](https://manual.zlg.cn/web/#/146)
87
+ * [二次开发文档](https://manual.zlg.cn/web/#/42/1710)
88
+ * [二次开发文档CANFD-Linux](https://manual.zlg.cn/web/#/188/6982)
89
+ * [二次开发Demo](https://manual.zlg.cn/web/#/152/5332)
90
+
91
+
@@ -0,0 +1,9 @@
1
+ zlgcan-0.2.1b0.dist-info/METADATA,sha256=wcQHGAv4Q3Cc8X6ma1Y5YLb3JklQXSAXN3-mSX4jqnY,3737
2
+ zlgcan-0.2.1b0.dist-info/WHEEL,sha256=tKdHtpQgy7A134XkYf-vk3YO_5qw700B_YQRKRVozbA,129
3
+ zlgcan-0.2.1b0.dist-info/entry_points.txt,sha256=1BprfQnq7A25SfDsPk1ZbOgMv_SmYEUWc7Xz-oAf-V4,45
4
+ zlgcan-0.2.1b0.dist-info/licenses/LICENSE.txt,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
5
+ zlgcan/__init__.py,sha256=uspwQytd3RGSaVs6LQADIa9MS_qvzySlfL2S9OhFBQA,21
6
+ zlgcan/zlgcan.py,sha256=5BpwNUZq0d5OZ0YkmbCxUTUef6WicwkZaYGVHVRtcFg,8581
7
+ zlgcan_driver/__init__.py,sha256=JBAj4WkBypBiHIJqXHIJTNHF4kpmhRmKqY48oDAmY3E,135
8
+ zlgcan_driver/zlgcan_driver.cpython-314-x86_64-linux-gnu.so,sha256=VU5GU0J4Fs8HrZCX_Qfa8p39w0deaNVvcE6gEN867jU,1207992
9
+ zlgcan-0.2.1b0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64
@@ -0,0 +1,2 @@
1
+ [can.interface]
2
+ zlgcan=zlgcan.zlgcan:ZCanBus
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,5 @@
1
+ from .zlgcan_driver import *
2
+
3
+ __doc__ = zlgcan_driver.__doc__
4
+ if hasattr(zlgcan_driver, "__all__"):
5
+ __all__ = zlgcan_driver.__all__