pub struct PduToFrameMapping(/* private fields */);
Expand description
PduToFrameMapping
connects a PDU to a frame
Implementations§
Source§impl PduToFrameMapping
impl PduToFrameMapping
Sourcepub fn pdu(&self) -> Option<Pdu>
pub fn pdu(&self) -> Option<Pdu>
Reference to the PDU that is mapped into the frame. The PDU reference is mandatory.
Sourcepub fn set_byte_order(
&self,
byte_order: ByteOrder,
) -> Result<(), AutosarAbstractionError>
pub fn set_byte_order( &self, byte_order: ByteOrder, ) -> Result<(), AutosarAbstractionError>
set the byte order of the data in the PDU.
All PduToFrameMappings
within a frame must have the same byte order.
PDUs may not use the byte order value Opaque
.
Note: If the byte order is swapped, then the start position must be adjusted accordingly.
Sourcepub fn byte_order(&self) -> Option<ByteOrder>
pub fn byte_order(&self) -> Option<ByteOrder>
get the byte order of the data in the PDU.
All PduToFrameMappings
within a frame must have the same byte order.
PDUs may not use the byte order value Opaque
.
Sourcepub fn set_start_position(
&self,
start_position: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_start_position( &self, start_position: u32, ) -> Result<(), AutosarAbstractionError>
set the start position of the PDU data within the frame (bit position).
PDUs are byte aligned. For little-endian data the values 0, 8, 16, … are allowed; for big-endian data the value 7, 15, 23, … are allowed.
Note: if you intend to change both the byte order and the start position, then you should change the byte order first. New values set here must match the configured byte order.
Sourcepub fn start_position(&self) -> Option<u32>
pub fn start_position(&self) -> Option<u32>
Start position of the PDU data within the frame (bit position). The start position is mandatory.
PDUs are byte aligned. For little-endian data the values 0, 8, 16, … are allowed; for big-endian data the value 7, 15, 23, … are allowed.
Sourcepub fn set_update_bit(
&self,
update_bit: Option<u32>,
) -> Result<(), AutosarAbstractionError>
pub fn set_update_bit( &self, update_bit: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or clear the bit position of the update bit for the mapped PDU.
Sourcepub fn update_bit(&self) -> Option<u32>
pub fn update_bit(&self) -> Option<u32>
Bit position of the update bit for the mapped PDU. Not all PDUs use an update bit.
Trait Implementations§
Source§impl Clone for PduToFrameMapping
impl Clone for PduToFrameMapping
Source§fn clone(&self) -> PduToFrameMapping
fn clone(&self) -> PduToFrameMapping
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PduToFrameMapping
impl Debug for PduToFrameMapping
Source§impl From<PduToFrameMapping> for Element
impl From<PduToFrameMapping> for Element
Source§fn from(val: PduToFrameMapping) -> Self
fn from(val: PduToFrameMapping) -> Self
Source§impl Hash for PduToFrameMapping
impl Hash for PduToFrameMapping
Source§impl PartialEq for PduToFrameMapping
impl PartialEq for PduToFrameMapping
Source§impl TryFrom<Element> for PduToFrameMapping
impl TryFrom<Element> for PduToFrameMapping
impl Eq for PduToFrameMapping
impl StructuralPartialEq for PduToFrameMapping
Auto Trait Implementations§
impl Freeze for PduToFrameMapping
impl !RefUnwindSafe for PduToFrameMapping
impl Send for PduToFrameMapping
impl Sync for PduToFrameMapping
impl Unpin for PduToFrameMapping
impl !UnwindSafe for PduToFrameMapping
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
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
key
and return true
if they are equal.