#[doc = "Register `TACCR4` reader"]
pub type R = crate::R<Taccr4Spec>;
#[doc = "Register `TACCR4` writer"]
pub type W = crate::W<Taccr4Spec>;
#[doc = "Field `TACCR4` reader - Timer A Capture/Compare register 4"]
pub type Taccr4R = crate::FieldReader<u16>;
#[doc = "Field `TACCR4` writer - Timer A Capture/Compare register 4"]
pub type Taccr4W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[doc = "Bits 0:15 - Timer A Capture/Compare register 4"]
#[inline(always)]
pub fn taccr4(&self) -> Taccr4R {
Taccr4R::new(self.bits)
}
}
impl W {
#[doc = "Bits 0:15 - Timer A Capture/Compare register 4"]
#[inline(always)]
pub fn taccr4(&mut self) -> Taccr4W<'_, Taccr4Spec> {
Taccr4W::new(self, 0)
}
}
#[doc = "Timer0_A5 Capture/Compare 4\n\nYou can [`read`](crate::Reg::read) this register and get [`taccr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`taccr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Taccr4Spec;
impl crate::RegisterSpec for Taccr4Spec {
type Ux = u16;
}
#[doc = "`read()` method returns [`taccr4::R`](R) reader structure"]
impl crate::Readable for Taccr4Spec {}
#[doc = "`write(|w| ..)` method takes [`taccr4::W`](W) writer structure"]
impl crate::Writable for Taccr4Spec {
type Safety = crate::Safe;
}
#[doc = "`reset()` method sets TACCR4 to value 0"]
impl crate::Resettable for Taccr4Spec {}