efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `STATUS` reader
pub type R = crate::R<STATUSrs>;
///Field `PSTART` reader - Pending START
pub type PstartR = crate::BitReader;
///Field `PSTOP` reader - Pending STOP
pub type PstopR = crate::BitReader;
///Field `PACK` reader - Pending ACK
pub type PackR = crate::BitReader;
///Field `PNACK` reader - Pending NACK
pub type PnackR = crate::BitReader;
///Field `PCONT` reader - Pending Continue
pub type PcontR = crate::BitReader;
///Field `PABORT` reader - Pending Abort
pub type PabortR = crate::BitReader;
///Field `TXC` reader - TX Complete
pub type TxcR = crate::BitReader;
///Field `TXBL` reader - TX Buffer Level
pub type TxblR = crate::BitReader;
///Field `RXDATAV` reader - RX Data Valid
pub type RxdatavR = crate::BitReader;
///Field `RXFULL` reader - RX FIFO Full
pub type RxfullR = crate::BitReader;
impl R {
    ///Bit 0 - Pending START
    #[inline(always)]
    pub fn pstart(&self) -> PstartR {
        PstartR::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Pending STOP
    #[inline(always)]
    pub fn pstop(&self) -> PstopR {
        PstopR::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - Pending ACK
    #[inline(always)]
    pub fn pack(&self) -> PackR {
        PackR::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - Pending NACK
    #[inline(always)]
    pub fn pnack(&self) -> PnackR {
        PnackR::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - Pending Continue
    #[inline(always)]
    pub fn pcont(&self) -> PcontR {
        PcontR::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bit 5 - Pending Abort
    #[inline(always)]
    pub fn pabort(&self) -> PabortR {
        PabortR::new(((self.bits >> 5) & 1) != 0)
    }
    ///Bit 6 - TX Complete
    #[inline(always)]
    pub fn txc(&self) -> TxcR {
        TxcR::new(((self.bits >> 6) & 1) != 0)
    }
    ///Bit 7 - TX Buffer Level
    #[inline(always)]
    pub fn txbl(&self) -> TxblR {
        TxblR::new(((self.bits >> 7) & 1) != 0)
    }
    ///Bit 8 - RX Data Valid
    #[inline(always)]
    pub fn rxdatav(&self) -> RxdatavR {
        RxdatavR::new(((self.bits >> 8) & 1) != 0)
    }
    ///Bit 9 - RX FIFO Full
    #[inline(always)]
    pub fn rxfull(&self) -> RxfullR {
        RxfullR::new(((self.bits >> 9) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("STATUS")
            .field("pstart", &self.pstart())
            .field("pstop", &self.pstop())
            .field("pack", &self.pack())
            .field("pnack", &self.pnack())
            .field("pcont", &self.pcont())
            .field("pabort", &self.pabort())
            .field("txc", &self.txc())
            .field("txbl", &self.txbl())
            .field("rxdatav", &self.rxdatav())
            .field("rxfull", &self.rxfull())
            .finish()
    }
}
///Status Register
///
///You can [`read`](crate::Reg::read) this register and get [`status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct STATUSrs;
impl crate::RegisterSpec for STATUSrs {
    type Ux = u32;
}
///`read()` method returns [`status::R`](R) reader structure
impl crate::Readable for STATUSrs {}
///`reset()` method sets STATUS to value 0x80
impl crate::Resettable for STATUSrs {
    const RESET_VALUE: u32 = 0x80;
}