pub struct CanFrameTriggering(/* private fields */);
Expand description
The frame triggering connects a frame to a physical channel
Implementations§
Source§impl CanFrameTriggering
impl CanFrameTriggering
Sourcepub fn set_identifier(
&self,
identifier: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_identifier( &self, identifier: u32, ) -> Result<(), AutosarAbstractionError>
set the can id associated with this frame
Sourcepub fn identifier(&self) -> Option<u32>
pub fn identifier(&self) -> Option<u32>
get the can id associated with this frame triggering
Sourcepub fn set_addressing_mode(
&self,
addressing_mode: CanAddressingMode,
) -> Result<(), AutosarAbstractionError>
pub fn set_addressing_mode( &self, addressing_mode: CanAddressingMode, ) -> Result<(), AutosarAbstractionError>
set the addressing mode for this frame triggering
Sourcepub fn addressing_mode(&self) -> Option<CanAddressingMode>
pub fn addressing_mode(&self) -> Option<CanAddressingMode>
get the addressing mode for this frame triggering
Sourcepub fn set_frame_type(
&self,
frame_type: CanFrameType,
) -> Result<(), AutosarAbstractionError>
pub fn set_frame_type( &self, frame_type: CanFrameType, ) -> Result<(), AutosarAbstractionError>
set the frame type for this frame triggering
Sourcepub fn frame_type(&self) -> Option<CanFrameType>
pub fn frame_type(&self) -> Option<CanFrameType>
get the frame type for this frame triggering
Sourcepub fn physical_channel(
&self,
) -> Result<CanPhysicalChannel, AutosarAbstractionError>
pub fn physical_channel( &self, ) -> Result<CanPhysicalChannel, 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 direction parameter specifies if the communication is incoming or outgoing
Trait Implementations§
Source§impl AbstractFrameTriggering for CanFrameTriggering
impl AbstractFrameTriggering for CanFrameTriggering
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 CanFrameTriggering
impl Clone for CanFrameTriggering
Source§fn clone(&self) -> CanFrameTriggering
fn clone(&self) -> CanFrameTriggering
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 CanFrameTriggering
impl Debug for CanFrameTriggering
Source§impl From<CanFrameTriggering> for Element
impl From<CanFrameTriggering> for Element
Source§fn from(val: CanFrameTriggering) -> Self
fn from(val: CanFrameTriggering) -> Self
Converts to this type from the input type.
Source§impl From<CanFrameTriggering> for FrameTriggering
impl From<CanFrameTriggering> for FrameTriggering
Source§fn from(cft: CanFrameTriggering) -> Self
fn from(cft: CanFrameTriggering) -> Self
Converts to this type from the input type.
Source§impl Hash for CanFrameTriggering
impl Hash for CanFrameTriggering
Source§impl PartialEq for CanFrameTriggering
impl PartialEq for CanFrameTriggering
Source§impl TryFrom<Element> for CanFrameTriggering
impl TryFrom<Element> for CanFrameTriggering
impl Eq for CanFrameTriggering
impl StructuralPartialEq for CanFrameTriggering
Auto Trait Implementations§
impl Freeze for CanFrameTriggering
impl !RefUnwindSafe for CanFrameTriggering
impl Send for CanFrameTriggering
impl Sync for CanFrameTriggering
impl Unpin for CanFrameTriggering
impl !UnwindSafe for CanFrameTriggering
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.