CAN adopted, Linux work

This commit is contained in:
2022-11-07 18:07:26 +03:00
parent 6da1ec5acf
commit fffaf0726d
4 changed files with 29 additions and 14 deletions

View File

@@ -39,6 +39,7 @@ public:
void setCANID(int id);
int CANID() const;
int readedCANID() const;
void interrupt() override;
protected:
bool openDevice() override;
@@ -52,6 +53,7 @@ protected:
DeviceInfoFlags deviceInfoFlags() const override {return PIIODevice::Reliable;}
private:
PRIVATE_DECLARATION(PIP_EXPORT)
int sock;
int can_id, readed_id;
};