-
- Downloads
device: added a _device_id to all drivers
this device ID identifies a specific device via the tuple of (bus, bus type, address, devtype). This allows device specific configuration data to be stored along with a device ID, so the code can know when the user has changed device configuration (such as removing an external compass), and either invalidate the device configuration or force the user to re-calibrate
Showing
- src/drivers/device/device.cpp 12 additions, 0 deletionssrc/drivers/device/device.cpp
- src/drivers/device/device.h 25 additions, 0 deletionssrc/drivers/device/device.h
- src/drivers/device/i2c.cpp 7 additions, 1 deletionsrc/drivers/device/i2c.cpp
- src/drivers/device/spi.cpp 6 additions, 0 deletionssrc/drivers/device/spi.cpp
- src/drivers/drv_device.h 7 additions, 0 deletionssrc/drivers/drv_device.h
Please register or sign in to comment