pub struct FlexrayTpConfig(/* private fields */);
Expand description
FlexrayTpConfig
defines exactly one FlexRay
ISO TP Configuration
Implementations§
Source§impl FlexrayTpConfig
impl FlexrayTpConfig
Sourcepub fn set_cluster(
&self,
cluster: &FlexrayCluster,
) -> Result<(), AutosarAbstractionError>
pub fn set_cluster( &self, cluster: &FlexrayCluster, ) -> Result<(), AutosarAbstractionError>
set the FlexrayCluster
of the FlexrayTpConfig
Sourcepub fn cluster(&self) -> Option<FlexrayCluster>
pub fn cluster(&self) -> Option<FlexrayCluster>
get the FlexrayCluster
of the FlexrayTpConfig
Sourcepub fn create_flexray_tp_pdu_pool(
&self,
name: &str,
) -> Result<FlexrayTpPduPool, AutosarAbstractionError>
pub fn create_flexray_tp_pdu_pool( &self, name: &str, ) -> Result<FlexrayTpPduPool, AutosarAbstractionError>
create a new FlexrayTpPduPool
Sourcepub fn flexray_tp_pdu_pools(
&self,
) -> impl Iterator<Item = FlexrayTpPduPool> + Send + 'static
pub fn flexray_tp_pdu_pools( &self, ) -> impl Iterator<Item = FlexrayTpPduPool> + Send + 'static
iterate over all FlexrayTpPduPools
Sourcepub fn create_tp_address(
&self,
name: &str,
address: u32,
) -> Result<TpAddress, AutosarAbstractionError>
pub fn create_tp_address( &self, name: &str, address: u32, ) -> Result<TpAddress, AutosarAbstractionError>
create a new TpAddress
Sourcepub fn tp_addresses(&self) -> impl Iterator<Item = TpAddress> + Send + 'static
pub fn tp_addresses(&self) -> impl Iterator<Item = TpAddress> + Send + 'static
iterate over all TpAddresses
Sourcepub fn create_flexray_tp_connection<T: AbstractIpdu>(
&self,
name: Option<&str>,
transmitter: &FlexrayTpNode,
direct_tp_sdu: &T,
connection_control: &FlexrayTpConnectionControl,
) -> Result<FlexrayTpConnection, AutosarAbstractionError>
pub fn create_flexray_tp_connection<T: AbstractIpdu>( &self, name: Option<&str>, transmitter: &FlexrayTpNode, direct_tp_sdu: &T, connection_control: &FlexrayTpConnectionControl, ) -> Result<FlexrayTpConnection, AutosarAbstractionError>
create a new FlexrayTpConnection
Sourcepub fn flexray_tp_connections(
&self,
) -> impl Iterator<Item = FlexrayTpConnection> + Send + 'static
pub fn flexray_tp_connections( &self, ) -> impl Iterator<Item = FlexrayTpConnection> + Send + 'static
iterate over all FlexrayTpConnections
Sourcepub fn create_flexray_tp_connection_control(
&self,
name: &str,
) -> Result<FlexrayTpConnectionControl, AutosarAbstractionError>
pub fn create_flexray_tp_connection_control( &self, name: &str, ) -> Result<FlexrayTpConnectionControl, AutosarAbstractionError>
create a new FlexrayTpConnectionControl
Sourcepub fn flexray_tp_connection_controls(
&self,
) -> impl Iterator<Item = FlexrayTpConnectionControl> + Send + 'static
pub fn flexray_tp_connection_controls( &self, ) -> impl Iterator<Item = FlexrayTpConnectionControl> + Send + 'static
iterate over all FlexrayTpConnectionControls
Sourcepub fn create_flexray_tp_ecu(
&self,
ecu_instance: &EcuInstance,
full_duplex_enabled: bool,
) -> Result<FlexrayTpEcu, AutosarAbstractionError>
pub fn create_flexray_tp_ecu( &self, ecu_instance: &EcuInstance, full_duplex_enabled: bool, ) -> Result<FlexrayTpEcu, AutosarAbstractionError>
create a FlexrayTpEcu
in the FlexrayTpConfig
Sourcepub fn flexray_tp_ecus(
&self,
) -> impl Iterator<Item = FlexrayTpEcu> + Send + 'static
pub fn flexray_tp_ecus( &self, ) -> impl Iterator<Item = FlexrayTpEcu> + Send + 'static
iterate over all FlexrayTpEcus
Sourcepub fn create_flexray_tp_node(
&self,
name: &str,
) -> Result<FlexrayTpNode, AutosarAbstractionError>
pub fn create_flexray_tp_node( &self, name: &str, ) -> Result<FlexrayTpNode, AutosarAbstractionError>
create a new FlexrayTpNode
Sourcepub fn flexray_tp_nodes(
&self,
) -> impl Iterator<Item = FlexrayTpNode> + Send + 'static
pub fn flexray_tp_nodes( &self, ) -> impl Iterator<Item = FlexrayTpNode> + Send + 'static
iterate over all FlexrayTpNodes
Trait Implementations§
Source§impl AbstractionElement for FlexrayTpConfig
impl AbstractionElement for FlexrayTpConfig
Source§impl Clone for FlexrayTpConfig
impl Clone for FlexrayTpConfig
Source§fn clone(&self) -> FlexrayTpConfig
fn clone(&self) -> FlexrayTpConfig
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 FlexrayTpConfig
impl Debug for FlexrayTpConfig
Source§impl From<FlexrayTpConfig> for Element
impl From<FlexrayTpConfig> for Element
Source§fn from(val: FlexrayTpConfig) -> Self
fn from(val: FlexrayTpConfig) -> Self
Converts to this type from the input type.
Source§impl Hash for FlexrayTpConfig
impl Hash for FlexrayTpConfig
Source§impl PartialEq for FlexrayTpConfig
impl PartialEq for FlexrayTpConfig
Source§impl TryFrom<Element> for FlexrayTpConfig
impl TryFrom<Element> for FlexrayTpConfig
impl Eq for FlexrayTpConfig
impl StructuralPartialEq for FlexrayTpConfig
Auto Trait Implementations§
impl Freeze for FlexrayTpConfig
impl !RefUnwindSafe for FlexrayTpConfig
impl Send for FlexrayTpConfig
impl Sync for FlexrayTpConfig
impl Unpin for FlexrayTpConfig
impl !UnwindSafe for FlexrayTpConfig
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.