Added dummy can driver.
This commit is contained in:
19
bcdriver.h
19
bcdriver.h
@@ -130,8 +130,23 @@ protected:
|
||||
|
||||
DriverState _driverState{DriverState::NotPresent};
|
||||
|
||||
static constexpr int cRetries = 5;
|
||||
static constexpr int cTimeOuts = 20;
|
||||
};
|
||||
|
||||
|
||||
class BCDriverDummy : public BCDriver
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
|
||||
explicit BCDriverDummy( QObject* parent = nullptr );
|
||||
|
||||
DriverState loadDriver() override;
|
||||
DriverState initDriver() override;
|
||||
|
||||
uint32_t readRawByte( uint32_t deviceID, uint8_t registerID ) const override;
|
||||
void writeRawByte( uint32_t deviceID, uint8_t registerID, uint8_t value ) const override;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user