nrf-usbd 0.3.0

USB driver for nRF microcontrollers
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[doc = "Reader of register USBADDR"]
pub type R = crate::pac::generic::R<u32, super::USBADDR>;
#[doc = "Reader of field `ADDR`"]
pub type ADDR_R = crate::pac::generic::R<u8, u8>;
impl R {
    #[doc = "Bits 0:6 - Device USB address"]
    #[inline(always)]
    pub fn addr(&self) -> ADDR_R {
        ADDR_R::new((self.bits & 0x7f) as u8)
    }
}