pub struct Ccvs {
pub vehicle_speed: Option<f64>,
pub brake_switch: Option<bool>,
pub cruise_active: Option<bool>,
}Expand description
Decoded Cruise Control/Vehicle Speed (PGN 65265).
Fields are None when the ECU reports “not available” (0xFF/0xFFFF sentinel).
Fields§
§vehicle_speed: Option<f64>Vehicle speed in km/h. SPN 84, bytes 2-3.
brake_switch: Option<bool>Brake switch active. SPN 597, byte 4 bits 2-3. None if not available.
cruise_active: Option<bool>Cruise control active. SPN 595, byte 1 bits 0-1. None if not available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ccvs
impl RefUnwindSafe for Ccvs
impl Send for Ccvs
impl Sync for Ccvs
impl Unpin for Ccvs
impl UnsafeUnpin for Ccvs
impl UnwindSafe for Ccvs
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