github.com/blueinnovationsgroup/can-go@v0.0.0-20230518195432-d0567cda0028/pkg/socketcan/protocolviolationerror.go (about) 1 package socketcan 2 3 type ProtocolViolationError uint8 4 5 //go:generate stringer -type ProtocolViolationError -trimprefix ProtocolViolationError 6 7 const ( 8 ProtocolViolationErrorUnspecified ProtocolViolationError = 0x00 9 ProtocolViolationErrorSingleBit ProtocolViolationError = 0x01 10 ProtocolViolationErrorFrameFormat ProtocolViolationError = 0x02 11 ProtocolViolationErrorBitStuffing ProtocolViolationError = 0x04 12 ProtocolViolationErrorBit0 ProtocolViolationError = 0x08 // unable to send dominant bit 13 ProtocolViolationErrorBit1 ProtocolViolationError = 0x10 // unable to send recessive bit 14 ProtocolViolationErrorBusOverload ProtocolViolationError = 0x20 15 ProtocolViolationErrorActive ProtocolViolationError = 0x40 // active error announcement 16 ProtocolViolationErrorTx ProtocolViolationError = 0x80 // error occurred on transmission 17 )