Struct xmc4300::usb0::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

source§

impl RegisterBlock

source

pub const fn gotgctl(&self) -> &GOTGCTL

0x00 - Control and Status Register

source

pub const fn gotgint(&self) -> &GOTGINT

0x04 - OTG Interrupt Register

source

pub const fn gahbcfg(&self) -> &GAHBCFG

0x08 - AHB Configuration Register

source

pub const fn gusbcfg(&self) -> &GUSBCFG

0x0c - USB Configuration Register

source

pub const fn grstctl(&self) -> &GRSTCTL

0x10 - Reset Register

source

pub const fn gintsts_devicemode(&self) -> &GINTSTS_DEVICEMODE

0x14 - Interrupt Register [DEVICEMODE]

source

pub const fn gintsts_hostmode(&self) -> &GINTSTS_HOSTMODE

0x14 - Interrupt Register [HOSTMODE]

source

pub const fn gintmsk_devicemode(&self) -> &GINTMSK_DEVICEMODE

0x18 - Interrupt Mask Register [DEVICEMODE]

source

pub const fn gintmsk_hostmode(&self) -> &GINTMSK_HOSTMODE

0x18 - Interrupt Mask Register [HOSTMODE]

source

pub const fn grxstsr_devicemode(&self) -> &GRXSTSR_DEVICEMODE

0x1c - Receive Status Debug Read Register [DEVICEMODE]

source

pub const fn grxstsr_hostmode(&self) -> &GRXSTSR_HOSTMODE

0x1c - Receive Status Debug Read Register [HOSTMODE]

source

pub const fn grxstsp_hostmode(&self) -> &GRXSTSP_HOSTMODE

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

source

pub const fn grxstsp_devicemode(&self) -> &GRXSTSP_DEVICEMODE

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

source

pub const fn grxfsiz(&self) -> &GRXFSIZ

0x24 - Receive FIFO Size Register

source

pub const fn gnptxfsiz_devicemode(&self) -> &GNPTXFSIZ_DEVICEMODE

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

source

pub const fn gnptxfsiz_hostmode(&self) -> &GNPTXFSIZ_HOSTMODE

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

source

pub const fn gnptxsts(&self) -> &GNPTXSTS

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

source

pub const fn guid(&self) -> &GUID

0x3c - USB Module Identification Register

source

pub const fn gdfifocfg(&self) -> &GDFIFOCFG

0x5c - Global DFIFO Software Config Register

source

pub const fn hptxfsiz(&self) -> &HPTXFSIZ

0x100 - Host Periodic Transmit FIFO Size Register

source

pub const fn dieptxf1(&self) -> &DIEPTXF1

0x104 - Device IN Endpoint Transmit FIFO Size Register

source

pub const fn dieptxf2(&self) -> &DIEPTXF2

0x108 - Device IN Endpoint Transmit FIFO Size Register

source

pub const fn dieptxf3(&self) -> &DIEPTXF3

0x10c - Device IN Endpoint Transmit FIFO Size Register

source

pub const fn dieptxf4(&self) -> &DIEPTXF4

0x110 - Device IN Endpoint Transmit FIFO Size Register

source

pub const fn dieptxf5(&self) -> &DIEPTXF5

0x114 - Device IN Endpoint Transmit FIFO Size Register

source

pub const fn dieptxf6(&self) -> &DIEPTXF6

0x118 - Device IN Endpoint Transmit FIFO Size Register

source

pub const fn hcfg(&self) -> &HCFG

0x400 - Host Configuration Register

source

pub const fn hfir(&self) -> &HFIR

0x404 - Host Frame Interval Register

source

pub const fn hfnum(&self) -> &HFNUM

0x408 - Host Frame Number/Frame Time Remaining Register

source

pub const fn hptxsts(&self) -> &HPTXSTS

0x410 - Host Periodic Transmit FIFO/ Queue Status Register

source

pub const fn haint(&self) -> &HAINT

0x414 - Host All Channels Interrupt Register

source

pub const fn haintmsk(&self) -> &HAINTMSK

0x418 - Host All Channels Interrupt Mask Register

source

pub const fn hflbaddr(&self) -> &HFLBADDR

0x41c - Host Frame List Base Address Register

source

pub const fn hprt(&self) -> &HPRT

0x440 - Host Port Control and Status Register

source

pub const fn dcfg(&self) -> &DCFG

0x800 - Device Configuration Register

source

pub const fn dctl(&self) -> &DCTL

0x804 - Device Control Register

source

pub const fn dsts(&self) -> &DSTS

0x808 - Device Status Register

source

pub const fn diepmsk(&self) -> &DIEPMSK

0x810 - Device IN Endpoint Common Interrupt Mask Register

source

pub const fn doepmsk(&self) -> &DOEPMSK

0x814 - Device OUT Endpoint Common Interrupt Mask Register

source

pub const fn daint(&self) -> &DAINT

0x818 - Device All Endpoints Interrupt Register

source

pub const fn daintmsk(&self) -> &DAINTMSK

0x81c - Device All Endpoints Interrupt Mask Register

source

pub const fn dvbusdis(&self) -> &DVBUSDIS

0x828 - Device VBUS Discharge Time Register

source

pub const fn dvbuspulse(&self) -> &DVBUSPULSE

0x82c - Device VBUS Pulsing Time Register

source

pub const fn diepempmsk(&self) -> &DIEPEMPMSK

0x834 - Device IN Endpoint FIFO Empty Interrupt Mask Register

source

pub const fn pcgcctl(&self) -> &PCGCCTL

0xe00 - Power and Clock Gating Control Register

Auto Trait Implementations§

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.