stm32u5/stm32u545/pssi/
icr.rs1pub type W = crate::W<ICRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum OVR_ISC {
9 Clear = 1,
11}
12impl From<OVR_ISC> for bool {
13 #[inline(always)]
14 fn from(variant: OVR_ISC) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type OVR_ISC_W<'a, REG> = crate::BitWriter<'a, REG, OVR_ISC>;
20impl<'a, REG> OVR_ISC_W<'a, REG>
21where
22 REG: crate::Writable + crate::RegisterSpec,
23{
24 #[inline(always)]
26 pub fn clear(self) -> &'a mut crate::W<REG> {
27 self.variant(OVR_ISC::Clear)
28 }
29}
30impl core::fmt::Debug for crate::generic::Reg<ICRrs> {
31 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
32 write!(f, "(not readable)")
33 }
34}
35impl W {
36 #[inline(always)]
38 pub fn ovr_isc(&mut self) -> OVR_ISC_W<ICRrs> {
39 OVR_ISC_W::new(self, 1)
40 }
41}
42pub struct ICRrs;
48impl crate::RegisterSpec for ICRrs {
49 type Ux = u32;
50}
51impl crate::Writable for ICRrs {
53 type Safety = crate::Unsafe;
54}
55impl crate::Resettable for ICRrs {}