mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Device: Add GetComponentVersions and GetSupportedFeatures commands
Driver: Fix re-open and failed open cases for TCP Also enforces even length packets for the RED2, FIRE3, and FIRE3 FlexRay devices.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#ifndef _SUPPORTED_FEATURES_RESPONSE_MESSAGE_H_
|
||||
#define _SUPPORTED_FEATURES_RESPONSE_MESSAGE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "icsneo/communication/message/extendedresponsemessage.h"
|
||||
#include <cstdint>
|
||||
#include <set>
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
enum class SupportedFeature : uint16_t {
|
||||
networkDWCAN01 = 0,
|
||||
networkDWCAN02 = 1,
|
||||
networkDWCAN03 = 2,
|
||||
networkDWCAN04 = 3,
|
||||
networkDWCAN05 = 4,
|
||||
networkDWCAN06 = 5,
|
||||
networkDWCAN07 = 6,
|
||||
networkDWCAN08 = 7,
|
||||
networkTerminationDWCAN01 = 8,
|
||||
networkTerminationDWCAN02 = 9,
|
||||
networkTerminationDWCAN03 = 10,
|
||||
networkTerminationDWCAN04 = 11,
|
||||
networkTerminationDWCAN05 = 12,
|
||||
networkTerminationDWCAN06 = 13,
|
||||
networkTerminationDWCAN07 = 14,
|
||||
networkTerminationDWCAN08 = 15,
|
||||
enhancedFlashDriver = 16,
|
||||
rtcCalibration = 17,
|
||||
rtcClosedLoopCalibration = 18,
|
||||
numSupportedFeatures,
|
||||
};
|
||||
|
||||
class SupportedFeaturesMessage : public Message {
|
||||
public:
|
||||
SupportedFeaturesMessage() : Message(Message::Type::SupportedFeatures) {}
|
||||
std::set<SupportedFeature> features;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif // _SUPPORTED_FEATURES_RESPONSE_MESSAGE_H_
|
||||
Reference in New Issue
Block a user