1#[doc = "Register `PRUNC` writer"]
2pub type W = crate::W<PRUNC_SPEC>;
3#[doc = "Field `CRB` writer - Clear Run bit"]
4pub type CRB_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `CSM` writer - Clear Current internal status"]
6pub type CSM_W<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8 #[doc = "Bit 0 - Clear Run bit"]
9 #[inline(always)]
10 pub fn crb(&mut self) -> CRB_W<PRUNC_SPEC> {
11 CRB_W::new(self, 0)
12 }
13 #[doc = "Bit 1 - Clear Current internal status"]
14 #[inline(always)]
15 pub fn csm(&mut self) -> CSM_W<PRUNC_SPEC> {
16 CSM_W::new(self, 1)
17 }
18}
19#[doc = "Service Request Processing Run Bit Clear\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`prunc::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct PRUNC_SPEC;
21impl crate::RegisterSpec for PRUNC_SPEC {
22 type Ux = u32;
23}
24#[doc = "`write(|w| ..)` method takes [`prunc::W`](W) writer structure"]
25impl crate::Writable for PRUNC_SPEC {
26 type Safety = crate::Unsafe;
27 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
28 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
29}
30#[doc = "`reset()` method sets PRUNC to value 0"]
31impl crate::Resettable for PRUNC_SPEC {
32 const RESET_VALUE: u32 = 0;
33}