cc430f5137 0.1.0

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