Crate cangen

Crate cangen 

Source

Modules§

conv
Scaled fixed-point conversion helpers used by the generated bitfields.

Structs§

AcCurrentCommand
AlphaCellDataDebug
AlphaCellSAdcData
AlphaChipADebug
AlphaChipBDebug
BackMsbAccel
BackMsbEnv
BackMsbGyro
BackMsbOrientation
BackMsbStrain
BackRideHeight
BackShockpot
BackWheelTemp
BattboxEfuse
BattboxEfuseState
BetaCellDataDebug
BetaCellSAdcData
BetaChipADebug
BetaChipBDebug
BmsBattboxTempAsReportedByVcu
BmsChargeMessageSend
BmsCriticallyFaulted
BmsDebug
BmsFaultTimers
BmsImuAccelerometer
BmsImuGyro
BmsOnboardTemperature
BmsShutdownStatusAsReportedByVcu
BmsStatus
BrakeCurrentCommand
BrakeEfuse
BrakeEfuseState
BrakeStateAsReportedByVcu
CarState
CellTemperatures
CellVoltage
ChargerBoxStatus
ConfiguredAndAvailableAcCurrents
ConfiguredAndAvailableDcCurrents
ControlModeMotorStatIq
CurrentCellBalancingPwmDutyCycle
CurrentsStatus
DashboardEfuse
DashboardEfuseState
DigitalOutputCommand
DriveEnableCommand
DriveLockStates
DtiControllerTempAsReportedByVcu
DtiMotorTempAsReportedByVcu
EnergyMeterMeasurement
EnergyMeterStatus
EnergyMeterTeamDataOne
EnergyMeterTeamDataTwo
EnergyMeterTemperature
ErpmCommand
ErpmDutyInputVoltageStatus
FanDutyCyclePercentage
FanbattEfuse
FanbattEfuseState
FaultStatus
Faults
FrontMsbAccel
FrontMsbEnv
FrontMsbGyro
FrontMsbOrientation
FrontMsbStrain
FrontRideHeight
FrontShockpot
FrontWheelTemp
HvPlateDiagnostics
HvPlateDiagnosticsSecond
HvPlateIsospiCommunicationStatus
HvPlatePecErrors
HvPlateVoltages
HvPlateVoltagesAdbms
ImdGeneralInformation
ImdIsolationDetailInformation
ImdItSystemInfo
ImdRequest
ImdResponse
ImdVoltageInformation
ImuAccelerometer
ImuGyro
LfiuHighCurrentAdcReadings
LfiuLowCurrentAdcReadings
LightningBoardImuAccelerationData
LightningBoardImuGyroData
LightningBoardLightStatus
LightningBoardLightningSensorInformation
LightningBoardMagnometerSensorInformation
LightningPulseMessage
LvBoxFanPwm
LvEfuse
LvEfuseState
LvVoltage
MaxAcBrakeCurrentCommand
MaxAcCurrentCommand
MaxDcBrakeCurrentCommand
MaxDcCurrentCommand
McEfuse
McEfuseState
McFocAlgorithm
McGeneralData
OnboardThermTemperatures
OutOfRange
Error returned by the generated try_with_* / try_set_* accessors when a physical value can’t be represented in a scaled field’s bit width.
OverflowNotificationForPercell
PackCurrentAndShuntTemp
PackCurrentAndShuntTempAdbms
PackSocStatus
PedalPercentPressedValues
PedalSensorVoltages
PositionCommand
PrechargeStatus
PumponeEfuse
PumponeEfuseState
PumptwoEfuse
PumptwoEfuseState
RadfanEfuse
RadfanEfuseState
RelativeBrakeCurrentCommand
RelativeCurrentCommand
ResetLatchingFault
RtdsCommandMessage
RtdsStateMessage
SecondVcuTestMessage
SegmentAverageVoltages
SegmentDeltaVoltages
SegmentIsospiCommunicationStatus
SegmentPecErrors
SegmentTemperatures
SegmentTotalVoltages
ShepherdBmsFanPercent
ShepherdBmsPwmPercent
ShepherdVersionHash
ShepherdVersionTag
ShutdownAsReadByBms
ShutdownEfuse
ShutdownEfuseState
ShutdownPins
SpareEfuse
SpareEfuseState
TemperatureSensor
TempsFaultCodeStatus
VcuTestMessage
WheelButtons
WheelTorqueDial

Traits§

CanRepr
ToCanFrame
Creates a CAN frame All the users have to do is specify Repr, ID, and LEN