cc430f5137 0.1.0

Peripheral access API for CC430F5137 microcontroller
#[doc = "Register `RF1AIFERR` reader"]
pub type R = crate::R<Rf1aiferrSpec>;
#[doc = "Register `RF1AIFERR` writer"]
pub type W = crate::W<Rf1aiferrSpec>;
#[doc = "Field `LVERR` reader - Low Core Voltage Error Flag"]
pub type LverrR = crate::BitReader;
#[doc = "Field `LVERR` writer - Low Core Voltage Error Flag"]
pub type LverrW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `OPERR` reader - Operand Error Flag"]
pub type OperrR = crate::BitReader;
#[doc = "Field `OPERR` writer - Operand Error Flag"]
pub type OperrW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `OUTERR` reader - Output data not available Error Flag"]
pub type OuterrR = crate::BitReader;
#[doc = "Field `OUTERR` writer - Output data not available Error Flag"]
pub type OuterrW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `OPOVERR` reader - Operand Overwrite Error Flag"]
pub type OpoverrR = crate::BitReader;
#[doc = "Field `OPOVERR` writer - Operand Overwrite Error Flag"]
pub type OpoverrW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - Low Core Voltage Error Flag"]
    #[inline(always)]
    pub fn lverr(&self) -> LverrR {
        LverrR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Operand Error Flag"]
    #[inline(always)]
    pub fn operr(&self) -> OperrR {
        OperrR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Output data not available Error Flag"]
    #[inline(always)]
    pub fn outerr(&self) -> OuterrR {
        OuterrR::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Operand Overwrite Error Flag"]
    #[inline(always)]
    pub fn opoverr(&self) -> OpoverrR {
        OpoverrR::new(((self.bits >> 3) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Low Core Voltage Error Flag"]
    #[inline(always)]
    pub fn lverr(&mut self) -> LverrW<'_, Rf1aiferrSpec> {
        LverrW::new(self, 0)
    }
    #[doc = "Bit 1 - Operand Error Flag"]
    #[inline(always)]
    pub fn operr(&mut self) -> OperrW<'_, Rf1aiferrSpec> {
        OperrW::new(self, 1)
    }
    #[doc = "Bit 2 - Output data not available Error Flag"]
    #[inline(always)]
    pub fn outerr(&mut self) -> OuterrW<'_, Rf1aiferrSpec> {
        OuterrW::new(self, 2)
    }
    #[doc = "Bit 3 - Operand Overwrite Error Flag"]
    #[inline(always)]
    pub fn opoverr(&mut self) -> OpoverrW<'_, Rf1aiferrSpec> {
        OpoverrW::new(self, 3)
    }
}
#[doc = "Radio interface error flag register\n\nYou can [`read`](crate::Reg::read) this register and get [`rf1aiferr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rf1aiferr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Rf1aiferrSpec;
impl crate::RegisterSpec for Rf1aiferrSpec {
    type Ux = u16;
}
#[doc = "`read()` method returns [`rf1aiferr::R`](R) reader structure"]
impl crate::Readable for Rf1aiferrSpec {}
#[doc = "`write(|w| ..)` method takes [`rf1aiferr::W`](W) writer structure"]
impl crate::Writable for Rf1aiferrSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets RF1AIFERR to value 0"]
impl crate::Resettable for Rf1aiferrSpec {}