pub struct BrakeStateAsReportedByVcu(/* private fields */);Implementations§
Source§impl BrakeStateAsReportedByVcu
impl BrakeStateAsReportedByVcu
Sourcepub const fn brake_state(&self) -> f32
pub const fn brake_state(&self) -> f32
Brake State
This value isn’t really an echo. It’s directly calculated and reported by VCU. But it’s used by Argos for the eFuse page.
Units: C
Bits: 0..8
Sourcepub const fn with_brake_state_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_brake_state_checked(self, value: f32) -> Result<Self, ()>
Brake State
This value isn’t really an echo. It’s directly calculated and reported by VCU. But it’s used by Argos for the eFuse page.
Units: C
Bits: 0..8
Sourcepub const fn with_brake_state(self, value: f32) -> Self
pub const fn with_brake_state(self, value: f32) -> Self
Brake State
This value isn’t really an echo. It’s directly calculated and reported by VCU. But it’s used by Argos for the eFuse page.
Units: C
Bits: 0..8
Sourcepub const fn set_brake_state(&mut self, value: f32)
pub const fn set_brake_state(&mut self, value: f32)
Brake State
This value isn’t really an echo. It’s directly calculated and reported by VCU. But it’s used by Argos for the eFuse page.
Units: C
Bits: 0..8
Source§impl BrakeStateAsReportedByVcu
impl BrakeStateAsReportedByVcu
Sourcepub fn try_with_brake_state(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_brake_state(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_brake_state but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_brake_state(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_brake_state(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_brake_state but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for BrakeStateAsReportedByVcu
impl Clone for BrakeStateAsReportedByVcu
Source§fn clone(&self) -> BrakeStateAsReportedByVcu
fn clone(&self) -> BrakeStateAsReportedByVcu
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more