1#[doc = "Register `MCMF` reader"]
2pub type R = crate::R<MCMF_SPEC>;
3#[doc = "Multi-Channel Pattern update status\n\nValue on reset: 0"]
4#[derive(Clone, Copy, Debug, PartialEq, Eq)]
5pub enum MSS_A {
6 #[doc = "0: Update of the Multi-Channel pattern is set"]
7 VALUE1 = 0,
8 #[doc = "1: Update of the Multi-Channel pattern is not set"]
9 VALUE2 = 1,
10}
11impl From<MSS_A> for bool {
12 #[inline(always)]
13 fn from(variant: MSS_A) -> Self {
14 variant as u8 != 0
15 }
16}
17#[doc = "Field `MSS` reader - Multi-Channel Pattern update status"]
18pub type MSS_R = crate::BitReader<MSS_A>;
19impl MSS_R {
20 #[doc = "Get enumerated values variant"]
21 #[inline(always)]
22 pub const fn variant(&self) -> MSS_A {
23 match self.bits {
24 false => MSS_A::VALUE1,
25 true => MSS_A::VALUE2,
26 }
27 }
28 #[doc = "Update of the Multi-Channel pattern is set"]
29 #[inline(always)]
30 pub fn is_value1(&self) -> bool {
31 *self == MSS_A::VALUE1
32 }
33 #[doc = "Update of the Multi-Channel pattern is not set"]
34 #[inline(always)]
35 pub fn is_value2(&self) -> bool {
36 *self == MSS_A::VALUE2
37 }
38}
39impl R {
40 #[doc = "Bit 0 - Multi-Channel Pattern update status"]
41 #[inline(always)]
42 pub fn mss(&self) -> MSS_R {
43 MSS_R::new((self.bits & 1) != 0)
44 }
45}
46#[doc = "Multi-Channel Pattern Control flag\n\nYou can [`read`](crate::Reg::read) this register and get [`mcmf::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
47pub struct MCMF_SPEC;
48impl crate::RegisterSpec for MCMF_SPEC {
49 type Ux = u32;
50}
51#[doc = "`read()` method returns [`mcmf::R`](R) reader structure"]
52impl crate::Readable for MCMF_SPEC {}
53#[doc = "`reset()` method sets MCMF to value 0"]
54impl crate::Resettable for MCMF_SPEC {
55 const RESET_VALUE: u32 = 0;
56}