Class DummyController

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

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> &regs)
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

Public Members

regbit_t reg

Address of the I/O register.

uint8_t reset

Reset value of the I/O register.