Lines Matching refs:dev
238 fn read_time(&self, dev: &Arc<dyn RtcDevice>) -> Result<RtcTime, SystemError> { in read_time()
240 let dev = dev in read_time() localVariable
245 let _guard = dev.ops_mutex.lock(); in read_time()
250 let status_register_b: u8 = dev.read_cmos(0x0B); // 读取状态寄存器B in read_time()
257 res.year = dev.read_cmos(CMOSTimeSelector::Year as u8) as i32; in read_time()
258 res.month = dev.read_cmos(CMOSTimeSelector::Month as u8) as i32; in read_time()
259 res.mday = dev.read_cmos(CMOSTimeSelector::Day as u8) as i32; in read_time()
260 res.hour = dev.read_cmos(CMOSTimeSelector::Hour as u8) as i32; in read_time()
261 res.minute = dev.read_cmos(CMOSTimeSelector::Minute as u8) as i32; in read_time()
262 res.second = dev.read_cmos(CMOSTimeSelector::Second as u8) as i32; in read_time()
264 if res.second == dev.read_cmos(CMOSTimeSelector::Second as u8) as i32 { in read_time()