#[doc = "Register `UCB0STAT_SPI` reader"]
pub type R = crate::R<Ucb0statSpiSpec>;
#[doc = "Register `UCB0STAT_SPI` writer"]
pub type W = crate::W<Ucb0statSpiSpec>;
#[doc = "Field `UCBUSY` reader - USCI Busy Flag"]
pub type UcbusyR = crate::BitReader;
#[doc = "Field `UCBUSY` writer - USCI Busy Flag"]
pub type UcbusyW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UCOE` reader - USCI Overrun Error Flag"]
pub type UcoeR = crate::BitReader;
#[doc = "Field `UCOE` writer - USCI Overrun Error Flag"]
pub type UcoeW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UCFE` reader - USCI Frame Error Flag"]
pub type UcfeR = crate::BitReader;
#[doc = "Field `UCFE` writer - USCI Frame Error Flag"]
pub type UcfeW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UCLISTEN` reader - USCI Listen mode"]
pub type UclistenR = crate::BitReader;
#[doc = "Field `UCLISTEN` writer - USCI Listen mode"]
pub type UclistenW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - USCI Busy Flag"]
#[inline(always)]
pub fn ucbusy(&self) -> UcbusyR {
UcbusyR::new((self.bits & 1) != 0)
}
#[doc = "Bit 5 - USCI Overrun Error Flag"]
#[inline(always)]
pub fn ucoe(&self) -> UcoeR {
UcoeR::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - USCI Frame Error Flag"]
#[inline(always)]
pub fn ucfe(&self) -> UcfeR {
UcfeR::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - USCI Listen mode"]
#[inline(always)]
pub fn uclisten(&self) -> UclistenR {
UclistenR::new(((self.bits >> 7) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - USCI Busy Flag"]
#[inline(always)]
pub fn ucbusy(&mut self) -> UcbusyW<'_, Ucb0statSpiSpec> {
UcbusyW::new(self, 0)
}
#[doc = "Bit 5 - USCI Overrun Error Flag"]
#[inline(always)]
pub fn ucoe(&mut self) -> UcoeW<'_, Ucb0statSpiSpec> {
UcoeW::new(self, 5)
}
#[doc = "Bit 6 - USCI Frame Error Flag"]
#[inline(always)]
pub fn ucfe(&mut self) -> UcfeW<'_, Ucb0statSpiSpec> {
UcfeW::new(self, 6)
}
#[doc = "Bit 7 - USCI Listen mode"]
#[inline(always)]
pub fn uclisten(&mut self) -> UclistenW<'_, Ucb0statSpiSpec> {
UclistenW::new(self, 7)
}
}
#[doc = "USCI B0 Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`ucb0stat_spi::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ucb0stat_spi::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Ucb0statSpiSpec;
impl crate::RegisterSpec for Ucb0statSpiSpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`ucb0stat_spi::R`](R) reader structure"]
impl crate::Readable for Ucb0statSpiSpec {}
#[doc = "`write(|w| ..)` method takes [`ucb0stat_spi::W`](W) writer structure"]
impl crate::Writable for Ucb0statSpiSpec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets UCB0STAT_SPI to value 0"]
impl crate::Resettable for Ucb0statSpiSpec {}