pub struct FlexrayNmCluster(/* private fields */);
Expand description
Flexray specific NmCluster
Implementations§
Source§impl FlexrayNmCluster
impl FlexrayNmCluster
Sourcepub fn set_nm_data_cycle(
&self,
nm_data_cycle: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_data_cycle( &self, nm_data_cycle: u32, ) -> Result<(), AutosarAbstractionError>
set the nmDataCycle
Number of FlexRay
Communication Cycles needed to transmit the Nm Data PDUs of all FlexRay
Nm Ecus of this FlexRayNmCluster
.
Sourcepub fn nm_data_cycle(&self) -> Option<u32>
pub fn nm_data_cycle(&self) -> Option<u32>
get the nmDataCycle
Number of FlexRay
Communication Cycles needed to transmit the Nm Data PDUs of all FlexRay
Nm Ecus of this FlexRayNmCluster
.
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
Timeout for Remote Sleep Indication in seconds.
Sourcepub fn nm_remote_sleep_indication_time(&self) -> Option<f64>
pub fn nm_remote_sleep_indication_time(&self) -> Option<f64>
get the nmRemoteSleepIndicationTime
Timeout for Remote Sleep Indication in seconds.
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
Timeout for Repeat Message State in seconds.
Sourcepub fn nm_repeat_message_time(&self) -> Option<f64>
pub fn nm_repeat_message_time(&self) -> Option<f64>
get the nmRepeatMessageTime
Timeout for Repeat Message State in seconds.
Sourcepub fn set_nm_repetition_cycle(
&self,
nm_repetition_cycle: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_repetition_cycle( &self, nm_repetition_cycle: u32, ) -> Result<(), AutosarAbstractionError>
set the nmRepetitionCycle
Number of FlexRay
Communication Cycles used to repeat the transmission of the Nm vote Pdus of all
FlexRay
NmEcus
of this FlexRayNmCluster
. This value shall be an integral multiple of nmVotingCycle.
Sourcepub fn nm_repetition_cycle(&self) -> Option<u32>
pub fn nm_repetition_cycle(&self) -> Option<u32>
get the nmRepetitionCycle
Number of FlexRay
Communication Cycles used to repeat the transmission of the Nm vote Pdus of all
FlexRay
NmEcus
of this FlexRayNmCluster
. This value shall be an integral multiple of nmVotingCycle.
Sourcepub fn set_nm_voting_cycle(
&self,
nm_voting_cycle: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_voting_cycle( &self, nm_voting_cycle: u32, ) -> Result<(), AutosarAbstractionError>
set the nmVotingCycle
The number of FlexRay
Communication Cycles used to transmit the Nm Vote PDUs of all FlexRay
Nm Ecus of this FlexRayNmCluster
.
Sourcepub fn nm_voting_cycle(&self) -> Option<u32>
pub fn nm_voting_cycle(&self) -> Option<u32>
get the nmVotingCycle
The number of FlexRay
Communication Cycles used to transmit the Nm Vote PDUs of all FlexRay
Nm Ecus of this FlexRayNmCluster
.
Sourcepub fn create_flexray_nm_node(
&self,
name: &str,
controller: &FlexrayCommunicationController,
nm_ecu: &NmEcu,
) -> Result<FlexrayNmNode, AutosarAbstractionError>
pub fn create_flexray_nm_node( &self, name: &str, controller: &FlexrayCommunicationController, nm_ecu: &NmEcu, ) -> Result<FlexrayNmNode, AutosarAbstractionError>
add a FlexrayNmNode
to the cluster
Trait Implementations§
Source§impl AbstractNmCluster for FlexrayNmCluster
impl AbstractNmCluster for FlexrayNmCluster
Source§type CommunicationClusterType = FlexrayCluster
type CommunicationClusterType = FlexrayCluster
Source§type NmNodeType = FlexrayNmNode
type NmNodeType = FlexrayNmNode
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>
CommunicationCluster
Source§fn communication_cluster(&self) -> Option<Self::CommunicationClusterType>
fn communication_cluster(&self) -> Option<Self::CommunicationClusterType>
CommunicationCluster
Source§fn nm_nodes(&self) -> impl Iterator<Item = Self::NmNodeType> + Send + 'static
fn nm_nodes(&self) -> impl Iterator<Item = Self::NmNodeType> + Send + 'static
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>
Source§fn channel_sleep_master(&self) -> Option<bool>
fn channel_sleep_master(&self) -> Option<bool>
Source§fn set_node_detection_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_node_detection_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn node_detection_enabled(&self) -> Option<bool>
fn node_detection_enabled(&self) -> Option<bool>
Source§fn set_node_id_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_node_id_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn node_id_enabled(&self) -> Option<bool>
fn node_id_enabled(&self) -> Option<bool>
Source§fn set_pnc_participation(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_pnc_participation( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn pnc_participation(&self) -> Option<bool>
fn pnc_participation(&self) -> Option<bool>
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>
Source§fn repeat_msg_ind_enabled(&self) -> Option<bool>
fn repeat_msg_ind_enabled(&self) -> Option<bool>
Source§fn set_synchronizing_network(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_synchronizing_network( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn synchronizing_network(&self) -> Option<bool>
fn synchronizing_network(&self) -> Option<bool>
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>
Source§fn pnc_cluster_vector_length(&self) -> Option<u8>
fn pnc_cluster_vector_length(&self) -> Option<u8>
Source§impl Clone for FlexrayNmCluster
impl Clone for FlexrayNmCluster
Source§fn clone(&self) -> FlexrayNmCluster
fn clone(&self) -> FlexrayNmCluster
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FlexrayNmCluster
impl Debug for FlexrayNmCluster
Source§impl From<FlexrayNmCluster> for Element
impl From<FlexrayNmCluster> for Element
Source§fn from(val: FlexrayNmCluster) -> Self
fn from(val: FlexrayNmCluster) -> Self
Source§impl Hash for FlexrayNmCluster
impl Hash for FlexrayNmCluster
Source§impl PartialEq for FlexrayNmCluster
impl PartialEq for FlexrayNmCluster
Source§impl TryFrom<Element> for FlexrayNmCluster
impl TryFrom<Element> for FlexrayNmCluster
impl Eq for FlexrayNmCluster
impl StructuralPartialEq for FlexrayNmCluster
Auto Trait Implementations§
impl Freeze for FlexrayNmCluster
impl !RefUnwindSafe for FlexrayNmCluster
impl Send for FlexrayNmCluster
impl Sync for FlexrayNmCluster
impl Unpin for FlexrayNmCluster
impl !UnwindSafe for FlexrayNmCluster
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.