updated bus message classes for getBusType()
parent
4901168068
commit
55f90f5602
|
|
@ -22,6 +22,8 @@ using ChannelMap = std::unordered_map<uint8_t, uint8_t>;
|
|||
|
||||
class A2BMessage : public BusMessage {
|
||||
public:
|
||||
const icsneo_msg_bus_type_t getBusType() const final { return icsneo_msg_bus_type_a2b; }
|
||||
|
||||
static constexpr size_t maxAudioBufferSize = 2048;
|
||||
|
||||
enum class TDMMode : uint8_t {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ namespace icsneo {
|
|||
|
||||
class CANMessage : public BusMessage {
|
||||
public:
|
||||
const icsneo_msg_bus_type_t getBusType() const final { return icsneo_msg_bus_type_can; }
|
||||
|
||||
uint32_t arbid;
|
||||
uint8_t dlcOnWire;
|
||||
bool isRemote = false; // Not allowed if CAN FD
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ struct MACAddress {
|
|||
|
||||
class EthernetMessage : public BusMessage {
|
||||
public:
|
||||
const icsneo_msg_bus_type_t getBusType() const final { return icsneo_msg_bus_type_ethernet; }
|
||||
|
||||
bool preemptionEnabled = false;
|
||||
uint8_t preemptionFlags = 0;
|
||||
bool fcsAvailable = false;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace icsneo {
|
||||
|
||||
class ExtendedDataMessage : public BusMessage {
|
||||
class ExtendedDataMessage : public InternalMessage {
|
||||
public:
|
||||
#pragma pack(push, 2)
|
||||
struct ExtendedDataHeader {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ namespace icsneo {
|
|||
|
||||
class FlexRayMessage : public BusMessage {
|
||||
public:
|
||||
const icsneo_msg_bus_type_t getBusType() const final { return icsneo_msg_bus_type_flexray; }
|
||||
uint16_t slotid = 0;
|
||||
double tsslen = 0;
|
||||
double framelen = 0;
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ namespace icsneo {
|
|||
|
||||
class I2CMessage : public BusMessage {
|
||||
public:
|
||||
const icsneo_msg_bus_type_t getBusType() const final { return icsneo_msg_bus_type_i2c; }
|
||||
|
||||
enum class DeviceMode : uint8_t {
|
||||
Target = 0,
|
||||
Controller = 1
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ namespace icsneo {
|
|||
|
||||
class ISO9141Message : public BusMessage {
|
||||
public:
|
||||
const icsneo_msg_bus_type_t getBusType() const final { return icsneo_msg_bus_type_iso9141; }
|
||||
std::array<uint8_t, 3> header;
|
||||
bool isInit = false;
|
||||
bool isBreak = false;
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@ struct LINStatusFlags {
|
|||
|
||||
class LINMessage : public BusMessage {
|
||||
public:
|
||||
const icsneo_msg_bus_type_t getBusType() const final { return icsneo_msg_bus_type_lin; }
|
||||
|
||||
enum class Type : uint8_t {
|
||||
NOT_SET = 0,
|
||||
LIN_COMMANDER_MSG,
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ namespace icsneo {
|
|||
|
||||
class MDIOMessage : public BusMessage {
|
||||
public:
|
||||
const icsneo_msg_bus_type_t getBusType() const final { return icsneo_msg_bus_type_mdio; }
|
||||
|
||||
enum class Clause : uint8_t {
|
||||
Clause45 = 0,
|
||||
Clause22 = 1
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public:
|
|||
|
||||
const icsneo_msg_type_t getMsgType() const final { return icsneo_msg_type_bus; }
|
||||
|
||||
//virtual const icsneo_msg_bus_type_t getBusType() const = 0;
|
||||
virtual const icsneo_msg_bus_type_t getBusType() const = 0;
|
||||
|
||||
uint16_t description = 0;
|
||||
bool transmitted = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue