mkl25z4 0.0.3

Peripheral access API for NXP KL25Z microcontrollers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[doc = "Reader of register ADDINFO"]
pub type R = crate::R<u8, super::ADDINFO>;
#[doc = "Reader of field `IEHOST`"]
pub type IEHOST_R = crate::R<bool, bool>;
#[doc = "Reader of field `IRQNUM`"]
pub type IRQNUM_R = crate::R<u8, u8>;
impl R {
    #[doc = "Bit 0 - When this bit is set, the USB peripheral is operating in host mode."]
    #[inline(always)]
    pub fn iehost(&self) -> IEHOST_R {
        IEHOST_R::new((self.bits & 0x01) != 0)
    }
    #[doc = "Bits 3:7 - Assigned Interrupt Request Number"]
    #[inline(always)]
    pub fn irqnum(&self) -> IRQNUM_R {
        IRQNUM_R::new(((self.bits >> 3) & 0x1f) as u8)
    }
}