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

     1  package socketcan
     2  
     3  type ControllerError uint8
     4  
     5  //go:generate stringer -type ControllerError -trimprefix ControllerError
     6  
     7  const (
     8  	ControllerErrorUnspecified      ControllerError = 0x00
     9  	ControllerErrorRxBufferOverflow ControllerError = 0x01
    10  	ControllerErrorTxBufferOverflow ControllerError = 0x02
    11  	ControllerErrorRxWarning        ControllerError = 0x04
    12  	ControllerErrorTxWarning        ControllerError = 0x08
    13  	ControllerErrorRxPassive        ControllerError = 0x10
    14  	ControllerErrorTxPassive        ControllerError = 0x20 // at least one error counter exceeds 127
    15  	ControllerErrorActive           ControllerError = 0x40
    16  )