#[repr(u8)]
pub enum UdsCommand {
Show 26 variants DiagnosticSessionControl = 16, ECUReset = 17, SecurityAccess = 39, CommunicationControl = 40, TesterPresent = 62, Authentication = 41, SecuredDataTransmission = 132, ControlDTCSetting = 133, ResponseOnEvent = 134, LinkControl = 135, ReadDataByIdentifier = 34, ReadMemoryByAddress = 35, ReadScalingDataByIdentifier = 36, ReadDataByPeriodicIdentifier = 42, DynamicallyDefineDataIdentifier = 44, WriteDataByIdentifier = 46, WriteMemoryByAddress = 61, ClearDiagnosticInformation = 20, ReadDTCInformation = 25, InputOutputControlByIdentifier = 47, RoutineControl = 49, RequestDownload = 52, RequestUpload = 53, TransferData = 54, RequestTransferExit = 55, RequestFileTransfer = 56,
}
Expand description

UDS Command Service IDs

Variants§

§

DiagnosticSessionControl = 16

The client requests to control a diagnostic session with a server(s).

§

ECUReset = 17

The client forces the server(s) to perform a reset.

§

SecurityAccess = 39

The client requests to unlock a secured server(s).

§

CommunicationControl = 40

The client controls the setting of communication parameters in the server (e.g. communication baud-rate).

§

TesterPresent = 62

The client indicates to the server(s) that it is still present.

§

Authentication = 41

The client requests to access the server(s) with a specific access mode.

§

SecuredDataTransmission = 132

The client uses this service to perform data transmission with an extended data link security.

§

ControlDTCSetting = 133

The client controls the setting of DTCs in the server.

§

ResponseOnEvent = 134

The client requests to set up and/or control an event mechanism in the server.

§

LinkControl = 135

The client requests control of the communication baud-rate.

§

ReadDataByIdentifier = 34

The client requests to read the current value of a record identified by a provided dataIdentifier.

§

ReadMemoryByAddress = 35

The client requests to read the current value of the provided memory range.

§

ReadScalingDataByIdentifier = 36

The client requests to read the scaling information of a record identified by a provided dataIdentifier.

§

ReadDataByPeriodicIdentifier = 42

The client requests to schedule data in the server for periodic transmission.

§

DynamicallyDefineDataIdentifier = 44

The client requests to dynamically define data Identifiers that may subsequently be read by the UdsCommand::ReadDataByIdentifier service.

§

WriteDataByIdentifier = 46

The client requests to write a record specified by a provided dataIdentifier.

§

WriteMemoryByAddress = 61

The client requests to overwrite a provided memory range.

§

ClearDiagnosticInformation = 20

Allows the client to clear diagnostic information from the server (including DTCs, captured data, etc.).

§

ReadDTCInformation = 25

Allows the client to request diagnostic information from the server (including DTCs, captured data, etc.).

§

InputOutputControlByIdentifier = 47

The client requests the control of an input/output specific to the server.

§

RoutineControl = 49

The client requests to start, stop a routine in the server(s) or requests the routine results.

§

RequestDownload = 52

The client requests the negotiation of a data transfer from the client to the server.

§

RequestUpload = 53

The client requests the negotiation of a data transfer from the server to the client.

§

TransferData = 54

The client transmits data to the server (download) or requests data from the server (upload).

§

RequestTransferExit = 55

The client requests the termination of a data transfer.

§

RequestFileTransfer = 56

The client requests the negotiation of a file transfer between server and client.

Trait Implementations§

source§

impl Clone for UdsCommand

source§

fn clone(&self) -> UdsCommand

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UdsCommand

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for UdsCommand

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<UdsCommand> for ByteWrapper<UdsCommand>

source§

fn from(value: UdsCommand) -> ByteWrapper<UdsCommand>

Converts to this type from the input type.
source§

impl Ord for UdsCommand

source§

fn cmp(&self, other: &UdsCommand) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for UdsCommand

source§

fn eq(&self, other: &UdsCommand) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for UdsCommand

source§

fn partial_cmp(&self, other: &UdsCommand) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<u8> for UdsCommand

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: u8) -> Result<UdsCommand, <UdsCommand as TryFrom<u8>>::Error>

Performs the conversion.
source§

impl Copy for UdsCommand

source§

impl Eq for UdsCommand

source§

impl StructuralPartialEq for UdsCommand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.