Documentation ¶
Index ¶
- Constants
- type CanFrame
- type RawInterface
- func (itf *RawInterface) AddfilterPass(recv_ids []uint32, len uint32) error
- func (itf *RawInterface) Close() error
- func (itf *RawInterface) Receive() (*CanFrame, error)
- func (itf *RawInterface) Send(f *CanFrame) error
- func (itf *RawInterface) SetBaud(baud uint32) error
- func (itf *RawInterface) SetTxQueueLen(size uint32) error
Constants ¶
View Source
const ( CAN_EFF_MASK uint32 = unix.CAN_EFF_MASK CAN_SFF_MASK uint32 = unix.CAN_SFF_MASK CAN_RTR_FLAG uint32 = unix.CAN_RTR_FLAG CAN_EFF_FLAG uint32 = unix.CAN_EFF_FLAG )
View Source
const ( BAUD_1M = 1000000 BAUD_500K = 500000 BAUD_250K = 250000 BAUD_125K = 125000 BAUD_100K = 100000 BAUD_50K = 50000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawInterface ¶
type RawInterface struct {
// contains filtered or unexported fields
}
func NewCanItf ¶
func NewCanItf(ifName string) (*RawInterface, error)
func (*RawInterface) AddfilterPass ¶
func (itf *RawInterface) AddfilterPass(recv_ids []uint32, len uint32) error
func (*RawInterface) Close ¶
func (itf *RawInterface) Close() error
func (*RawInterface) Receive ¶
func (itf *RawInterface) Receive() (*CanFrame, error)
func (*RawInterface) Send ¶
func (itf *RawInterface) Send(f *CanFrame) error
func (*RawInterface) SetBaud ¶
func (itf *RawInterface) SetBaud(baud uint32) error
func (*RawInterface) SetTxQueueLen ¶
func (itf *RawInterface) SetTxQueueLen(size uint32) error
Click to show internal directories.
Click to hide internal directories.