5.3.1.24.8.2. cli.helpers.fcan.CanBusConfig
- class cli.helpers.fcan.CanBusConfig(interface: str, channel: str | int | None = None, bitrate: int = 500000, dbc: Path | None = None)
Represent 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
- __init__(interface: str, channel: str | int | None = None, bitrate: int = 500000, dbc: Path | None = None) None
Methods
__init__(interface[, channel, bitrate, dbc])Attributes