Skip to main content

ResetMessage

Struct ResetMessage 

Source
pub struct ResetMessage {
    pub trip_group_1: Option<bool>,
    pub trip_group_2_proprietary: Option<bool>,
    pub service_component_identification: Option<u8>,
    pub engine_build_hours_reset: Option<bool>,
    pub steering_straight_ahead_position_reset: Option<bool>,
    pub engine_spark_plug_secondary_voltage_tracking_reset: Option<bool>,
    pub engine_ignition_control_maintenance_hours_reset: Option<bool>,
    pub bin_lift_count_reset: Option<bool>,
    pub tire_configuration_information: Option<bool>,
    pub tire_sensor_information: Option<bool>,
}

Fields§

§trip_group_1: Option<bool>

Command signal used to reset the PGNs and parameters as defined in Table SPN988_A.

§trip_group_2_proprietary: Option<bool>

Command signal used to reset proprietary parameters associated with a trip but not defined within this document.

§service_component_identification: Option<u8>

Identification of component needing service.

§engine_build_hours_reset: Option<bool>

Command signal used to reset the engine rebuild hours.

§steering_straight_ahead_position_reset: Option<bool>

Used to reset the straight ahead position for a steering sensor in the steering column or a steering controller’s straight ahead position on any steerable axle.

§engine_spark_plug_secondary_voltage_tracking_reset: Option<bool>

Command signal used to reset the ignition controller average, maximum, and minimum level tracking of the spark plug secondary voltages and to reset the learned misfire rate.

§engine_ignition_control_maintenance_hours_reset: Option<bool>

Used to reset the maintenance hour counter for an engine ignition control module.

§bin_lift_count_reset: Option<bool>

Used to reset the bin lift count as reported in PGN 64594.

§tire_configuration_information: Option<bool>

Command signal used to initiate change in the tire configuration of the vehicle system.

§tire_sensor_information: Option<bool>

Command signal used to initiate change in the tire sensor identification information.

Implementations§

Source§

impl ResetMessage

Source

pub fn from_pdu(pdu: &[u8]) -> Self

§Panics

Panics if pdu has fewer than 8 bytes.

Source

pub fn to_pdu(&self) -> [u8; 8]

Trait Implementations§

Source§

impl Display for ResetMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.