pub struct RtcGoldfish {
base: usize,
}Fields§
§base: usizeTrait Implementations§
Source§impl Driver for RtcGoldfish
impl Driver for RtcGoldfish
fn try_handle_interrupt(&self, irq: Option<usize>) -> bool
fn device_type(&self) -> DeviceType
fn get_id(&self) -> String
Source§fn as_net_arc(self: Arc<Self>) -> Option<Arc<dyn NetDevice>>
fn as_net_arc(self: Arc<Self>) -> Option<Arc<dyn NetDevice>>
将驱动程序转换为网络驱动程序 Arc(如果适用)
Source§fn as_block(&self) -> Option<&dyn BlockDriver>
fn as_block(&self) -> Option<&dyn BlockDriver>
将驱动程序转换为块设备驱动程序(如果适用)
Source§fn as_block_arc(self: Arc<Self>) -> Option<Arc<dyn BlockDriver>>
fn as_block_arc(self: Arc<Self>) -> Option<Arc<dyn BlockDriver>>
将驱动程序转换为块设备驱动程序 Arc(如果适用)
Source§fn as_rtc_arc(self: Arc<Self>) -> Option<Arc<dyn RtcDriver>>
fn as_rtc_arc(self: Arc<Self>) -> Option<Arc<dyn RtcDriver>>
将驱动程序转换为实时时钟驱动程序 Arc(如果适用)
Source§fn as_serial(&self) -> Option<&dyn SerialDriver>
fn as_serial(&self) -> Option<&dyn SerialDriver>
将驱动程序转换为串口驱动程序(如果适用)
Source§impl RtcDriver for RtcGoldfish
impl RtcDriver for RtcGoldfish
Source§fn read_epoch(&self) -> u64
fn read_epoch(&self) -> u64
读取自纪元以来的秒数
Source§fn read_datetime(&self) -> DateTime
fn read_datetime(&self) -> DateTime
读取日期时间(北京时间,默认实现)