DbcLib 1.0
CAN DBC C++ library.
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations
dbc Namespace Reference

Main namespace for the DBC library. More...

Classes

class  Attribute
 Support class for handling attributes of network objects. More...
 
class  DbcFile
 Main user object that is an interface against a DBC file. More...
 
class  DbcMessage
 Wrapper class around a CAN message. More...
 
class  EnvVar
 Wrapper around an environment DBC variable. More...
 
struct  ExtendedMux
 Support function for the extended multiplexor functionality. More...
 
class  ISampleObserver
 Interface that handles samples. Internal usage. More...
 
class  Message
 DBC message configuration object. More...
 
class  Network
 Interface against a DBC network configuration. More...
 
class  Node
 Interface against a DBC node which normally is an ECU. More...
 
class  Signal
 Interface against a DBC signal configuration. More...
 
class  SignalGroup
 Interface against a signal group. More...
 
class  SignalObserver
 The sample observer hold a number of samples. More...
 
struct  SignalValue
 Support function that holds the channel value for a signal. More...
 

Typedefs

using SignalList = std::map< std::string, Signal >
 Sorted list of signal objects.
 
using EnumMap = std::map< int64_t, std::string >
 Enumerate list.
 
using MessageList = std::map< uint64_t, Message >
 Sorted message of messages. Message ID is the key.
 
using RangePair = std::pair< size_t, size_t >
 Min and Max range definition.
 
using SignalObserverList = std::vector< std::unique_ptr< SignalObserver > >
 List of observer.
 

Enumerations

enum class  AttributeType : int {
  DbcNetwork , DbcNode , DbcMessage , DbcSignal ,
  EnvironmentVariable , NodeSignalRelation , NodeMessageRelation
}
 Define what type of network object the attribute is valid for. More...
 
enum class  AttributeValueType : int {
  IntegerValue , FloatValue , StringValue , EnumValue ,
  HexValue
}
 Data type of the attribute. More...
 
enum class  EnvType : int { IntegerType = 0 , FloatType = 1 , StringType = 2 , DataType = 3 }
 The variable data type. More...
 
enum class  AccessType : int { Unrestricted = 0 , ReadOnly = 1 , WriteOnly = 2 , ReadWrite = 3 }
 Type of access. More...
 
enum class  ProtocolType : int { StandardCAN = 0 , J1939 = 1 , NMEA2000 = 2 , OBD2 = 3 }
 Type of CAN protocol. More...
 
enum class  BusType : int { CAN = 0 }
 Type of bus. More...
 
enum class  SignalDataType : int { SignedData , UnsignedData , FloatData , DoubleData }
 Signal data type. More...
 
enum class  MuxType : int { NotMultiplexed , Multiplexor , Multiplexed , ExtendedMultiplexor }
 Multiplexer type. More...
 

Detailed Description

Main namespace for the DBC C++ library classes and functions.

Enumeration Type Documentation

◆ AccessType

enum class dbc::AccessType : int
strong
Enumerator
Unrestricted 

Unrestricted access.

ReadOnly 

Read-only access.

WriteOnly 

Write-only access.

ReadWrite 

Read and write access.

◆ AttributeType

enum class dbc::AttributeType : int
strong
Enumerator
DbcNetwork 

Network attribute.

DbcNode 

Node/Device attribute.

DbcMessage 

Message attribute.

DbcSignal 

Signal attribute.

EnvironmentVariable 

Environment attribute.

NodeSignalRelation 

Node signal relation attribute.

NodeMessageRelation 

Node message relation attribute.

◆ AttributeValueType

enum class dbc::AttributeValueType : int
strong
Enumerator
IntegerValue 

Integer value.

FloatValue 

Floating point value.

StringValue 

Text value.

EnumValue 

Enumerate value.

HexValue 

Hexa-decimal value.

◆ BusType

enum class dbc::BusType : int
strong
Enumerator
CAN 

CAN bus.

◆ EnvType

enum class dbc::EnvType : int
strong
Enumerator
IntegerType 

Integer variable.

FloatType 

Floating point variable.

StringType 

Text variable.

DataType 

Data type variable.

◆ MuxType

enum class dbc::MuxType : int
strong

A signal may be multiplexed i.e. have different value depending on another multiplexor signal.Then someone invented the extended multiplexed value which makes every thing confusing.

Enumerator
NotMultiplexed 

Normal signal.

Multiplexor 

Multiplexor signal.

Multiplexed 

Multiplexed signal.

ExtendedMultiplexor 

Extended multiplexor signal.

◆ ProtocolType

enum class dbc::ProtocolType : int
strong
Enumerator
StandardCAN 

Standard CAN.

J1939 

J1939 protocol.

NMEA2000 

NMEA protocol.

OBD2 

OBD2 protocol.

◆ SignalDataType

enum class dbc::SignalDataType : int
strong
Enumerator
SignedData 

Signed integer.

UnsignedData 

Unsigned integer.

FloatData 

Float value.

DoubleData 

Double value.