stm32l4/stm32l4x1/lpuart1/
rqr.rs1pub type W = crate::W<RQRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum SBKRQ {
9 Break = 1,
11}
12impl From<SBKRQ> for bool {
13 #[inline(always)]
14 fn from(variant: SBKRQ) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type SBKRQ_W<'a, REG> = crate::BitWriter<'a, REG, SBKRQ>;
20impl<'a, REG> SBKRQ_W<'a, REG>
21where
22 REG: crate::Writable + crate::RegisterSpec,
23{
24 #[inline(always)]
26 pub fn break_(self) -> &'a mut crate::W<REG> {
27 self.variant(SBKRQ::Break)
28 }
29}
30#[cfg_attr(feature = "defmt", derive(defmt::Format))]
34#[derive(Clone, Copy, Debug, PartialEq, Eq)]
35pub enum MMRQ {
36 Mute = 1,
38}
39impl From<MMRQ> for bool {
40 #[inline(always)]
41 fn from(variant: MMRQ) -> Self {
42 variant as u8 != 0
43 }
44}
45pub type MMRQ_W<'a, REG> = crate::BitWriter<'a, REG, MMRQ>;
47impl<'a, REG> MMRQ_W<'a, REG>
48where
49 REG: crate::Writable + crate::RegisterSpec,
50{
51 #[inline(always)]
53 pub fn mute(self) -> &'a mut crate::W<REG> {
54 self.variant(MMRQ::Mute)
55 }
56}
57#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum RXFRQ {
63 Discard = 1,
65}
66impl From<RXFRQ> for bool {
67 #[inline(always)]
68 fn from(variant: RXFRQ) -> Self {
69 variant as u8 != 0
70 }
71}
72pub type RXFRQ_W<'a, REG> = crate::BitWriter<'a, REG, RXFRQ>;
74impl<'a, REG> RXFRQ_W<'a, REG>
75where
76 REG: crate::Writable + crate::RegisterSpec,
77{
78 #[inline(always)]
80 pub fn discard(self) -> &'a mut crate::W<REG> {
81 self.variant(RXFRQ::Discard)
82 }
83}
84impl core::fmt::Debug for crate::generic::Reg<RQRrs> {
85 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
86 write!(f, "(not readable)")
87 }
88}
89impl W {
90 #[inline(always)]
92 pub fn sbkrq(&mut self) -> SBKRQ_W<RQRrs> {
93 SBKRQ_W::new(self, 1)
94 }
95 #[inline(always)]
97 pub fn mmrq(&mut self) -> MMRQ_W<RQRrs> {
98 MMRQ_W::new(self, 2)
99 }
100 #[inline(always)]
102 pub fn rxfrq(&mut self) -> RXFRQ_W<RQRrs> {
103 RXFRQ_W::new(self, 3)
104 }
105}
106pub struct RQRrs;
112impl crate::RegisterSpec for RQRrs {
113 type Ux = u32;
114}
115impl crate::Writable for RQRrs {
117 type Safety = crate::Unsafe;
118}
119impl crate::Resettable for RQRrs {}