efm32pg1b_pac/leuart0/
startframe.rs1pub type R = crate::R<STARTFRAMErs>;
3pub type W = crate::W<STARTFRAMErs>;
5pub type StartframeR = crate::FieldReader<u16>;
7pub type StartframeW<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
9impl R {
10 #[inline(always)]
12 pub fn startframe(&self) -> StartframeR {
13 StartframeR::new((self.bits & 0x01ff) as u16)
14 }
15}
16impl core::fmt::Debug for R {
17 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18 f.debug_struct("STARTFRAME")
19 .field("startframe", &self.startframe())
20 .finish()
21 }
22}
23impl W {
24 #[inline(always)]
26 pub fn startframe(&mut self) -> StartframeW<STARTFRAMErs> {
27 StartframeW::new(self, 0)
28 }
29}
30pub struct STARTFRAMErs;
34impl crate::RegisterSpec for STARTFRAMErs {
35 type Ux = u32;
36}
37impl crate::Readable for STARTFRAMErs {}
39impl crate::Writable for STARTFRAMErs {
41 type Safety = crate::Unsafe;
42 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
44}
45impl crate::Resettable for STARTFRAMErs {
47 const RESET_VALUE: u32 = 0;
48}