pub struct MultiplexedIPdu(/* private fields */);Expand description
The multiplexed pdu contains one of serveral signal pdus
Implementations§
Source§impl MultiplexedIPdu
impl MultiplexedIPdu
Sourcepub fn set_static_part(
&self,
static_ipdu: &ISignalIPdu,
) -> Result<(), AutosarAbstractionError>
pub fn set_static_part( &self, static_ipdu: &ISignalIPdu, ) -> Result<(), AutosarAbstractionError>
set the ISignalIPdu containing the static part of this multiplexed ipdu
Sourcepub fn static_part(&self) -> Option<ISignalIPdu>
pub fn static_part(&self) -> Option<ISignalIPdu>
get the ISignalIPdu containing the static part of this multiplexed ipdu
Sourcepub fn add_dynamic_part(
&self,
dynamic_ipdu: &ISignalIPdu,
selector_code: u16,
initial_dynamic_part: bool,
) -> Result<DynamicPartAlternative, AutosarAbstractionError>
pub fn add_dynamic_part( &self, dynamic_ipdu: &ISignalIPdu, selector_code: u16, initial_dynamic_part: bool, ) -> Result<DynamicPartAlternative, AutosarAbstractionError>
add a dynamic part alternative to this multiplexed ipdu
selector_code is the value of the multiplexor that selects this dynamic part
initial_dynamic_part indicates whether this is the initial dynamic part; only one dynamic part can be initial
All dynamic parts must have the same length
Sourcepub fn dynamic_part_alternatives(
&self,
) -> impl Iterator<Item = DynamicPartAlternative>
pub fn dynamic_part_alternatives( &self, ) -> impl Iterator<Item = DynamicPartAlternative>
list all dynamic part alternatives of this multiplexed ipdu
Sourcepub fn set_selector_field(
&self,
length: u8,
start_position: u32,
byte_order: ByteOrder,
) -> Result<(), AutosarAbstractionError>
pub fn set_selector_field( &self, length: u8, start_position: u32, byte_order: ByteOrder, ) -> Result<(), AutosarAbstractionError>
set the selector field of this multiplexed ipdu
The selector field should exist as a signal in each dynamic part
Trait Implementations§
Source§impl AbstractIpdu for MultiplexedIPdu
impl AbstractIpdu for MultiplexedIPdu
Source§fn set_contained_ipdu_props(
&self,
props: Option<&ContainedIPduProps>,
) -> Result<(), AutosarAbstractionError>
fn set_contained_ipdu_props( &self, props: Option<&ContainedIPduProps>, ) -> Result<(), AutosarAbstractionError>
Source§fn contained_ipdu_props(&self) -> Option<ContainedIPduProps>
fn contained_ipdu_props(&self) -> Option<ContainedIPduProps>
get the
ContainedIPduProps for this IPduSource§impl AbstractPdu for MultiplexedIPdu
impl AbstractPdu for MultiplexedIPdu
Source§fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
set the length of the PDU
Source§fn pdu_triggerings(&self) -> Vec<PduTriggering>
fn pdu_triggerings(&self) -> Vec<PduTriggering>
list all
PduTriggerings that trigger this PDUSource§impl AbstractionElement for MultiplexedIPdu
impl AbstractionElement for MultiplexedIPdu
Source§impl Clone for MultiplexedIPdu
impl Clone for MultiplexedIPdu
Source§fn clone(&self) -> MultiplexedIPdu
fn clone(&self) -> MultiplexedIPdu
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 MultiplexedIPdu
impl Debug for MultiplexedIPdu
Source§impl From<MultiplexedIPdu> for Element
impl From<MultiplexedIPdu> for Element
Source§fn from(val: MultiplexedIPdu) -> Self
fn from(val: MultiplexedIPdu) -> Self
Converts to this type from the input type.
Source§impl From<MultiplexedIPdu> for IPdu
impl From<MultiplexedIPdu> for IPdu
Source§fn from(value: MultiplexedIPdu) -> Self
fn from(value: MultiplexedIPdu) -> Self
Converts to this type from the input type.
Source§impl From<MultiplexedIPdu> for Pdu
impl From<MultiplexedIPdu> for Pdu
Source§fn from(value: MultiplexedIPdu) -> Self
fn from(value: MultiplexedIPdu) -> Self
Converts to this type from the input type.
Source§impl Hash for MultiplexedIPdu
impl Hash for MultiplexedIPdu
Source§impl PartialEq for MultiplexedIPdu
impl PartialEq for MultiplexedIPdu
Source§impl TryFrom<Element> for MultiplexedIPdu
impl TryFrom<Element> for MultiplexedIPdu
impl Eq for MultiplexedIPdu
impl StructuralPartialEq for MultiplexedIPdu
Auto Trait Implementations§
impl Freeze for MultiplexedIPdu
impl !RefUnwindSafe for MultiplexedIPdu
impl Send for MultiplexedIPdu
impl Sync for MultiplexedIPdu
impl Unpin for MultiplexedIPdu
impl !UnwindSafe for MultiplexedIPdu
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.