github.com/blueinnovationsgroup/can-go@v0.0.0-20230518195432-d0567cda0028/pkg/socketcan/protocolviolationerrorlocation.go (about) 1 package socketcan 2 3 type ProtocolViolationErrorLocation uint8 4 5 //go:generate stringer -type ProtocolViolationErrorLocation -trimprefix ProtocolViolationErrorLocation 6 7 const ( 8 ProtocolViolationErrorLocationUnspecified ProtocolViolationErrorLocation = 0x00 9 ProtocolViolationErrorLocationStartOfFrame ProtocolViolationErrorLocation = 0x03 10 ProtocolViolationErrorLocationID28To21 ProtocolViolationErrorLocation = 0x02 // standard frames: 10 - 3 11 ProtocolViolationErrorLocationID20To18 ProtocolViolationErrorLocation = 0x06 // standard frames: 2 - 0 12 ProtocolViolationErrorLocationSubstituteRTR ProtocolViolationErrorLocation = 0x04 // standard frames: RTR 13 ProtocolViolationErrorLocationIDExtension ProtocolViolationErrorLocation = 0x05 14 ProtocolViolationErrorLocationIDBits17To13 ProtocolViolationErrorLocation = 0x07 15 ProtocolViolationErrorLocationIDBits12To05 ProtocolViolationErrorLocation = 0x0F 16 ProtocolViolationErrorLocationIDBits04To00 ProtocolViolationErrorLocation = 0x0E 17 ProtocolViolationErrorLocationRTR ProtocolViolationErrorLocation = 0x0C 18 ProtocolViolationErrorLocationReservedBit1 ProtocolViolationErrorLocation = 0x0D 19 ProtocolViolationErrorLocationReservedBit0 ProtocolViolationErrorLocation = 0x09 20 ProtocolViolationErrorLocationDataLengthCode ProtocolViolationErrorLocation = 0x0B 21 ProtocolViolationErrorLocationData ProtocolViolationErrorLocation = 0x0A 22 ProtocolViolationErrorLocationCRCSequence ProtocolViolationErrorLocation = 0x08 23 ProtocolViolationErrorLocationCRCDelimiter ProtocolViolationErrorLocation = 0x18 24 ProtocolViolationErrorLocationACKSlot ProtocolViolationErrorLocation = 0x19 25 ProtocolViolationErrorLocationACKDelimiter ProtocolViolationErrorLocation = 0x1B 26 ProtocolViolationErrorLocationEndOfFrame ProtocolViolationErrorLocation = 0x1A 27 ProtocolViolationErrorLocationIntermission ProtocolViolationErrorLocation = 0x12 28 )