#[repr(C, packed(1))]pub struct TimeOfDay {
pub deci_seconds: RW<u8>,
pub seconds: RW<u8>,
pub minutes: RW<u8>,
pub hours: RW<u8>,
}Expand description
A real-time clock is incorporated in the CIA, providing a timekeeping device more conducive to human needs than the microsecond precision of the interval timers. Time is kept in the American 12-hour AM/PM format. The TOD clock consists of four read/write registers: hours (with bit 7 acting as the AM/PM flag), minutes, seconds and tenths of a second. All registers read out in BCD format, thus simplifying the encoding/decoding process.
Fields§
§deci_seconds: RW<u8>§seconds: RW<u8>§minutes: RW<u8>§hours: RW<u8>Auto Trait Implementations§
impl !Freeze for TimeOfDay
impl !RefUnwindSafe for TimeOfDay
impl Send for TimeOfDay
impl !Sync for TimeOfDay
impl Unpin for TimeOfDay
impl UnwindSafe for TimeOfDay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more