mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-10-13 22:11:32 +00:00
Add debug method to manually set controller address (e.g. for bench testing)
This commit is contained in:
@@ -43,8 +43,9 @@ public:
|
|||||||
static_assert(((Devs::id != NoDevice) && ...),
|
static_assert(((Devs::id != NoDevice) && ...),
|
||||||
"a registered Device id collides with the NoDevice sentinel; "
|
"a registered Device id collides with the NoDevice sentinel; "
|
||||||
"update the sentinel value in avclan.h");
|
"update the sentinel value in avclan.h");
|
||||||
static_assert(sizeof...(Devs) <= 0x100,
|
static_assert(
|
||||||
"too many devices: Notifier packs the device index into 8 bits");
|
sizeof...(Devs) <= 0x100,
|
||||||
|
"too many devices: Notifier packs the device index into 8 bits");
|
||||||
|
|
||||||
static constexpr UBaseType_t EMIT_QUEUE_LEN = 2 * sizeof...(Devs);
|
static constexpr UBaseType_t EMIT_QUEUE_LEN = 2 * sizeof...(Devs);
|
||||||
|
|
||||||
@@ -68,6 +69,7 @@ public:
|
|||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
Bus &get_bus() { return bus; }
|
Bus &get_bus() { return bus; }
|
||||||
|
void set_controller(uint16_t addr) { controller_ = addr; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
expected<std::unique_ptr<Frame>, Error::Read>
|
expected<std::unique_ptr<Frame>, Error::Read>
|
||||||
|
|||||||
Reference in New Issue
Block a user