DBC Framework
DBC parsing and CAN signal decoding framework
Loading...
Searching...
No Matches
DecodedSignalValue Struct Reference

One decoded signal value. More...

#include <dbc_decoder.h>

Public Member Functions

const std::string * GetValueDescription () const
 

Public Attributes

std::shared_ptr< const DecodeSignal > definition
 
SignalKey key
 
RawSignalValue rawValue = std::uint64_t(0U)
 
double physicalValue = 0.0
 
bool valid = false
 
SignalDecodeStatus status = SignalDecodeStatus::InvalidDefinition
 

Detailed Description

One decoded signal value.

Definition at line 43 of file dbc_decoder.h.

Member Function Documentation

◆ GetValueDescription()

const std::string * DecodedSignalValue::GetValueDescription ( ) const
inline

Lookup using the raw integer; nullptr for invalid or unmapped values.

Definition at line 52 of file dbc_decoder.h.

References definition, rawValue, and valid.

Member Data Documentation

◆ definition

std::shared_ptr<const DecodeSignal> DecodedSignalValue::definition

Owning immutable definition.

Definition at line 44 of file dbc_decoder.h.

Referenced by DbcDecoder::Decode(), and GetValueDescription().

◆ key

SignalKey DecodedSignalValue::key

Stable application identifier.

Definition at line 45 of file dbc_decoder.h.

Referenced by DbcDecoder::Decode().

◆ rawValue

RawSignalValue DecodedSignalValue::rawValue = std::uint64_t(0U)

Exact signed or unsigned raw value.

Definition at line 46 of file dbc_decoder.h.

Referenced by GetValueDescription().

◆ physicalValue

double DecodedSignalValue::physicalValue = 0.0

Converted physical value.

Definition at line 47 of file dbc_decoder.h.

◆ valid

bool DecodedSignalValue::valid = false

true if decoding succeeded.

Definition at line 48 of file dbc_decoder.h.

Referenced by GetValueDescription().

◆ status

SignalDecodeStatus DecodedSignalValue::status = SignalDecodeStatus::InvalidDefinition

Definition at line 49 of file dbc_decoder.h.


The documentation for this struct was generated from the following file: