You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adafruit_mcp2515/__init__.py
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -223,14 +223,20 @@ def __init__(
223
223
debug: bool=False
224
224
):
225
225
"""A common shared-bus protocol.
226
+
226
227
:param ~busio.SPI spi: The SPI bus used to communicate with the MCP2515
227
228
:param ~digitalio.DigitalInOut cs_pin: SPI bus enable pin
228
-
:param int baudrate: The bit rate of the bus in Hz, using a 16Mhz crystal. All devices on the bus must agree on this value. Defaults to 250000.
229
-
:param bool loopback: Receive only packets sent from this device, and send only to this device. Requires that `silent` is also set to `False`, but only prevents transmission to other devices. Otherwise the send/receive behavior is normal.
230
-
:param bool silent: When `True` the controller does not transmit and all messages are received, ignoring errors and filters. This mode can be used to “sniff” a CAN bus without interfering. Defaults to `False`.
231
-
:param bool auto_restart: **Not supported by hardware. An `AttributeError` will be raised if `auto_restart` is set to `True`**
232
-
233
-
If `True`, will restart\ communications after entering bus-off state. Defaults to `False`.
229
+
:param int baudrate: The bit rate of the bus in Hz, using a 16Mhz crystal. All devices on\
230
+
the bus must agree on this value. Defaults to 250000.
231
+
:param bool loopback: Receive only packets sent from this device, and send only to this\
232
+
device. Requires that `silent` is also set to `True`, but only prevents transmission to\
233
+
other devices. Otherwise the send/receive behavior is normal.
234
+
:param bool silent: When `True` the controller does not transmit and all messages are\
235
+
received, ignoring errors and filters. This mode can be used to “sniff” a CAN bus without\
236
+
interfering. Defaults to `False`.
237
+
:param bool auto_restart: **Not supported by hardware. An `AttributeError` will be raised\
238
+
if `auto_restart` is set to `True`** If `True`, will restart communications after entering\
239
+
bus-off state. Defaults to `False`.
234
240
235
241
:param bool debug: If `True`, will enable printing debug information. Defaults to `False`.
0 commit comments