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
impl PGN
sourcepub fn to_le_bytes(self) -> [u8; 3]
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.
sourcepub fn from_le_bytes(bytes: [u8; 3]) -> Self
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.