Add direct-access methods to the base Device class, so that there's a common...
Add direct-access methods to the base Device class, so that there's a common way of talking to drivers regardless of which of the specialised classes they derive from. Make the Device destructor public and virtual, so that arbitrary devices can be deleted. Likewise for classes that derive from it. Make Device::init public so that arbitrary devices can be initialised after being returned by factories.
Showing
- src/drivers/device/device.cpp 18 additions, 1 deletionsrc/drivers/device/device.cpp
- src/drivers/device/device.h 57 additions, 13 deletionssrc/drivers/device/device.h
- src/drivers/device/i2c.h 6 additions, 8 deletionssrc/drivers/device/i2c.h
- src/drivers/device/spi.h 1 addition, 1 deletionsrc/drivers/device/spi.h
Please register or sign in to comment