xmc4500/can/
msid.rs

1#[doc = "Register `MSID[%s]` reader"]
2pub type R = crate::R<MSID_SPEC>;
3#[doc = "Field `INDEX` reader - Message Pending Index"]
4pub type INDEX_R = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:5 - Message Pending Index"]
7    #[inline(always)]
8    pub fn index(&self) -> INDEX_R {
9        INDEX_R::new((self.bits & 0x3f) as u8)
10    }
11}
12#[doc = "Message Index Register\n\nYou can [`read`](crate::Reg::read) this register and get [`msid::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct MSID_SPEC;
14impl crate::RegisterSpec for MSID_SPEC {
15    type Ux = u32;
16}
17#[doc = "`read()` method returns [`msid::R`](R) reader structure"]
18impl crate::Readable for MSID_SPEC {}
19#[doc = "`reset()` method sets MSID[%s]
20to value 0x20"]
21impl crate::Resettable for MSID_SPEC {
22    const RESET_VALUE: u32 = 0x20;
23}