Struct esp32c3_hal::twai::EspTwaiFrame
source · pub struct EspTwaiFrame { /* private fields */ }
Expand description
Structure backing the embedded_hal::can::Frame/embedded_can::Frame trait.
Trait Implementations§
source§impl Debug for EspTwaiFrame
impl Debug for EspTwaiFrame
source§impl Frame for EspTwaiFrame
impl Frame for EspTwaiFrame
source§fn new_remote(id: impl Into<Id>, dlc: usize) -> Option<EspTwaiFrame>
fn new_remote(id: impl Into<Id>, dlc: usize) -> Option<EspTwaiFrame>
Creates a new remote frame (RTR bit set). Read more
source§fn is_extended(&self) -> bool
fn is_extended(&self) -> bool
Returns true if this frame is a extended frame.
source§fn is_remote_frame(&self) -> bool
fn is_remote_frame(&self) -> bool
Returns true if this frame is a remote frame.
source§fn dlc(&self) -> usize
fn dlc(&self) -> usize
Returns the data length code (DLC) which is in the range 0..8. Read more
§fn is_standard(&self) -> bool
fn is_standard(&self) -> bool
Returns true if this frame is a standard frame.
§fn is_data_frame(&self) -> bool
fn is_data_frame(&self) -> bool
Returns true if this frame is a data frame.
Auto Trait Implementations§
impl RefUnwindSafe for EspTwaiFrame
impl Send for EspTwaiFrame
impl Sync for EspTwaiFrame
impl Unpin for EspTwaiFrame
impl UnwindSafe for EspTwaiFrame
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