stm32l4/stm32l4x5/lcd/
sr.rs1pub type R = crate::R<SRrs>;
3pub type W = crate::W<SRrs>;
5pub type ENS_R = crate::BitReader;
7pub type SOF_R = crate::BitReader;
9pub type UDR_W<'a, REG> = crate::BitWriter<'a, REG>;
11pub type UDD_R = crate::BitReader;
13pub type RDY_R = crate::BitReader;
15pub type FCRSF_R = crate::BitReader;
17impl R {
18 #[inline(always)]
20 pub fn ens(&self) -> ENS_R {
21 ENS_R::new((self.bits & 1) != 0)
22 }
23 #[inline(always)]
25 pub fn sof(&self) -> SOF_R {
26 SOF_R::new(((self.bits >> 1) & 1) != 0)
27 }
28 #[inline(always)]
30 pub fn udd(&self) -> UDD_R {
31 UDD_R::new(((self.bits >> 3) & 1) != 0)
32 }
33 #[inline(always)]
35 pub fn rdy(&self) -> RDY_R {
36 RDY_R::new(((self.bits >> 4) & 1) != 0)
37 }
38 #[inline(always)]
40 pub fn fcrsf(&self) -> FCRSF_R {
41 FCRSF_R::new(((self.bits >> 5) & 1) != 0)
42 }
43}
44impl core::fmt::Debug for R {
45 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46 f.debug_struct("SR")
47 .field("fcrsf", &self.fcrsf())
48 .field("rdy", &self.rdy())
49 .field("udd", &self.udd())
50 .field("sof", &self.sof())
51 .field("ens", &self.ens())
52 .finish()
53 }
54}
55impl W {
56 #[inline(always)]
58 pub fn udr(&mut self) -> UDR_W<SRrs> {
59 UDR_W::new(self, 2)
60 }
61}
62pub struct SRrs;
68impl crate::RegisterSpec for SRrs {
69 type Ux = u32;
70}
71impl crate::Readable for SRrs {}
73impl crate::Writable for SRrs {
75 type Safety = crate::Unsafe;
76}
77impl crate::Resettable for SRrs {
79 const RESET_VALUE: u32 = 0x20;
80}