Module vm_superio::rtc_pl031
source · Expand description
Provides emulation for a minimal ARM PL031 Real Time Clock.
This module implements a PL031 Real Time Clock (RTC) that provides a long time base counter. This is achieved by generating an interrupt signal after counting for a programmed number of cycles of a real-time clock input.
Structs§
- Provides a no-op implementation of
RtcEvents
which can be used in situations that do not require logging or otherwise doing anything in response to the events defined as part ofRtcEvents
. - A PL031 Real Time Clock (RTC) that emulates a long time base counter.
- The state of the Rtc device.
Traits§
- Defines a series of callbacks that are invoked in response to the occurrence of specific failure or missed events as part of the RTC operation (e.g., write to an invalid offset). The methods below can be implemented by a backend that keeps track of such events by incrementing metrics, logging messages, or any other action.