pub struct CanNmCluster(/* private fields */);
Expand description
Can specific NmCluster
attributes
Implementations§
Source§impl CanNmCluster
impl CanNmCluster
Sourcepub fn set_nm_busload_reduction_active(
&self,
nm_busload_reduction_active: bool,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_busload_reduction_active( &self, nm_busload_reduction_active: bool, ) -> Result<(), AutosarAbstractionError>
set the nmBusloadReductionActive flag
Sourcepub fn nm_busload_reduction_active(&self) -> Option<bool>
pub fn nm_busload_reduction_active(&self) -> Option<bool>
get the nmBusloadReductionActive flag
Sourcepub fn set_nm_immediate_nm_transmissions(
&self,
nm_immediate_nm_transmissions: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_immediate_nm_transmissions( &self, nm_immediate_nm_transmissions: u32, ) -> Result<(), AutosarAbstractionError>
set the nmImmediateNmTransmissions value
Sourcepub fn nm_immediate_nm_transmissions(&self) -> Option<u32>
pub fn nm_immediate_nm_transmissions(&self) -> Option<u32>
get the nmImmediateNmTransmissions value
Sourcepub fn set_nm_message_timeout_time(
&self,
nm_message_timeout_time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_message_timeout_time( &self, nm_message_timeout_time: f64, ) -> Result<(), AutosarAbstractionError>
set the nmMessageTimeoutTime
Sourcepub fn nm_message_timeout_time(&self) -> Option<f64>
pub fn nm_message_timeout_time(&self) -> Option<f64>
get the nmMessageTimeoutTime
Sourcepub fn set_nm_msg_cycle_time(
&self,
nm_msg_cycle_time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_msg_cycle_time( &self, nm_msg_cycle_time: f64, ) -> Result<(), AutosarAbstractionError>
set the nmMsgCycleTime
Sourcepub fn nm_msg_cycle_time(&self) -> Option<f64>
pub fn nm_msg_cycle_time(&self) -> Option<f64>
get the nmMsgCycleTime
Sourcepub fn set_nm_network_timeout(
&self,
nm_network_timeout: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_network_timeout( &self, nm_network_timeout: f64, ) -> Result<(), AutosarAbstractionError>
set the nmNetworkTimeout
Sourcepub fn nm_network_timeout(&self) -> Option<f64>
pub fn nm_network_timeout(&self) -> Option<f64>
get the nmNetworkTimeout
Sourcepub fn set_nm_remote_sleep_indication_time(
&self,
nm_remote_sleep_indication_time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_remote_sleep_indication_time( &self, nm_remote_sleep_indication_time: f64, ) -> Result<(), AutosarAbstractionError>
set the nmRemoteSleepIndicationTime
Sourcepub fn nm_remote_sleep_indication_time(&self) -> Option<f64>
pub fn nm_remote_sleep_indication_time(&self) -> Option<f64>
get the nmRemoteSleepIndicationTime
Sourcepub fn set_nm_repeat_message_time(
&self,
nm_repeat_message_time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_repeat_message_time( &self, nm_repeat_message_time: f64, ) -> Result<(), AutosarAbstractionError>
set the nmRepeatMessageTime
Sourcepub fn nm_repeat_message_time(&self) -> Option<f64>
pub fn nm_repeat_message_time(&self) -> Option<f64>
get the nmRepeatMessageTime
Sourcepub fn set_nm_wait_bus_sleep_time(
&self,
nm_wait_bus_sleep_time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_wait_bus_sleep_time( &self, nm_wait_bus_sleep_time: f64, ) -> Result<(), AutosarAbstractionError>
set the nmWaitBusSleepTime
Sourcepub fn nm_wait_bus_sleep_time(&self) -> Option<f64>
pub fn nm_wait_bus_sleep_time(&self) -> Option<f64>
get the nmWaitBusSleepTime
Sourcepub fn create_can_nm_node(
&self,
name: &str,
controller: &CanCommunicationController,
nm_ecu: &NmEcu,
) -> Result<CanNmNode, AutosarAbstractionError>
pub fn create_can_nm_node( &self, name: &str, controller: &CanCommunicationController, nm_ecu: &NmEcu, ) -> Result<CanNmNode, AutosarAbstractionError>
add a CanNmNode
to the cluster
Trait Implementations§
Source§impl AbstractNmCluster for CanNmCluster
impl AbstractNmCluster for CanNmCluster
Source§type CommunicationClusterType = CanCluster
type CommunicationClusterType = CanCluster
type of the communication cluster on which this NM cluster is based
Source§type NmNodeType = CanNmNode
type NmNodeType = CanNmNode
type of the NM node in this cluster, e.g.
CanNmNode
for a CanNmCluster
Source§fn set_communication_cluster(
&self,
cluster: &Self::CommunicationClusterType,
) -> Result<(), AutosarAbstractionError>
fn set_communication_cluster( &self, cluster: &Self::CommunicationClusterType, ) -> Result<(), AutosarAbstractionError>
set the referenced
CommunicationCluster
Source§fn communication_cluster(&self) -> Option<Self::CommunicationClusterType>
fn communication_cluster(&self) -> Option<Self::CommunicationClusterType>
get the referenced
CommunicationCluster
Source§fn nm_nodes(&self) -> impl Iterator<Item = Self::NmNodeType> + Send + 'static
fn nm_nodes(&self) -> impl Iterator<Item = Self::NmNodeType> + Send + 'static
iterate over all
NmNodes
in this clusterSource§fn set_channel_sleep_master(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_channel_sleep_master( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set or remove the nmChannelSleepMaster flag
Source§fn channel_sleep_master(&self) -> Option<bool>
fn channel_sleep_master(&self) -> Option<bool>
get the nmChannelSleepMaster flag
Source§fn set_node_detection_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_node_detection_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set the nmNodeDetectionEnabled flag
Source§fn node_detection_enabled(&self) -> Option<bool>
fn node_detection_enabled(&self) -> Option<bool>
get the nmNodeDetectionEnabled flag
Source§fn set_node_id_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_node_id_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set the nmNodeIdEnabled flag
Source§fn node_id_enabled(&self) -> Option<bool>
fn node_id_enabled(&self) -> Option<bool>
get the nmNodeIdEnabled flag
Source§fn set_pnc_participation(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_pnc_participation( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set the nmPncParticipation flag
Source§fn pnc_participation(&self) -> Option<bool>
fn pnc_participation(&self) -> Option<bool>
get the nmPncParticipation flag
Source§fn set_repeat_msg_ind_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_repeat_msg_ind_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set the nmRepeatMsgIndEnabled flag
Source§fn repeat_msg_ind_enabled(&self) -> Option<bool>
fn repeat_msg_ind_enabled(&self) -> Option<bool>
get the nmRepeatMsgIndEnabled flag
Source§fn set_synchronizing_network(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_synchronizing_network( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set the nmSynchronizingNetwork flag
Source§fn synchronizing_network(&self) -> Option<bool>
fn synchronizing_network(&self) -> Option<bool>
get the nmSynchronizingNetwork flag
Source§fn set_pnc_cluster_vector_length(
&self,
value: Option<u8>,
) -> Result<(), AutosarAbstractionError>
fn set_pnc_cluster_vector_length( &self, value: Option<u8>, ) -> Result<(), AutosarAbstractionError>
set the pncClusterVectorLength
Source§fn pnc_cluster_vector_length(&self) -> Option<u8>
fn pnc_cluster_vector_length(&self) -> Option<u8>
get the pncClusterVectorLength
Source§impl AbstractionElement for CanNmCluster
impl AbstractionElement for CanNmCluster
Source§impl Clone for CanNmCluster
impl Clone for CanNmCluster
Source§fn clone(&self) -> CanNmCluster
fn clone(&self) -> CanNmCluster
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 CanNmCluster
impl Debug for CanNmCluster
Source§impl From<CanNmCluster> for Element
impl From<CanNmCluster> for Element
Source§fn from(val: CanNmCluster) -> Self
fn from(val: CanNmCluster) -> Self
Converts to this type from the input type.
Source§impl Hash for CanNmCluster
impl Hash for CanNmCluster
Source§impl PartialEq for CanNmCluster
impl PartialEq for CanNmCluster
Source§impl TryFrom<Element> for CanNmCluster
impl TryFrom<Element> for CanNmCluster
impl Eq for CanNmCluster
impl StructuralPartialEq for CanNmCluster
Auto Trait Implementations§
impl Freeze for CanNmCluster
impl !RefUnwindSafe for CanNmCluster
impl Send for CanNmCluster
impl Sync for CanNmCluster
impl Unpin for CanNmCluster
impl !UnwindSafe for CanNmCluster
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.