#[doc = "Register `UPDATE` reader"]
pub type R = crate::R<UPDATE_SPEC>;
#[doc = "Register `UPDATE` writer"]
pub type W = crate::W<UPDATE_SPEC>;
#[doc = "Field `UPDATE` reader - t0_update"]
pub type UPDATE_R = crate::BitReader;
#[doc = "Field `UPDATE` writer - t0_update"]
pub type UPDATE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 31 - t0_update"]
#[inline(always)]
pub fn update(&self) -> UPDATE_R {
UPDATE_R::new(((self.bits >> 31) & 1) != 0)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UPDATE")
.field("update", &self.update())
.finish()
}
}
impl W {
#[doc = "Bit 31 - t0_update"]
#[inline(always)]
#[must_use]
pub fn update(&mut self) -> UPDATE_W<UPDATE_SPEC> {
UPDATE_W::new(self, 31)
}
}
#[doc = "TIMG_T0UPDATE_REG.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`update::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`update::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct UPDATE_SPEC;
impl crate::RegisterSpec for UPDATE_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`update::R`](R) reader structure"]
impl crate::Readable for UPDATE_SPEC {}
#[doc = "`write(|w| ..)` method takes [`update::W`](W) writer structure"]
impl crate::Writable for UPDATE_SPEC {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets UPDATE to value 0"]
impl crate::Resettable for UPDATE_SPEC {
const RESET_VALUE: u32 = 0;
}