pub enum PciType {
SingleFrame,
FirstFrame,
ConsecutiveFrame,
FlowControl,
}Expand description
The definition for the Protocol Control Information (PCI) byte type used in ISO 15765-2 (CAN TP).
Variants§
SingleFrame
Single Frame (SF): Used for messages that fit in a single frame (<= 7 bytes). PCI byte range: 0x00-0x0F.
FirstFrame
First Frame (FF): Indicates the start of a multi-frame message (> 7 bytes). PCI byte range: 0x10-0x1F.
ConsecutiveFrame
Consecutive Frame (CF): Contains the continuation of a multi-frame message. PCI byte range: 0x20-0x2F.
FlowControl
Flow Control (FC): Used for flow control to regulate the transmission of consecutive frames. PCI byte range: 0x30-0x3F.
Trait Implementations§
impl Copy for PciType
impl Eq for PciType
impl StructuralPartialEq for PciType
Auto Trait Implementations§
impl Freeze for PciType
impl RefUnwindSafe for PciType
impl Send for PciType
impl Sync for PciType
impl Unpin for PciType
impl UnsafeUnpin for PciType
impl UnwindSafe for PciType
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more