5.3.1.20.1.1. cli.com.can_com.CAN
- class cli.com.can_com.CAN(name: str, parameter: CanBusConfig)
Communication interface for CAN bus operations. Handles initialization and interaction with CANProcess for reading and writing messages.
- __init__(name: str, parameter: CanBusConfig) None
Initializes the CAN communication interface.
- Parameters:
name (str) – Name of the CAN interface.
parameter (CanBusConfig) – Configuration parameters for the CAN bus.
Methods
__init__(name, parameter)Initializes the CAN communication interface.
is_alive([process_name])Checks whether the managed process or all processes are still alive.
read([block, timeout])Reads a CAN message from the output queue.
shutdown([block, timeout])Signals all processes to shut down and optionally waits until they have finished.
start()Starts all managed processes and waits until they are ready.
write(msg)Sends a CAN message by placing it on the input queue.