pub struct Peripheral {
    pub usb: USB,
    pub pin_dm: PA11<Alternate<PushPull, 10>>,
    pub pin_dp: PA12<Alternate<PushPull, 10>>,
}

Fields

usb: USBpin_dm: PA11<Alternate<PushPull, 10>>pin_dp: PA12<Alternate<PushPull, 10>>

Trait Implementations

Pointer to the register block

Embedded pull-up resistor on USB_DP line

Pointer to the endpoint memory

Endpoint memory size in bytes

Endpoint memory access scheme Read more

Enables USB device on its peripheral bus

Performs a chip specific startup delay Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.