Class ArchAVR_ResetCtrl
Defined in File arch_avr_misc.h
Inheritance Relationships
Base Type
public Peripheral(Class Peripheral)
Class Documentation
-
class ArchAVR_ResetCtrl : public Peripheral
Implementation of a Reset controller for AVR core series.
Public Functions
-
explicit ArchAVR_ResetCtrl(const ArchAVR_ResetCtrlConfig &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
-
explicit ArchAVR_ResetCtrl(const ArchAVR_ResetCtrlConfig &config)