#[repr(u16)]
pub enum DiagnosticSubfunction {
Show 18 variants
RetQueryData,
RestartCommOpt,
RetDiagReg,
ChangeInputDelimiter,
ForceListenOnlyMode,
ClearCtrDiagReg,
RetBusMsgCount,
RetBusCommErrCount,
RetBusExcErrCount,
RetServerMsgCount,
RetServerNoRespCount,
RetServerNAKCount,
RetServerBusyCount,
RetBusCharOverrunCount,
RetOverrunErrCount,
ClearOverrunCounterFlag,
GetClearPlusStats,
Reserved,
}
Expand description
Subfunction code names as stated in the protocol reference
Variants§
RetQueryData
RestartCommOpt
RetDiagReg
ChangeInputDelimiter
ForceListenOnlyMode
ClearCtrDiagReg
RetBusMsgCount
RetBusCommErrCount
RetBusExcErrCount
RetServerMsgCount
RetServerNoRespCount
RetServerNAKCount
RetServerBusyCount
RetBusCharOverrunCount
RetOverrunErrCount
ClearOverrunCounterFlag
GetClearPlusStats
Reserved
Trait Implementations§
source§impl Clone for DiagnosticSubfunction
impl Clone for DiagnosticSubfunction
source§fn clone(&self) -> DiagnosticSubfunction
fn clone(&self) -> DiagnosticSubfunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DiagnosticSubfunction
impl Debug for DiagnosticSubfunction
source§impl Display for DiagnosticSubfunction
impl Display for DiagnosticSubfunction
source§impl PartialEq<DiagnosticSubfunction> for DiagnosticSubfunction
impl PartialEq<DiagnosticSubfunction> for DiagnosticSubfunction
source§fn eq(&self, other: &DiagnosticSubfunction) -> bool
fn eq(&self, other: &DiagnosticSubfunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for DiagnosticSubfunction
impl TryFrom<u16> for DiagnosticSubfunction
§type Error = TryFromPrimitiveError<DiagnosticSubfunction>
type Error = TryFromPrimitiveError<DiagnosticSubfunction>
The type returned in the event of a conversion error.