github.com/jshiv/can-go@v0.2.1-0.20210224011015-069e90e90bdf/pkg/socketcan/transceivererror.go (about)

     1  package socketcan
     2  
     3  type TransceiverError uint8
     4  
     5  //go:generate stringer -type TransceiverError -trimprefix TransceiverError
     6  
     7  const (
     8  	TransceiverErrorUnspecified     TransceiverError = 0x00
     9  	TransceiverErrorCANHNoWire      TransceiverError = 0x04
    10  	TransceiverErrorCANHShortToBat  TransceiverError = 0x05
    11  	TransceiverErrorCANHShortToVCC  TransceiverError = 0x06
    12  	TransceiverErrorCANHShortToGND  TransceiverError = 0x07
    13  	TransceiverErrorCANLNoWire      TransceiverError = 0x40
    14  	TransceiverErrorCANLShortToBat  TransceiverError = 0x50
    15  	TransceiverErrorCANLShortToVcc  TransceiverError = 0x60
    16  	TransceiverErrorCANLShortToGND  TransceiverError = 0x70
    17  	TransceiverErrorCANLShortToCANH TransceiverError = 0x80
    18  )