Class DummyController
Defined in File sim_peripheral.h
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public Peripheral(Class Peripheral)
Class Documentation
-
class DummyController : public Peripheral
Generic dummy peripheral.
It does nothing but adding I/O registers.
Public Functions
-
DummyController(ctl_id_t id, const std::vector<dummy_register_t> ®s)
-
virtual bool init(Device &device) override
Virtual method called when the device is initialised. This is where the peripheral can allocate its I/O registers, interrupts or connect signals.
- Returns:
boolean indicates the success of all allocations.
-
virtual void reset() override
Virtual method called when the device is reset. Note that resetting I/O registers is only necessary here if their reset value is not zero.
-
struct dummy_register_t
-
DummyController(ctl_id_t id, const std::vector<dummy_register_t> ®s)