Added dummy can driver.

This commit is contained in:
2025-12-30 14:42:49 +01:00
parent f170b3835d
commit fbeb4fb3c0
6 changed files with 73 additions and 16 deletions

View File

@@ -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;
};