efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `SEQ2` reader
pub type R = crate::R<SEQ2rs>;
///Register `SEQ2` writer
pub type W = crate::W<SEQ2rs>;
///Field `INSTR8` reader - Sequence Instruction 8
pub type Instr8R = crate::FieldReader;
///Field `INSTR8` writer - Sequence Instruction 8
pub type Instr8W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
///Field `INSTR9` reader - Sequence Instruction 9
pub type Instr9R = crate::FieldReader;
///Field `INSTR9` writer - Sequence Instruction 9
pub type Instr9W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
///Field `INSTR10` reader - Sequence Instruction 10
pub type Instr10R = crate::FieldReader;
///Field `INSTR10` writer - Sequence Instruction 10
pub type Instr10W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
///Field `INSTR11` reader - Sequence Instruction 11
pub type Instr11R = crate::FieldReader;
///Field `INSTR11` writer - Sequence Instruction 11
pub type Instr11W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
    ///Bits 0:7 - Sequence Instruction 8
    #[inline(always)]
    pub fn instr8(&self) -> Instr8R {
        Instr8R::new((self.bits & 0xff) as u8)
    }
    ///Bits 8:15 - Sequence Instruction 9
    #[inline(always)]
    pub fn instr9(&self) -> Instr9R {
        Instr9R::new(((self.bits >> 8) & 0xff) as u8)
    }
    ///Bits 16:23 - Sequence Instruction 10
    #[inline(always)]
    pub fn instr10(&self) -> Instr10R {
        Instr10R::new(((self.bits >> 16) & 0xff) as u8)
    }
    ///Bits 24:31 - Sequence Instruction 11
    #[inline(always)]
    pub fn instr11(&self) -> Instr11R {
        Instr11R::new(((self.bits >> 24) & 0xff) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("SEQ2")
            .field("instr8", &self.instr8())
            .field("instr9", &self.instr9())
            .field("instr10", &self.instr10())
            .field("instr11", &self.instr11())
            .finish()
    }
}
impl W {
    ///Bits 0:7 - Sequence Instruction 8
    #[inline(always)]
    pub fn instr8(&mut self) -> Instr8W<'_, SEQ2rs> {
        Instr8W::new(self, 0)
    }
    ///Bits 8:15 - Sequence Instruction 9
    #[inline(always)]
    pub fn instr9(&mut self) -> Instr9W<'_, SEQ2rs> {
        Instr9W::new(self, 8)
    }
    ///Bits 16:23 - Sequence Instruction 10
    #[inline(always)]
    pub fn instr10(&mut self) -> Instr10W<'_, SEQ2rs> {
        Instr10W::new(self, 16)
    }
    ///Bits 24:31 - Sequence Instruction 11
    #[inline(always)]
    pub fn instr11(&mut self) -> Instr11W<'_, SEQ2rs> {
        Instr11W::new(self, 24)
    }
}
///Sequence Register 2
///
///You can [`read`](crate::Reg::read) this register and get [`seq2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`seq2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct SEQ2rs;
impl crate::RegisterSpec for SEQ2rs {
    type Ux = u32;
}
///`read()` method returns [`seq2::R`](R) reader structure
impl crate::Readable for SEQ2rs {}
///`write(|w| ..)` method takes [`seq2::W`](W) writer structure
impl crate::Writable for SEQ2rs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets SEQ2 to value 0
impl crate::Resettable for SEQ2rs {}