const CMOS_ADDR_PORT
pub const CMOS_ADDR_PORT = 0x70Purpose
Constant CMOS_ADDR_PORT, defining protocol or algorithm parameters.
#core/rtcStandard library package `#core/rtc`.
const CMOS_ADDR_PORTpub const CMOS_ADDR_PORT = 0x70Constant CMOS_ADDR_PORT, defining protocol or algorithm parameters.
const CMOS_DATA_PORTpub const CMOS_DATA_PORT = 0x71Constant CMOS_DATA_PORT, defining protocol or algorithm parameters.
const CMOS_REG_SECONDSpub const CMOS_REG_SECONDS = 0x00Constant CMOS_REG_SECONDS, defining protocol or algorithm parameters.
const CMOS_REG_MINUTESpub const CMOS_REG_MINUTES = 0x02Constant CMOS_REG_MINUTES, defining protocol or algorithm parameters.
const CMOS_REG_HOURSpub const CMOS_REG_HOURS = 0x04Constant CMOS_REG_HOURS, defining protocol or algorithm parameters.
const CMOS_REG_DAYpub const CMOS_REG_DAY = 0x07Constant CMOS_REG_DAY, defining protocol or algorithm parameters.
const CMOS_REG_MONTHpub const CMOS_REG_MONTH = 0x08Constant CMOS_REG_MONTH, defining protocol or algorithm parameters.
const CMOS_REG_YEARpub const CMOS_REG_YEAR = 0x09Constant CMOS_REG_YEAR, defining protocol or algorithm parameters.
const CMOS_REG_STATUS_Apub const CMOS_REG_STATUS_A = 0x0AConstant CMOS_REG_STATUS_A, defining protocol or algorithm parameters.
const CMOS_REG_STATUS_Bpub const CMOS_REG_STATUS_B = 0x0BConstant CMOS_REG_STATUS_B, defining protocol or algorithm parameters.
const CMOS_REG_CENTURYpub const CMOS_REG_CENTURY = 0x32Constant CMOS_REG_CENTURY, defining protocol or algorithm parameters.
const PL031_REG_RTCDRpub const PL031_REG_RTCDR = 0x000Constant PL031_REG_RTCDR, defining protocol or algorithm parameters.
const GOLDFISH_REG_TIME_LOWpub const GOLDFISH_REG_TIME_LOW = 0x00Constant GOLDFISH_REG_TIME_LOW, defining protocol or algorithm parameters.
const GOLDFISH_REG_TIME_HIGHpub const GOLDFISH_REG_TIME_HIGH = 0x04Constant GOLDFISH_REG_TIME_HIGH, defining protocol or algorithm parameters.
struct RtcDateTimepub struct RtcDateTime {
pub year u16
pub month u8
pub day u8
pub hour u8
pub minute u8
pub second u8
}Structure encapsulating year, month, day, hour, minute.
year u16month u8day u8hour u8minute u8second u8rtc_bcd_to_binpub fn rtc_bcd_to_bin(v u8) u8Rtc bcd to bin.
v u8u8 — a value of this type
rtc_is_leap_yearpub fn rtc_is_leap_year(y u32) boolWhether rtc is leap_year.
y u32bool — true or false
rtc_datetime_to_unixpub fn rtc_datetime_to_unix(dt &RtcDateTime) u64Rtc datetime to unix.
dt &RtcDateTimeu64 — a value of this type
rtc_unix_to_datetimepub fn rtc_unix_to_datetime(epoch u64) RtcDateTimeRtc unix to datetime.
epoch u64RtcDateTime — a value of this type
cmos_read_datetimepub fn cmos_read_datetime() RtcDateTimeCmos read datetime.
No arguments are required.
RtcDateTime — a value of this type
pl031_read_unixpub fn pl031_read_unix(base u64) u64Pl031 read unix.
base u64u64 — a value of this type
goldfish_rtc_read_nspub fn goldfish_rtc_read_ns(base u64) u64Goldfish rtc read ns.
base u64u64 — a value of this type
goldfish_rtc_read_unixpub fn goldfish_rtc_read_unix(base u64) u64Goldfish rtc read unix.
base u64u64 — a value of this type