rtcdev
vrtc->rtcdev.reg_a = newval & ~RTCSA_TUP;
uint8_t *rtc_raw = (uint8_t *)&vrtc->rtcdev;
if (offset < 0 || offset >= sizeof (struct rtcdev)) {
const uint8_t *rtc_raw = (uint8_t *)&vrtc->rtcdev;
if (offset < 0 || offset >= sizeof (struct rtcdev)) {
const uint8_t *rtc_raw = (uint8_t *)&vrtc->rtcdev;
ASSERT(offset < sizeof (struct rtcdev));
uint8_t *rtc_raw = (uint8_t *)&vrtc->rtcdev;
if (offset >= sizeof (struct rtcdev))
if (offset < sizeof (struct rtcdev)) {
struct rtcdev *rtc = &vrtc->rtcdev;
struct rtcdev *rtc;
rtc = &vrtc->rtcdev;
bcopy(&vrtc->rtcdev, out->vr_content, sizeof (out->vr_content));
struct rtcdev rtcdev;
bcopy(src->vr_content, &vrtc->rtcdev, sizeof (vrtc->rtcdev));
vrtc->rtcdev.reg_a &= ~RTCSA_TUP;
vrtc->rtcdev.reg_c &= RTCSC_MASK;
vrtc->rtcdev.reg_d = RTCSD_PWR;
return ((vrtc->rtcdev.reg_b & RTCSB_HALT) != 0);
if (!rega_divider_en(vrtc->rtcdev.reg_a))
rtc_enc(const struct rtcdev *rtc, uint8_t val)
struct rtcdev *rtc = &vrtc->rtcdev;
rtc_dec(const struct rtcdev *rtc, uint8_t val, bool *errp)
rtc_parse_hour(const struct rtcdev *rtc, uint8_t hour, bool *errp)
const struct rtcdev *rtc = &vrtc->rtcdev;
struct rtcdev *rtc = &vrtc->rtcdev;
struct rtcdev *rtc = &vrtc->rtcdev;
struct rtcdev *rtc = &vrtc->rtcdev;
struct rtcdev *rtc = &vrtc->rtcdev;
struct rtcdev *rtc = &vrtc->rtcdev;
struct rtcdev *rtc = &vrtc->rtcdev;
struct rtcdev *rtc = &vrtc->rtcdev;
if (rega_divider_en(vrtc->rtcdev.reg_a)) {
CTASSERT(sizeof (struct rtcdev) == 128);
CTASSERT(offsetof(struct rtcdev, century) == RTC_CENTURY);
const uint8_t oldval = vrtc->rtcdev.reg_a;