1#[doc = "Register `MCMS` writer"]
2pub type W = crate::W<MCMS_SPEC>;
3#[doc = "Field `MNPS` writer - Multi-Channel Pattern Update Enable Set"]
4pub type MNPS_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `STHR` writer - Hall Pattern Shadow Transfer Request"]
6pub type STHR_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `STMR` writer - Multi-Channel Shadow Transfer Request"]
8pub type STMR_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl W {
10 #[doc = "Bit 0 - Multi-Channel Pattern Update Enable Set"]
11 #[inline(always)]
12 pub fn mnps(&mut self) -> MNPS_W<MCMS_SPEC> {
13 MNPS_W::new(self, 0)
14 }
15 #[doc = "Bit 1 - Hall Pattern Shadow Transfer Request"]
16 #[inline(always)]
17 pub fn sthr(&mut self) -> STHR_W<MCMS_SPEC> {
18 STHR_W::new(self, 1)
19 }
20 #[doc = "Bit 2 - Multi-Channel Shadow Transfer Request"]
21 #[inline(always)]
22 pub fn stmr(&mut self) -> STMR_W<MCMS_SPEC> {
23 STMR_W::new(self, 2)
24 }
25}
26#[doc = "Multi-Channel Pattern Control set\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mcms::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct MCMS_SPEC;
28impl crate::RegisterSpec for MCMS_SPEC {
29 type Ux = u32;
30}
31#[doc = "`write(|w| ..)` method takes [`mcms::W`](W) writer structure"]
32impl crate::Writable for MCMS_SPEC {
33 type Safety = crate::Unsafe;
34 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
36}
37#[doc = "`reset()` method sets MCMS to value 0"]
38impl crate::Resettable for MCMS_SPEC {
39 const RESET_VALUE: u32 = 0;
40}