#[repr(u8)]pub enum FrameType {
Single = 0,
First = 16,
Consecutive = 32,
FlowControl = 48,
}Expand description
ISO-TP frame type define.
Variants§
Single = 0
| - data length -| - N_PCI bytes - | - note - |
| - le 8 - | - bit0(3~0) = length - | - std2004 - |
| - gt 8 - | - bit0(3~0) = 0; bit1(7~0) = length - | - std2016 - |
First = 16
| - data length -| - N_PCI bytes - | - note - |
| - le 4095 - | - bit0(3~0) + bit1(7~0) = length - | - std2004 - |
| - gt 4095 - | - bit0(3~0) + bit1(7~0) = 0; byte2~5(7~0) = length - | - std2016 - |
Consecutive = 32
FlowControl = 48
Trait Implementations§
Source§impl<'a> From<&'a CanIsoTpFrame> for FrameType
impl<'a> From<&'a CanIsoTpFrame> for FrameType
Source§fn from(value: &'a CanIsoTpFrame) -> Self
fn from(value: &'a CanIsoTpFrame) -> Self
Converts to this type from the input type.
Source§impl Ord for FrameType
impl Ord for FrameType
Source§impl PartialOrd for FrameType
impl PartialOrd for FrameType
impl Copy for FrameType
impl Eq for FrameType
impl StructuralPartialEq for FrameType
Auto Trait Implementations§
impl Freeze for FrameType
impl RefUnwindSafe for FrameType
impl Send for FrameType
impl Sync for FrameType
impl Unpin for FrameType
impl UnwindSafe for FrameType
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