#[repr(u16)]pub enum DiagnosticSubfunction {
Show 18 variants
RetQueryData = 0,
RestartCommOpt = 1,
RetDiagReg = 2,
ChangeInputDelimiter = 3,
ForceListenOnlyMode = 4,
ClearCtrDiagReg = 10,
RetBusMsgCount = 11,
RetBusCommErrCount = 12,
RetBusExcErrCount = 13,
RetServerMsgCount = 14,
RetServerNoRespCount = 15,
RetServerNAKCount = 16,
RetServerBusyCount = 17,
RetBusCharOverrunCount = 18,
RetOverrunErrCount = 19,
ClearOverrunCounterFlag = 20,
GetClearPlusStats = 21,
Reserved = 22,
}
Expand description
Subfunction code names as stated in the protocol reference
Variants§
RetQueryData = 0
RestartCommOpt = 1
RetDiagReg = 2
ChangeInputDelimiter = 3
ForceListenOnlyMode = 4
ClearCtrDiagReg = 10
RetBusMsgCount = 11
RetBusCommErrCount = 12
RetBusExcErrCount = 13
RetServerMsgCount = 14
RetServerNoRespCount = 15
RetServerNAKCount = 16
RetServerBusyCount = 17
RetBusCharOverrunCount = 18
RetOverrunErrCount = 19
ClearOverrunCounterFlag = 20
GetClearPlusStats = 21
Reserved = 22
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 for DiagnosticSubfunction
impl PartialEq 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.
impl Copy for DiagnosticSubfunction
impl Eq for DiagnosticSubfunction
impl StructuralPartialEq for DiagnosticSubfunction
Auto Trait Implementations§
impl Freeze for DiagnosticSubfunction
impl RefUnwindSafe for DiagnosticSubfunction
impl Send for DiagnosticSubfunction
impl Sync for DiagnosticSubfunction
impl Unpin for DiagnosticSubfunction
impl UnwindSafe for DiagnosticSubfunction
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)