mk66f18 0.2.0

Peripheral access API for MK66F18 microcontrollers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[doc = "Reader of register HWDEVICE"]
pub type R = crate::R<u32, super::HWDEVICE>;
#[doc = "Reader of field `DC`"]
pub type DC_R = crate::R<bool, bool>;
#[doc = "Reader of field `DEVEP`"]
pub type DEVEP_R = crate::R<u8, u8>;
impl R {
    #[doc = "Bit 0 - Device Capable"]
    #[inline(always)]
    pub fn dc(&self) -> DC_R {
        DC_R::new((self.bits & 0x01) != 0)
    }
    #[doc = "Bits 1:5 - Device endpoints."]
    #[inline(always)]
    pub fn devep(&self) -> DEVEP_R {
        DEVEP_R::new(((self.bits >> 1) & 0x1f) as u8)
    }
}