Enum ecu_diagnostics::kwp2000::KWP2000Command [−][src]
#[repr(u8)]
pub enum KWP2000Command {
Show 28 variants
StartDiagnosticSession,
ECUReset,
ClearDiagnosticInformation,
ReadStatusOfDiagnosticTroubleCodes,
ReadDiagnosticTroubleCodesByStatus,
ReadECUIdentification,
ReadDataByLocalIdentifier,
ReadDataByIdentifier,
ReadMemoryByAddress,
SecurityAccess,
DisableNormalMessageTransmission,
EnableNormalMessageTransmission,
DynamicallyDefineLocalIdentifier,
WriteDataByIdentifier,
InputOutputControlByLocalIdentifier,
StartRoutineByLocalIdentifier,
StopRoutineByLocalIdentifier,
RequestRoutineResultsByLocalIdentifier,
RequestDownload,
RequestUpload,
TransferData,
RequestTransferExit,
WriteDataByLocalIdentifier,
WriteMemoryByAddress,
TesterPresent,
ControlDTCSettings,
ResponseOnEvent,
CustomSid(u8),
}
Expand description
KWP Command Service IDs.
Note. This does not cover both the ‘Reserved’ range (0x87-0xB9) and ‘System supplier specific’ range (0xBA-0xBF)
Variants
Start or change ECU diagnostic session mode. See [start_diagnostic_session]
Reset the ECU. See [ecu_reset]
Clears diagnostic information stored on the ECU. See [clear_diagnostic_information]
Reads snapshot data of DTCs stored on the ECU. See [read_status_of_dtc]
Reads DTCs stored on the ECU. See [read_dtc_by_status]
Reads ECU identification data. See [read_ecu_identification]
Reads data from the ECU using a local identifier. See [read_data_by_local_id]
Reads data from the ECU using a unique identifier. See [read_data_by_identifier]
Reads memory from the ECU by address. See [read_memory_by_address]
Security access functions. See [security_access]
Custom KWP2000 SID not part of the official specification
Tuple Fields of CustomSid
0: u8
Trait Implementations
fn execute_command_with_response(
&mut self,
sid: KWP2000Command,
args: &[u8]
) -> DiagServerResult<Vec<u8>>
fn execute_command_with_response(
&mut self,
sid: KWP2000Command,
args: &[u8]
) -> DiagServerResult<Vec<u8>>
Send a command to the ECU, and receive its response
Parameters
- sid - The Service ID of the command
- args - The arguments for the service
Returns
If the function is successful, and the ECU responds with an OK response (Containing data), then the full ECU response is returned. The response will begin with the sid + 0x40
Send a command to the ECU, but don’t receive a response
Parameters
- sid - The Service ID of the command
- args - The arguments for the service
Sends an arbitrary byte array to the ECU, and does not query response from the ECU
Sends an arbitrary byte array to the ECU, and polls for the ECU’s response
Sets the command retry counter
Sets the command retry interval
Returns true if the internal KWP2000 Server is running
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for KWP2000Command
impl Send for KWP2000Command
impl Sync for KWP2000Command
impl Unpin for KWP2000Command
impl UnwindSafe for KWP2000Command
Blanket Implementations
Mutably borrows from an owned value. Read more