pub enum LinFrame {
EventTriggered(LinEventTriggeredFrame),
Sporadic(LinSporadicFrame),
Unconditional(LinUnconditionalFrame),
}Expand description
A frame on a LIN bus
Variants§
EventTriggered(LinEventTriggeredFrame)
An event triggered LIN frame
Sporadic(LinSporadicFrame)
A sporadic LIN frame
Unconditional(LinUnconditionalFrame)
An unconditional LIN frame
Trait Implementations§
Source§impl AbstractFrame for LinFrame
impl AbstractFrame for LinFrame
Source§fn frame_triggerings(&self) -> Vec<LinFrameTriggering>
fn frame_triggerings(&self) -> Vec<LinFrameTriggering>
List all LinFrameTriggerings using this frame
Source§fn map_pdu<T: AbstractPdu>(
&self,
gen_pdu: &T,
start_position: u32,
byte_order: ByteOrder,
update_bit: Option<u32>,
) -> Result<PduToFrameMapping, AutosarAbstractionError>
fn map_pdu<T: AbstractPdu>( &self, gen_pdu: &T, start_position: u32, byte_order: ByteOrder, update_bit: Option<u32>, ) -> Result<PduToFrameMapping, AutosarAbstractionError>
map a PDU to the frame
Source§type FrameTriggeringType = LinFrameTriggering
type FrameTriggeringType = LinFrameTriggering
The bus-specific frame triggering type
Source§fn mapped_pdus(
&self,
) -> impl Iterator<Item = PduToFrameMapping> + Send + use<Self>
fn mapped_pdus( &self, ) -> impl Iterator<Item = PduToFrameMapping> + Send + use<Self>
returns an iterator over all PDUs in the frame
Source§fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
set the length of the frame
Source§impl AbstractionElement for LinFrame
impl AbstractionElement for LinFrame
impl Eq for LinFrame
impl StructuralPartialEq for LinFrame
Auto Trait Implementations§
impl Freeze for LinFrame
impl !RefUnwindSafe for LinFrame
impl Send for LinFrame
impl Sync for LinFrame
impl Unpin for LinFrame
impl !UnwindSafe for LinFrame
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.