#[repr(C, packed(1))]pub struct RdxUsbFsPacket {
pub timestamp_ns: u64,
pub arb_id: u32,
pub dlc: u8,
pub channel: u8,
pub flags: u16,
pub data: [u8; 48],
}
Expand description
Data packet passed to USB-full-speed devices which have a max packet size of 64.
Fields§
§timestamp_ns: u64
Timestamp since boot (nanoseconds)
arb_id: u32
CAN arbitration id.
dlc: u8
Data length code.
channel: u8
Relevant channel. Zero most of the time.
flags: u16
Misc flags (unused for now)
data: [u8; 48]
data (max size: 48 bytes)
Implementations§
Trait Implementations§
Source§impl Clone for RdxUsbFsPacket
impl Clone for RdxUsbFsPacket
Source§fn clone(&self) -> RdxUsbFsPacket
fn clone(&self) -> RdxUsbFsPacket
Returns a duplicate 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 RdxUsbFsPacket
impl Debug for RdxUsbFsPacket
Source§impl From<RdxUsbFsPacket> for RdxUsbPacket
impl From<RdxUsbFsPacket> for RdxUsbPacket
Source§fn from(value: RdxUsbFsPacket) -> Self
fn from(value: RdxUsbFsPacket) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RdxUsbFsPacket
impl PartialEq for RdxUsbFsPacket
Source§impl TryFrom<RdxUsbPacket> for RdxUsbFsPacket
impl TryFrom<RdxUsbPacket> for RdxUsbFsPacket
Source§type Error = RdxUsbPacket
type Error = RdxUsbPacket
The type returned in the event of a conversion error.
impl Copy for RdxUsbFsPacket
impl Eq for RdxUsbFsPacket
impl Pod for RdxUsbFsPacket
impl StructuralPartialEq for RdxUsbFsPacket
Auto Trait Implementations§
impl Freeze for RdxUsbFsPacket
impl RefUnwindSafe for RdxUsbFsPacket
impl Send for RdxUsbFsPacket
impl Sync for RdxUsbFsPacket
impl Unpin for RdxUsbFsPacket
impl UnwindSafe for RdxUsbFsPacket
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.