cc430f5137 0.1.0

Peripheral access API for CC430F5137 microcontroller
#[doc = "Register `RF1AIFCTL0` reader"]
pub type R = crate::R<Rf1aifctl0Spec>;
#[doc = "Register `RF1AIFCTL0` writer"]
pub type W = crate::W<Rf1aifctl0Spec>;
#[doc = "Field `RFFIFOEN` reader - CC1101 Direct FIFO access enable"]
pub type RffifoenR = crate::BitReader;
#[doc = "Field `RFFIFOEN` writer - CC1101 Direct FIFO access enable"]
pub type RffifoenW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RFENDIAN` reader - CC1101 Disable endianness conversion"]
pub type RfendianR = crate::BitReader;
#[doc = "Field `RFENDIAN` writer - CC1101 Disable endianness conversion"]
pub type RfendianW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - CC1101 Direct FIFO access enable"]
    #[inline(always)]
    pub fn rffifoen(&self) -> RffifoenR {
        RffifoenR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - CC1101 Disable endianness conversion"]
    #[inline(always)]
    pub fn rfendian(&self) -> RfendianR {
        RfendianR::new(((self.bits >> 1) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - CC1101 Direct FIFO access enable"]
    #[inline(always)]
    pub fn rffifoen(&mut self) -> RffifoenW<'_, Rf1aifctl0Spec> {
        RffifoenW::new(self, 0)
    }
    #[doc = "Bit 1 - CC1101 Disable endianness conversion"]
    #[inline(always)]
    pub fn rfendian(&mut self) -> RfendianW<'_, Rf1aifctl0Spec> {
        RfendianW::new(self, 1)
    }
}
#[doc = "Radio interface control register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`rf1aifctl0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rf1aifctl0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Rf1aifctl0Spec;
impl crate::RegisterSpec for Rf1aifctl0Spec {
    type Ux = u16;
}
#[doc = "`read()` method returns [`rf1aifctl0::R`](R) reader structure"]
impl crate::Readable for Rf1aifctl0Spec {}
#[doc = "`write(|w| ..)` method takes [`rf1aifctl0::W`](W) writer structure"]
impl crate::Writable for Rf1aifctl0Spec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets RF1AIFCTL0 to value 0"]
impl crate::Resettable for Rf1aifctl0Spec {}