5.3.1.21.9.2. cli.helpers.fcan.CanBusConfig
- class cli.helpers.fcan.CanBusConfig(interface: str, channel: str | int | None = None, bitrate: int = 500000, dbc: Path | None = None)
Bases:
objectRepresent and validate a CAN bus connection configuration.
- interface
CAN backend identifier (for example
pcanorsocketcan).- Type:
str
- channel
Interface-specific channel identifier.
- Type:
str | int | None
- bitrate
Bus bitrate in bit/s.
- Type:
int
- dbc
Optional path to a DBC file.
- Type:
pathlib.Path | None