Documentation ¶
Index ¶
Constants ¶
View Source
const ( CanLinkType = "can" VcanLinkType = "vcan" )
View Source
const ( StateErrorActive = unix.CAN_STATE_ERROR_ACTIVE StateErrorWarning = unix.CAN_STATE_ERROR_WARNING StateErrorPassive = unix.CAN_STATE_ERROR_PASSIVE StateBusOff = unix.CAN_STATE_BUS_OFF StateStopped = unix.CAN_STATE_STOPPED StateSleeping = unix.CAN_STATE_SLEEPING StateMax = unix.CAN_STATE_MAX )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitTiming ¶
type BitTiming struct {
unix.CANBitTiming
}
type BitTimingConst ¶
type BitTimingConst struct {
unix.CANBitTimingConst
}
type BusErrorCounters ¶
type BusErrorCounters struct {
unix.CANBusErrorCounters
}
type CtrlMode ¶
type CtrlMode struct {
unix.CANCtrlMode
}
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) SetBitrate ¶
func (*Device) SetListenOnlyMode ¶ added in v0.6.0
type Info ¶
type Info struct { BitTiming BitTiming BitTimingConst BitTimingConst Clock Clock CtrlMode CtrlMode BusErrorCounters BusErrorCounters Type string State uint32 RestartMs uint32 }
type Stats ¶
type Stats struct {
unix.CANDeviceStats
}
Click to show internal directories.
Click to hide internal directories.