Struct xmc4400::USB0

source ·
pub struct USB0 { /* private fields */ }
Expand description

Universal Serial Bus

Implementations§

source§

impl USB0

source

pub const PTR: *const RegisterBlock = {0x50040000 as *const usb0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn gotgctl(&self) -> &GOTGCTL

0x00 - Control and Status Register

source

pub fn gotgint(&self) -> &GOTGINT

0x04 - OTG Interrupt Register

source

pub fn gahbcfg(&self) -> &GAHBCFG

0x08 - AHB Configuration Register

source

pub fn gusbcfg(&self) -> &GUSBCFG

0x0c - USB Configuration Register

source

pub fn grstctl(&self) -> &GRSTCTL

0x10 - Reset Register

source

pub fn gintsts_devicemode(&self) -> &GINTSTS_DEVICEMODE

0x14 - Interrupt Register [DEVICEMODE]

source

pub fn gintsts_hostmode(&self) -> &GINTSTS_HOSTMODE

0x14 - Interrupt Register [HOSTMODE]

source

pub fn gintmsk_devicemode(&self) -> &GINTMSK_DEVICEMODE

0x18 - Interrupt Mask Register [DEVICEMODE]

source

pub fn gintmsk_hostmode(&self) -> &GINTMSK_HOSTMODE

0x18 - Interrupt Mask Register [HOSTMODE]

source

pub fn grxstsr_devicemode(&self) -> &GRXSTSR_DEVICEMODE

0x1c - Receive Status Debug Read Register [DEVICEMODE]

source

pub fn grxstsr_hostmode(&self) -> &GRXSTSR_HOSTMODE

0x1c - Receive Status Debug Read Register [HOSTMODE]

source

pub fn grxstsp_hostmode(&self) -> &GRXSTSP_HOSTMODE

0x20 - Receive Status Read and Pop Register [HOSTMODE]

source

pub fn grxstsp_devicemode(&self) -> &GRXSTSP_DEVICEMODE

0x20 - Receive Status Read and Pop Register [DEVICEMODE]

source

pub fn grxfsiz(&self) -> &GRXFSIZ

0x24 - Receive FIFO Size Register

source

pub fn gnptxfsiz_devicemode(&self) -> &GNPTXFSIZ_DEVICEMODE

0x28 - Non-Periodic Transmit FIFO Size Register [DEVICEMODE]

source

pub fn gnptxfsiz_hostmode(&self) -> &GNPTXFSIZ_HOSTMODE

0x28 - Non-Periodic Transmit FIFO Size Register [HOSTMODE]

source

pub fn gnptxsts(&self) -> &GNPTXSTS

0x2c - Non-Periodic Transmit FIFO/Queue Status Register

source

pub fn guid(&self) -> &GUID

0x3c - USB Module Identification Register

source

pub fn gdfifocfg(&self) -> &GDFIFOCFG

0x5c - Global DFIFO Software Config Register

source

pub fn hptxfsiz(&self) -> &HPTXFSIZ

0x100 - Host Periodic Transmit FIFO Size Register

source

pub fn dieptxf1(&self) -> &DIEPTXF1

0x104 - Device IN Endpoint Transmit FIFO Size Register

source

pub fn dieptxf2(&self) -> &DIEPTXF2

0x108 - Device IN Endpoint Transmit FIFO Size Register

source

pub fn dieptxf3(&self) -> &DIEPTXF3

0x10c - Device IN Endpoint Transmit FIFO Size Register

source

pub fn dieptxf4(&self) -> &DIEPTXF4

0x110 - Device IN Endpoint Transmit FIFO Size Register

source

pub fn dieptxf5(&self) -> &DIEPTXF5

0x114 - Device IN Endpoint Transmit FIFO Size Register

source

pub fn dieptxf6(&self) -> &DIEPTXF6

0x118 - Device IN Endpoint Transmit FIFO Size Register

source

pub fn hcfg(&self) -> &HCFG

0x400 - Host Configuration Register

source

pub fn hfir(&self) -> &HFIR

0x404 - Host Frame Interval Register

source

pub fn hfnum(&self) -> &HFNUM

0x408 - Host Frame Number/Frame Time Remaining Register

source

pub fn hptxsts(&self) -> &HPTXSTS

0x410 - Host Periodic Transmit FIFO/ Queue Status Register

source

pub fn haint(&self) -> &HAINT

0x414 - Host All Channels Interrupt Register

source

pub fn haintmsk(&self) -> &HAINTMSK

0x418 - Host All Channels Interrupt Mask Register

source

pub fn hflbaddr(&self) -> &HFLBADDR

0x41c - Host Frame List Base Address Register

source

pub fn hprt(&self) -> &HPRT

0x440 - Host Port Control and Status Register

source

pub fn dcfg(&self) -> &DCFG

0x800 - Device Configuration Register

source

pub fn dctl(&self) -> &DCTL

0x804 - Device Control Register

source

pub fn dsts(&self) -> &DSTS

0x808 - Device Status Register

source

pub fn diepmsk(&self) -> &DIEPMSK

0x810 - Device IN Endpoint Common Interrupt Mask Register

source

pub fn doepmsk(&self) -> &DOEPMSK

0x814 - Device OUT Endpoint Common Interrupt Mask Register

source

pub fn daint(&self) -> &DAINT

0x818 - Device All Endpoints Interrupt Register

source

pub fn daintmsk(&self) -> &DAINTMSK

0x81c - Device All Endpoints Interrupt Mask Register

source

pub fn dvbusdis(&self) -> &DVBUSDIS

0x828 - Device VBUS Discharge Time Register

source

pub fn dvbuspulse(&self) -> &DVBUSPULSE

0x82c - Device VBUS Pulsing Time Register

source

pub fn diepempmsk(&self) -> &DIEPEMPMSK

0x834 - Device IN Endpoint FIFO Empty Interrupt Mask Register

source

pub fn pcgcctl(&self) -> &PCGCCTL

0xe00 - Power and Clock Gating Control Register

Trait Implementations§

source§

impl Debug for USB0

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for USB0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for USB0

Auto Trait Implementations§

§

impl Freeze for USB0

§

impl RefUnwindSafe for USB0

§

impl !Sync for USB0

§

impl Unpin for USB0

§

impl UnwindSafe for USB0

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.