#[repr(u8)]pub enum NegativeResponseCode {
Show 41 variants
PositiveResponse = 0,
GeneralReject = 16,
ServiceNotSupported = 17,
SubFunctionNotSupported = 18,
IncorrectMessageLengthOrInvalidFormat = 19,
ResponseTooLong = 20,
BusyRepeatRequest = 33,
ConditionsNotCorrect = 34,
RequestSequenceError = 36,
NoResponseFromSubnetComponent = 37,
FailurePreventsExecutionOfRequestedAction = 38,
RequestOutOfRange = 49,
SecurityAccessDenied = 51,
InvalidKey = 53,
ExceededNumberOfAttempts = 54,
RequiredTimeDelayNotExpired = 55,
UploadDownloadNotAccepted = 112,
TransferDataSuspended = 113,
GeneralProgrammingFailure = 114,
WrongBlockSequenceCounter = 115,
RequestCorrectlyReceivedResponsePending = 120,
SubfunctionNotSupportedInActiveSession = 126,
ServiceNotSupportedInActiveSession = 127,
RpmTooHigh = 129,
RpmTooLow = 130,
EngineIsRunning = 131,
EngineIsNotRunning = 132,
EngineRunTimeTooLow = 133,
TemperatureTooHigh = 134,
TemperatureTooLow = 135,
VehicleSpeedTooHigh = 136,
VehicleSpeedTooLow = 137,
ThrottlePedalTooHigh = 138,
ThrottlePedalTooLow = 139,
TransmissionRangeNotInNeutral = 140,
TransmissionRangeNotInGear = 141,
BrakeSwitchNotClosed = 143,
ShiftLeverNotInPark = 144,
TorqueConverterClutchLocked = 145,
VoltageTooHigh = 146,
VoltageTooLow = 147,
}
Expand description
So called NRC - when server (ECU) sends negative response (SID 0x7F) it is followed by NRC byte, representing the error.
Variants§
PositiveResponse = 0
GeneralReject = 16
ServiceNotSupported = 17
SubFunctionNotSupported = 18
IncorrectMessageLengthOrInvalidFormat = 19
ResponseTooLong = 20
BusyRepeatRequest = 33
ConditionsNotCorrect = 34
RequestSequenceError = 36
NoResponseFromSubnetComponent = 37
FailurePreventsExecutionOfRequestedAction = 38
RequestOutOfRange = 49
SecurityAccessDenied = 51
InvalidKey = 53
ExceededNumberOfAttempts = 54
RequiredTimeDelayNotExpired = 55
UploadDownloadNotAccepted = 112
TransferDataSuspended = 113
GeneralProgrammingFailure = 114
WrongBlockSequenceCounter = 115
RequestCorrectlyReceivedResponsePending = 120
SubfunctionNotSupportedInActiveSession = 126
ServiceNotSupportedInActiveSession = 127
RpmTooHigh = 129
RpmTooLow = 130
EngineIsRunning = 131
EngineIsNotRunning = 132
EngineRunTimeTooLow = 133
TemperatureTooHigh = 134
TemperatureTooLow = 135
VehicleSpeedTooHigh = 136
VehicleSpeedTooLow = 137
ThrottlePedalTooHigh = 138
ThrottlePedalTooLow = 139
TransmissionRangeNotInNeutral = 140
TransmissionRangeNotInGear = 141
BrakeSwitchNotClosed = 143
ShiftLeverNotInPark = 144
TorqueConverterClutchLocked = 145
VoltageTooHigh = 146
VoltageTooLow = 147
Trait Implementations§
Source§impl Debug for NegativeResponseCode
impl Debug for NegativeResponseCode
Source§impl From<NegativeResponseCode> for u8
impl From<NegativeResponseCode> for u8
Source§fn from(enum_value: NegativeResponseCode) -> Self
fn from(enum_value: NegativeResponseCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NegativeResponseCode
impl PartialEq for NegativeResponseCode
Source§impl TryFrom<u8> for NegativeResponseCode
impl TryFrom<u8> for NegativeResponseCode
Source§type Error = TryFromPrimitiveError<NegativeResponseCode>
type Error = TryFromPrimitiveError<NegativeResponseCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for NegativeResponseCode
impl TryFromPrimitive for NegativeResponseCode
const NAME: &'static str = "NegativeResponseCode"
type Primitive = u8
type Error = TryFromPrimitiveError<NegativeResponseCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl StructuralPartialEq for NegativeResponseCode
Auto Trait Implementations§
impl Freeze for NegativeResponseCode
impl RefUnwindSafe for NegativeResponseCode
impl Send for NegativeResponseCode
impl Sync for NegativeResponseCode
impl Unpin for NegativeResponseCode
impl UnwindSafe for NegativeResponseCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more