Documentation ¶
Index ¶
- type Can
- func (my *Can) Bitrate() (uint32, error)
- func (my *Can) Close() error
- func (my *Can) Dial() (err error)
- func (my *Can) Info() (Info, error)
- func (my *Can) Init(ifName string) *Can
- func (my *Can) IsUp() (bool, error)
- func (my *Can) RcvFrame() (canframe.Frame, error)
- func (my *Can) SendFrame(f *canframe.Frame) (n int, err error)
- func (my *Can) SetBitrate(bitrate uint32) error
- func (my *Can) SetDown() error
- func (my *Can) SetFilter(fs []Filter) error
- func (my *Can) SetListenOnlyMode(mode bool) error
- func (my *Can) SetLoopback(enable bool) error
- func (my *Can) SetRecvTimeout(timeout time.Duration) error
- func (my *Can) SetSendTimeout(timeout time.Duration) error
- func (my *Can) SetUp() error
- type CanBitTiming
- type CanBitTimingConst
- type CanBusErrCounters
- type CanClock
- type CanCtrlMode
- type CanDevStats
- type Filter
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Can ¶
type Can struct {
// contains filtered or unexported fields
}
Can
func (*Can) SetBitrate ¶
To set bitrate, you must down the CAN interface first.
func (*Can) SetFilter ¶
You can use NewStdFilter, NewStdInvFilter(), NewExtFilter(), NewExtInvFilter() help functions to create []Filter.
func (*Can) SetListenOnlyMode ¶
Set the CAN in listen only mode.
func (*Can) SetRecvTimeout ¶
Set CAN receive timeout.
func (*Can) SetSendTimeout ¶
Set CAN send timeout.
type CanBitTiming ¶
type CanBitTiming unix.CANBitTiming
type CanBitTimingConst ¶
type CanBitTimingConst unix.CANBitTimingConst
type CanBusErrCounters ¶
type CanBusErrCounters unix.CANBusErrorCounters
type CanCtrlMode ¶
type CanCtrlMode unix.CANCtrlMode
type CanDevStats ¶
type CanDevStats unix.CANDeviceStats
type Info ¶
type Info struct { DevName string BitTiming CanBitTiming BitTimingConst CanBitTimingConst Clock CanClock CtrlMode CanCtrlMode ErrCounters CanBusErrCounters DevStats CanDevStats }
Click to show internal directories.
Click to hide internal directories.