CANtact CAN Interface#
Interface for CANtact devices from Linklayer Labs
- class can.interfaces.cantact.CantactBus(channel, bitrate=500000, poll_interval=0.01, monitor=False, bit_timing=None, _testing=False, **kwargs)[source]#
Bases:
can.bus.BusABC
CANtact interface
- Parameters
- send(msg, timeout=None)[source]#
Transmit a message to the CAN bus.
Override this method to enable the transmit path.
- Parameters
msg (Message) – A message object.
timeout – If > 0, wait up to this many seconds for message to be ACK’ed or for transmit queue to be ready depending on driver implementation. If timeout is exceeded, an exception will be raised. Might not be supported by all interfaces. None blocks indefinitely.
- Raises
CanOperationError – If an error occurred while sending