pub struct Usbd<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Usbd<'a>
impl<'a> Usbd<'a>
pub const fn new() -> Self
pub fn set_power_ref(&self, power: &'a Power<'a>)
pub fn get_state(&self) -> UsbState
pub fn enable_lowpower(&self)
pub fn disable_lowpower(&self)
pub fn handle_interrupt(&self)
Trait Implementations§
Source§impl PowerClient for Usbd<'_>
impl PowerClient for Usbd<'_>
fn handle_power_event(&self, event: PowerEvent)
Source§impl<'a> UsbController<'a> for Usbd<'a>
impl<'a> UsbController<'a> for Usbd<'a>
fn set_client(&self, client: &'a dyn Client<'a>)
fn endpoint_set_ctrl_buffer(&self, buf: &'a [VolatileCell<u8>])
fn endpoint_set_in_buffer(&self, endpoint: usize, buf: &'a [VolatileCell<u8>])
fn endpoint_set_out_buffer(&self, endpoint: usize, buf: &'a [VolatileCell<u8>])
fn enable_as_device(&self, speed: DeviceSpeed)
fn attach(&self)
fn detach(&self)
fn set_address(&self, _addr: u16)
fn enable_address(&self)
fn endpoint_in_enable(&self, transfer_type: TransferType, endpoint: usize)
fn endpoint_out_enable(&self, transfer_type: TransferType, endpoint: usize)
fn endpoint_in_out_enable(&self, transfer_type: TransferType, endpoint: usize)
fn endpoint_resume_in(&self, endpoint: usize)
fn endpoint_resume_out(&self, endpoint: usize)
Auto Trait Implementations§
impl<'a> !Freeze for Usbd<'a>
impl<'a> !RefUnwindSafe for Usbd<'a>
impl<'a> !Send for Usbd<'a>
impl<'a> !Sync for Usbd<'a>
impl<'a> Unpin for Usbd<'a>
impl<'a> !UnwindSafe for Usbd<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more