diff --git a/src/types/usb_device.rs b/src/types/usb_device.rs index ba910dc..51b7d2f 100644 --- a/src/types/usb_device.rs +++ b/src/types/usb_device.rs @@ -93,6 +93,16 @@ impl UsbDevice { }) } + #[inline(always)] + pub fn get_usb_device<'u>(&'u self, cs: CriticalSection<'u>) -> &'u USB_DEVICE { + self.usb.borrow(cs) + } + + #[inline(always)] + pub fn get_pll<'u>(&'u self, cs: CriticalSection<'u>) -> &'u PLL { + self.pll.borrow(cs) + } + #[inline(always)] pub(crate) fn allocated_endpoints(&self) -> impl Iterator { self.ep_table