Struct hpm5361_pac::USB0

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

USB0

Implementations§

source§

impl USB0

source

pub const PTR: *const RegisterBlock = {0xf300c000 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 gptimer0ld(&self) -> &GPTIMER0LD

0x80 - General Purpose Timer #0 Load Register

source

pub fn gptimer0ctrl(&self) -> &GPTIMER0CTRL

0x84 - General Purpose Timer #0 Controller Register

source

pub fn gptimer1ld(&self) -> &GPTIMER1LD

0x88 - General Purpose Timer #1 Load Register

source

pub fn gptimer1ctrl(&self) -> &GPTIMER1CTRL

0x8c - General Purpose Timer #1 Controller Register

source

pub fn sbuscfg(&self) -> &SBUSCFG

0x90 - System Bus Config Register

source

pub fn usbcmd(&self) -> &USBCMD

0x140 - USB Command Register

source

pub fn usbsts(&self) -> &USBSTS

0x144 - USB Status Register

source

pub fn usbintr(&self) -> &USBINTR

0x148 - Interrupt Enable Register

source

pub fn frindex(&self) -> &FRINDEX

0x14c - USB Frame Index Register

source

pub fn periodiclistbase(&self) -> &PERIODICLISTBASE

0x154 - Frame List Base Address Register

source

pub fn deviceaddr(&self) -> &DEVICEADDR

0x154 - Device Address Register

source

pub fn endptlistaddr(&self) -> &ENDPTLISTADDR

0x158 - Endpoint List Address Register

source

pub fn asynclistaddr(&self) -> &ASYNCLISTADDR

0x158 - Next Asynch. Address Register

source

pub fn burstsize(&self) -> &BURSTSIZE

0x160 - Programmable Burst Size Register

source

pub fn txfilltuning(&self) -> &TXFILLTUNING

0x164 - TX FIFO Fill Tuning Register

source

pub fn endptnak(&self) -> &ENDPTNAK

0x178 - Endpoint NAK Register

source

pub fn endptnaken(&self) -> &ENDPTNAKEN

0x17c - Endpoint NAK Enable Register

source

pub fn portsc1(&self) -> &PORTSC1

0x184 - Port Status & Control

source

pub fn otgsc(&self) -> &OTGSC

0x1a4 - On-The-Go Status & control Register

source

pub fn usbmode(&self) -> &USBMODE

0x1a8 - USB Device Mode Register

source

pub fn endptsetupstat(&self) -> &ENDPTSETUPSTAT

0x1ac - Endpoint Setup Status Register

source

pub fn endptprime(&self) -> &ENDPTPRIME

0x1b0 - Endpoint Prime Register

source

pub fn endptflush(&self) -> &ENDPTFLUSH

0x1b4 - Endpoint Flush Register

source

pub fn endptstat(&self) -> &ENDPTSTAT

0x1b8 - Endpoint Status Register

source

pub fn endptcomplete(&self) -> &ENDPTCOMPLETE

0x1bc - Endpoint Complete Register

source

pub fn endptctrl(&self, n: usize) -> &ENDPTCTRL

0x1c0..0x1e0 - no description available

source

pub fn endptctrl_iter(&self) -> impl Iterator<Item = &ENDPTCTRL>

Iterator for array of: 0x1c0..0x1e0 - no description available

source

pub fn endptctrlendptctrl0(&self) -> &ENDPTCTRL

0x1c0 - no description available

source

pub fn endptctrlendptctrl1(&self) -> &ENDPTCTRL

0x1c4 - no description available

source

pub fn endptctrlendptctrl2(&self) -> &ENDPTCTRL

0x1c8 - no description available

source

pub fn endptctrlendptctrl3(&self) -> &ENDPTCTRL

0x1cc - no description available

source

pub fn endptctrlendptctrl4(&self) -> &ENDPTCTRL

0x1d0 - no description available

source

pub fn endptctrlendptctrl5(&self) -> &ENDPTCTRL

0x1d4 - no description available

source

pub fn endptctrlendptctrl6(&self) -> &ENDPTCTRL

0x1d8 - no description available

source

pub fn endptctrlendptctrl7(&self) -> &ENDPTCTRL

0x1dc - no description available

source

pub fn otg_ctrl0(&self) -> &OTG_CTRL0

0x200 - No description avaiable

source

pub fn phy_ctrl0(&self) -> &PHY_CTRL0

0x210 - No description avaiable

source

pub fn phy_ctrl1(&self) -> &PHY_CTRL1

0x214 - No description avaiable

source

pub fn top_status(&self) -> &TOP_STATUS

0x220 - No description avaiable

source

pub fn phy_status(&self) -> &PHY_STATUS

0x224 - No description avaiable

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 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.