pub struct FlexrayFrameTriggering(/* private fields */);
Expand description
The frame triggering connects a frame to a physical channel
Implementations§
Source§impl FlexrayFrameTriggering
impl FlexrayFrameTriggering
Sourcepub fn set_slot(&self, slot_id: u16) -> Result<(), AutosarAbstractionError>
pub fn set_slot(&self, slot_id: u16) -> Result<(), AutosarAbstractionError>
set the slot id for the flexray frame triggering
Sourcepub fn slot(&self) -> Option<u16>
pub fn slot(&self) -> Option<u16>
get the slot id of the flexray frame triggering
In a well-formed file this always returns Some(value); None should only be seen if the file is incomplete.
Sourcepub fn set_timing(
&self,
timing: &FlexrayCommunicationCycle,
) -> Result<(), AutosarAbstractionError>
pub fn set_timing( &self, timing: &FlexrayCommunicationCycle, ) -> Result<(), AutosarAbstractionError>
set the timing of the flexray frame
Sourcepub fn timing(&self) -> Option<FlexrayCommunicationCycle>
pub fn timing(&self) -> Option<FlexrayCommunicationCycle>
get the timing of the flexray frame
In a well-formed file this should always return Some(…)
Sourcepub fn physical_channel(
&self,
) -> Result<FlexrayPhysicalChannel, AutosarAbstractionError>
pub fn physical_channel( &self, ) -> Result<FlexrayPhysicalChannel, AutosarAbstractionError>
get the physical channel that contains this frame triggering
Sourcepub fn connect_to_ecu(
&self,
ecu: &EcuInstance,
direction: CommunicationDirection,
) -> Result<FramePort, AutosarAbstractionError>
pub fn connect_to_ecu( &self, ecu: &EcuInstance, direction: CommunicationDirection, ) -> Result<FramePort, AutosarAbstractionError>
connect this frame triggering to an ECU
The frame triggering may be connected to any number of ECUs.
Trait Implementations§
Source§impl AbstractFrameTriggering for FlexrayFrameTriggering
impl AbstractFrameTriggering for FlexrayFrameTriggering
Source§type FrameType = FlexrayFrame
type FrameType = FlexrayFrame
The frame type triggered by this
FrameTriggering
Source§fn frame_ports(&self) -> impl Iterator<Item = FramePort> + Send + 'static
fn frame_ports(&self) -> impl Iterator<Item = FramePort> + Send + 'static
iterate over all frame ports referenced by this frame triggering Read more
Source§fn pdu_triggerings(
&self,
) -> impl Iterator<Item = PduTriggering> + Send + 'static
fn pdu_triggerings( &self, ) -> impl Iterator<Item = PduTriggering> + Send + 'static
iterate over all PDU triggerings used by this frame triggering
Source§fn physical_channel(&self) -> Result<PhysicalChannel, AutosarAbstractionError>
fn physical_channel(&self) -> Result<PhysicalChannel, AutosarAbstractionError>
get the physical channel that contains this frame triggering
Source§impl Clone for FlexrayFrameTriggering
impl Clone for FlexrayFrameTriggering
Source§fn clone(&self) -> FlexrayFrameTriggering
fn clone(&self) -> FlexrayFrameTriggering
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 FlexrayFrameTriggering
impl Debug for FlexrayFrameTriggering
Source§impl From<FlexrayFrameTriggering> for Element
impl From<FlexrayFrameTriggering> for Element
Source§fn from(val: FlexrayFrameTriggering) -> Self
fn from(val: FlexrayFrameTriggering) -> Self
Converts to this type from the input type.
Source§impl From<FlexrayFrameTriggering> for FrameTriggering
impl From<FlexrayFrameTriggering> for FrameTriggering
Source§fn from(fft: FlexrayFrameTriggering) -> Self
fn from(fft: FlexrayFrameTriggering) -> Self
Converts to this type from the input type.
Source§impl Hash for FlexrayFrameTriggering
impl Hash for FlexrayFrameTriggering
Source§impl PartialEq for FlexrayFrameTriggering
impl PartialEq for FlexrayFrameTriggering
Source§impl TryFrom<Element> for FlexrayFrameTriggering
impl TryFrom<Element> for FlexrayFrameTriggering
impl Eq for FlexrayFrameTriggering
impl StructuralPartialEq for FlexrayFrameTriggering
Auto Trait Implementations§
impl Freeze for FlexrayFrameTriggering
impl !RefUnwindSafe for FlexrayFrameTriggering
impl Send for FlexrayFrameTriggering
impl Sync for FlexrayFrameTriggering
impl Unpin for FlexrayFrameTriggering
impl !UnwindSafe for FlexrayFrameTriggering
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.