Class ArchXT_PortMuxCtrl
Defined in File arch_xt_misc.h
Inheritance Relationships
Base Type
public Peripheral(Class Peripheral)
Class Documentation
-
class ArchXT_PortMuxCtrl : public Peripheral
Implementation of a generic portmux controller for XT core series.
Public Functions
-
ArchXT_PortMuxCtrl(const ArchXT_PortMuxConfig &config)
-
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.
-
virtual void ioreg_write_handler(reg_addr_t addr, const ioreg_write_t &data) override
Virtual method called when the CPU is writing a I/O register allocated by this peripheral. The value has already been written.
- Parameters:
addr – the register address in I/O space
value – the new register content
-
ArchXT_PortMuxCtrl(const ArchXT_PortMuxConfig &config)