pub struct CanTpEcu(/* private fields */);
Expand description
A CanTpEcu
represents an ECU that is using the CanTp
module
Implementations§
Source§impl CanTpEcu
impl CanTpEcu
Sourcepub fn set_ecu_instance(
&self,
ecu_instance: &EcuInstance,
) -> Result<(), AutosarAbstractionError>
pub fn set_ecu_instance( &self, ecu_instance: &EcuInstance, ) -> Result<(), AutosarAbstractionError>
set the ECU instance of the CanTpEcu
Sourcepub fn ecu_instance(&self) -> Option<EcuInstance>
pub fn ecu_instance(&self) -> Option<EcuInstance>
get the ECU instance of the CanTpEcu
Sourcepub fn set_cycle_time_main_function(
&self,
cycle_time: Option<f64>,
) -> Result<(), AutosarAbstractionError>
pub fn set_cycle_time_main_function( &self, cycle_time: Option<f64>, ) -> Result<(), AutosarAbstractionError>
set the cycle time of the CanTp
main function of the ECU
Sourcepub fn cycle_time_main_function(&self) -> Option<f64>
pub fn cycle_time_main_function(&self) -> Option<f64>
get the cycle time of the CanTp
main function of the ECU
Trait Implementations§
Source§impl AbstractionElement for CanTpEcu
impl AbstractionElement for CanTpEcu
impl StructuralPartialEq for CanTpEcu
Auto Trait Implementations§
impl Freeze for CanTpEcu
impl !RefUnwindSafe for CanTpEcu
impl Send for CanTpEcu
impl Sync for CanTpEcu
impl Unpin for CanTpEcu
impl !UnwindSafe for CanTpEcu
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