3 Device::Device(void) : vcc_wire(this->vcc
)
5 std::function
<void (void)> fn
;
7 /* We use vcc_wire instead of vcc directly to avoid dealing with plug
9 fn
= std::bind(&Device::realize
, this);
10 this->vcc_wire
.out
.connect(Pin::RISING_EDGE
, fn
);
12 fn
= std::bind(&Device::reset
, this);
13 this->vcc_wire
.out
.connect(Pin::FALLING_EDGE
, fn
);
20 void Device::reset(void)
24 void Device::realize(void)
28 void Device::add_subordinate(Device
*other
)
30 other
->vcc
= &this->vcc_wire
.out
;