Documentation
¶
Overview ¶
Package socketcan provides an interface to a CAN bus to read and write frames via the SocketCAN network stack on Linux.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanError ¶
type CanError struct { Class uint Detail uint Location uint // contains filtered or unexported fields }
CanError contains the error information parsed from CAN error frames
func ParseCanErrors ¶
ParseCanErrors returns the CAN errors from given CAN frame
type MultipleError ¶
type MultipleError struct {
// contains filtered or unexported fields
}
MultipleError implements the error interface and may contain multiple errors
func (*MultipleError) Add ¶
func (e *MultipleError) Add(err error)
Add adds the given error to the contained errors
func (*MultipleError) Err ¶
func (e *MultipleError) Err() (err error)
Err returns, dependent upon the count of contained errors, nil, the one contained error or the MultipleError itself. This should be returned as error to the calling function.
func (*MultipleError) Error ¶
func (e *MultipleError) Error() (s string)
Error implements the error interface
func (*MultipleError) Errors ¶
func (e *MultipleError) Errors() (errs []error)
Errors returns the contained errors
Click to show internal directories.
Click to hide internal directories.