github.com/blueinnovationsgroup/can-go@v0.0.0-20230518195432-d0567cda0028/pkg/socketcan/errorclass.go (about)

     1  package socketcan
     2  
     3  type ErrorClass uint32
     4  
     5  //go:generate stringer -type ErrorClass -trimprefix ErrorClass
     6  
     7  const (
     8  	ErrorClassTxTimeout         ErrorClass = 0x00000001
     9  	ErrorClassLostArbitration   ErrorClass = 0x00000002
    10  	ErrorClassController        ErrorClass = 0x00000004
    11  	ErrorClassProtocolViolation ErrorClass = 0x00000008
    12  	ErrorClassTransceiver       ErrorClass = 0x00000010
    13  	ErrorClassNoAck             ErrorClass = 0x00000020
    14  	ErrorClassBusOff            ErrorClass = 0x00000040
    15  	ErrorClassBusError          ErrorClass = 0x00000080
    16  	ErrorClassRestarted         ErrorClass = 0x00000100
    17  )