#[doc = "Register `GMSKX` reader"] pub type R = crate::R; #[doc = "Register `GMSKX` writer"] pub type W = crate::W; #[doc = "Field `XRTR` reader - Extended Remote transmission Request Bit"] pub type XrtrR = crate::BitReader; #[doc = "Field `XRTR` writer - Extended Remote transmission Request Bit"] pub type XrtrW<'a, REG> = crate::BitWriter<'a, REG>; #[doc = "Field `GM` reader - GM\\[14:0\\] used when an extended frame is received. ID\\[14:0\\] in extended, unused standard"] pub type GmR = crate::FieldReader; #[doc = "Field `GM` writer - GM\\[14:0\\] used when an extended frame is received. ID\\[14:0\\] in extended, unused standard"] pub type GmW<'a, REG> = crate::FieldWriter<'a, REG, 15, u16>; impl R { #[doc = "Bit 0 - Extended Remote transmission Request Bit"] #[inline(always)] pub fn xrtr(&self) -> XrtrR { XrtrR::new((self.bits & 1) != 0) } #[doc = "Bits 1:15 - GM\\[14:0\\] used when an extended frame is received. ID\\[14:0\\] in extended, unused standard"] #[inline(always)] pub fn gm(&self) -> GmR { GmR::new(((self.bits >> 1) & 0x7fff) as u16) } } impl W { #[doc = "Bit 0 - Extended Remote transmission Request Bit"] #[inline(always)] #[must_use] pub fn xrtr(&mut self) -> XrtrW { XrtrW::new(self, 0) } #[doc = "Bits 1:15 - GM\\[14:0\\] used when an extended frame is received. ID\\[14:0\\] in extended, unused standard"] #[inline(always)] #[must_use] pub fn gm(&mut self) -> GmW { GmW::new(self, 1) } } #[doc = "CAN Global Mask Extension\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gmskx::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gmskx::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct GmskxSpec; impl crate::RegisterSpec for GmskxSpec { type Ux = u32; } #[doc = "`read()` method returns [`gmskx::R`](R) reader structure"] impl crate::Readable for GmskxSpec {} #[doc = "`write(|w| ..)` method takes [`gmskx::W`](W) writer structure"] impl crate::Writable for GmskxSpec { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0; } #[doc = "`reset()` method sets GMSKX to value 0"] impl crate::Resettable for GmskxSpec { const RESET_VALUE: u32 = 0; }