Class ArchXT_WDT

Inheritance Relationships

Base Type

Class Documentation

class ArchXT_WDT : public WatchdogTimer

Implementation of a Watchdog Timer for XT core series.

Public Functions

explicit ArchXT_WDT(const ArchXT_WDTConfig &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 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

Protected Functions

virtual void timeout() override

Callback to be reimplemented by sub-classes for handling the effects of a timeout.