Enum j1939::PGN

source ·
pub enum PGN {
Show 77 variants TorqueSpeedControl1, ProprietarilyConfigurableMessage1, ProprietarilyConfigurableMessage2, ProprietarilyConfigurableMessage3, ProprietarilyConfigurableMessage4, ProprietarilyConfigurableMessage5, ProprietarilyConfigurableMessage6, ProprietarilyConfigurableMessage7, ProprietarilyConfigurableMessage8, ProprietarilyConfigurableMessage9, ProprietarilyConfigurableMessage10, ProprietarilyConfigurableMessage11, ProprietarilyConfigurableMessage12, ProprietarilyConfigurableMessage13, ProprietarilyConfigurableMessage14, ProprietarilyConfigurableMessage15, ProprietarilyConfigurableMessage16, Transfer, ElectronicEngineController2, ElectronicEngineController1, ElectronicTransmissionController2, TANKInformation1, Tachoraph, ECUHistory, FanDrive, ElectronicEngineController4, DiagnosticMessage1, DiagnosticMessage2, DiagnosticMessage3, DiagnosticMessage4, DiagnosticMessage11, DiagnosticMessage12, SoftwareIdentification, EngineFluidLevelPressure2, IdleOperation, Request, Request2, TransportProtocolDataTransfer, TransportProtocolConnectionManagement, AddressClaimed, ProprietaryA, ElectronicBrakeController1, ElectronicTransmissionController1, CommandedAddress, AuxiliaryInputOutputStatus, ElectronicEngineController3, VehicleDistance, EngineConfiguration, Shutdown, EngineHoursRevolutions, TimeDate, VehicleHours, VehicleDirectionSpeed, FuelConsumption, VehicleWeight, EngineTemperature1, EngineFluidLevelPressure1, PowerTakeoffInformation, CruiseControlVehicleSpeed, FuelEconomy, VehiclePosition, AmbientConditions, InletExhaustConditions1, VehicleElectricalPower1, TransmissionFluids, AxleInformation, Brakes, RetarderFluids, DashDisplay, AlternateFuel1, AuxiliaryWaterPumpPressure, WaterInFuelIndicator, AcknowledgmentMessage, ComponentIdentification, VehicleIdentification, ProprietaryB(u32), Other(u32),
}
Expand description

Parameter group number.

Variants§

§

TorqueSpeedControl1

TSC1 - Torque/Speed Control 1.

§

ProprietarilyConfigurableMessage1

PCM1 - Proprietarily Configurable Message 1.

§

ProprietarilyConfigurableMessage2

PCM2 - Proprietarily Configurable Message 2.

§

ProprietarilyConfigurableMessage3

PCM3 - Proprietarily Configurable Message 3.

§

ProprietarilyConfigurableMessage4

PCM4 - Proprietarily Configurable Message 4.

§

ProprietarilyConfigurableMessage5

PCM5 - Proprietarily Configurable Message 5.

§

ProprietarilyConfigurableMessage6

PCM6 - Proprietarily Configurable Message 6.

§

ProprietarilyConfigurableMessage7

PCM7 - Proprietarily Configurable Message 7.

§

ProprietarilyConfigurableMessage8

PCM8 - Proprietarily Configurable Message 8.

§

ProprietarilyConfigurableMessage9

PCM9 - Proprietarily Configurable Message 9.

§

ProprietarilyConfigurableMessage10

PCM10 - Proprietarily Configurable Message 10.

§

ProprietarilyConfigurableMessage11

PCM11 - Proprietarily Configurable Message 11.

§

ProprietarilyConfigurableMessage12

PCM12 - Proprietarily Configurable Message 12.

§

ProprietarilyConfigurableMessage13

PCM13 - Proprietarily Configurable Message 13.

§

ProprietarilyConfigurableMessage14

PCM14 - Proprietarily Configurable Message 14.

§

ProprietarilyConfigurableMessage15

PCM15 - Proprietarily Configurable Message 15.

§

ProprietarilyConfigurableMessage16

PCM16 - Proprietarily Configurable Message 16.

§

Transfer

XFER - Transfer.

§

ElectronicEngineController2

EEC2 - Electronic Engine Controller 2.

§

ElectronicEngineController1

EEC1 - Electronic Engine Controller 1.

§

ElectronicTransmissionController2

ETC2 Electronic Transmission Controller 2

§

TANKInformation1

TI1 - TANK Information 1.

§

Tachoraph

TCO1 - Tachoraph.

§

ECUHistory

EH - ECU History.

§

FanDrive

FD - Fan Drive.

§

ElectronicEngineController4

EEC4 - Electronic Engine Controller 4.

§

DiagnosticMessage1

DM1 - Diagnostic Message 1 - Active Diagnostics Trouble Codes.

§

DiagnosticMessage2

DM2 - Diagnostic Message 2 - Previously Active Diagnostics Trouble Codes.

§

DiagnosticMessage3

DM3 - Diagnostic Message 3 - Diagnostics Data Clear of Previously Active DTCs.

§

DiagnosticMessage4

DM4 - Diagnostic Message 4 - Freeze Frame Parameters.

§

DiagnosticMessage11

DM11 - Diagnostic Message 11 - Diagnostics Data Clear of Active DTCs.

§

DiagnosticMessage12

DM12 - Emission Related Active DTCs.

§

SoftwareIdentification

SOFT - Software Identification.

§

EngineFluidLevelPressure2

EFL/P2 - Engine Fluid Level/Pressure 2.

§

IdleOperation

IO - Idle Operation.

§

Request

RQST - Request.

§

Request2

RQST2 - Request 2.

§

TransportProtocolDataTransfer

TP.DT - Transport Protocol Data Transfer.

§

TransportProtocolConnectionManagement

TP.CM - Transport Protocol Connection Management.

§

AddressClaimed

AC - Address Claimed.

§

ProprietaryA

PropA - Proprietary A.

§

ElectronicBrakeController1

EBC1 - Electronic Brake Controller 1.

§

ElectronicTransmissionController1

ETC1 - Electronic Transmission Controller 1.

§

CommandedAddress

CA - Commanded Address.

§

AuxiliaryInputOutputStatus

AUXIO - Auxiliary Input/Output Status.

§

ElectronicEngineController3

EEC3 - Electronic Engine Controller 3

§

VehicleDistance

VD - Vehicle Distance.

§

EngineConfiguration

EC - Engine Configuration.

§

Shutdown

SHUTDOWN - Shutdown.

§

EngineHoursRevolutions

HOURS - Engine Hours, Revolutions.

§

TimeDate

TD - Time / Date.

§

VehicleHours

VH - Vehicle Hours.

§

VehicleDirectionSpeed

VDS - Vehicle Direction/Speed.

§

FuelConsumption

LFC - Fuel Consumption (Liquid).

§

VehicleWeight

VW - Vehicle Weight.

§

EngineTemperature1

ET1 - Engine Temperature 1.

§

EngineFluidLevelPressure1

EFL/P1 - Engine Fluid Level/Pressure 1.

§

PowerTakeoffInformation

PTO - Power Takeoff Information.

§

CruiseControlVehicleSpeed

CCVS - Cruise Control/Vehicle Speed.

§

FuelEconomy

LFE - Fuel Economy (Liquid).

§

VehiclePosition

VP - Vehicle Position.

§

AmbientConditions

AMB - Ambient Conditions.

§

InletExhaustConditions1

IC1 - Inlet/Exhaust Conditions 1.

§

VehicleElectricalPower1

VEP1 - Vehicle Electrical Power 1.

§

TransmissionFluids

TF - Transmission Fluids.

§

AxleInformation

AI - Axle Information.

§

Brakes

B - Brakes.

§

RetarderFluids

RF - Retarder fluids.

§

DashDisplay

DD - Dash Display.

§

AlternateFuel1

A1 - Alternate Fuel 1.

§

AuxiliaryWaterPumpPressure

AWPP - Auxiliary Water Pump Pressure.

§

WaterInFuelIndicator

WFI - Water in Fuel Indicator.

§

AcknowledgmentMessage

ACKM - Acknowledgment Message.

§

ComponentIdentification

CI - Component Identification.

§

VehicleIdentification

VI - Vehicle Identification.

§

ProprietaryB(u32)

PropB - Proprietary B.

§

Other(u32)

Other PGN.

Implementations§

source§

impl PGN

source

pub fn to_le_bytes(self) -> [u8; 3]

Converts the PGN to a little-endian byte array.

Returns a byte array of length PGN_MAX_LENGTH representing the PGN in little-endian format.

source

pub fn from_le_bytes(bytes: [u8; 3]) -> Self

Creates a PGN from a little-endian byte array.

Returns the PGN created from the byte array.

Trait Implementations§

source§

impl Clone for PGN

source§

fn clone(&self) -> PGN

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PGN

source§

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

Formats the value using the given formatter. Read more
source§

impl From<PGN> for u32

source§

fn from(value: PGN) -> Self

Converts to this type from the input type.
source§

impl From<u32> for PGN

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl PartialEq for PGN

source§

fn eq(&self, other: &PGN) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for PGN

source§

impl Eq for PGN

source§

impl StructuralPartialEq for PGN

Auto Trait Implementations§

§

impl Freeze for PGN

§

impl RefUnwindSafe for PGN

§

impl Send for PGN

§

impl Sync for PGN

§

impl Unpin for PGN

§

impl UnwindSafe for PGN

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>,

§

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>,

§

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.