Add debug method to manually set controller address (e.g. for bench testing)

This commit is contained in:
Allen Hill
2026-09-28 11:30:34 -07:00
parent 74d6bf36f1
commit d50964a26d
+4 -2
View File
@@ -43,8 +43,9 @@ public:
static_assert(((Devs::id != NoDevice) && ...),
"a registered Device id collides with the NoDevice sentinel; "
"update the sentinel value in avclan.h");
static_assert(sizeof...(Devs) <= 0x100,
"too many devices: Notifier packs the device index into 8 bits");
static_assert(
sizeof...(Devs) <= 0x100,
"too many devices: Notifier packs the device index into 8 bits");
static constexpr UBaseType_t EMIT_QUEUE_LEN = 2 * sizeof...(Devs);
@@ -68,6 +69,7 @@ public:
#ifndef NDEBUG
Bus &get_bus() { return bus; }
void set_controller(uint16_t addr) { controller_ = addr; }
#endif
expected<std::unique_ptr<Frame>, Error::Read>