pub struct USBHS1__USBC { /* private fields */ }
Expand description

USB

Implementations§

source§

impl USBHS1__USBC

source

pub const PTR: *const RegisterBlock = {0x4010b000 as *const usbhs1__usbc::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 id(&self) -> &ID

0x00 - Identification register

source

pub fn hwgeneral(&self) -> &HWGENERAL

0x04 - Hardware General

source

pub fn hwhost(&self) -> &HWHOST

0x08 - Host Hardware Parameters

source

pub fn hwdevice(&self) -> &HWDEVICE

0x0c - Device Hardware Parameters

source

pub fn hwtxbuf(&self) -> &HWTXBUF

0x10 - TX Buffer Hardware Parameters

source

pub fn hwrxbuf(&self) -> &HWRXBUF

0x14 - RX Buffer Hardware Parameters

source

pub fn gptimer0ld(&self) -> &GPTIMER0LD

0x80 - General Purpose Timer #0 Load

source

pub fn gptimer0ctrl(&self) -> &GPTIMER0CTRL

0x84 - General Purpose Timer #0 Controller

source

pub fn gptimer1ld(&self) -> &GPTIMER1LD

0x88 - General Purpose Timer #1 Load

source

pub fn gptimer1ctrl(&self) -> &GPTIMER1CTRL

0x8c - General Purpose Timer #1 Controller

source

pub fn sbuscfg(&self) -> &SBUSCFG

0x90 - System Bus Config

source

pub fn caplength(&self) -> &CAPLENGTH

0x100 - Capability Registers Length

source

pub fn hciversion(&self) -> &HCIVERSION

0x102 - Host Controller Interface Version

source

pub fn hcsparams(&self) -> &HCSPARAMS

0x104 - Host Controller Structural Parameters

source

pub fn hccparams(&self) -> &HCCPARAMS

0x108 - Host Controller Capability Parameters

source

pub fn dciversion(&self) -> &DCIVERSION

0x120 - Device Controller Interface Version

source

pub fn dccparams(&self) -> &DCCPARAMS

0x124 - Device Controller Capability Parameters

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

source

pub fn address_modes_periodiclistbase(&self) -> &ADDRESS_MODES_PERIODICLISTBASE

0x154 - Frame List Base Address

source

pub fn address_modes_endptlistaddr(&self) -> &ADDRESS_MODES_ENDPTLISTADDR

0x158 - Endpoint List Address

source

pub fn address_modes_asynclistaddr(&self) -> &ADDRESS_MODES_ASYNCLISTADDR

0x158 - Next Asynch. Address

source

pub fn burstsize(&self) -> &BURSTSIZE

0x160 - Programmable Burst Size

source

pub fn txfilltuning(&self) -> &TXFILLTUNING

0x164 - TX FIFO Fill Tuning

source

pub fn endptnak(&self) -> &ENDPTNAK

0x178 - Endpoint NAK

source

pub fn endptnaken(&self) -> &ENDPTNAKEN

0x17c - Endpoint NAK Enable

source

pub fn configflag(&self) -> &CONFIGFLAG

0x180 - Configure Flag Register

source

pub fn portsc1(&self) -> &PORTSC1

0x184 - Port Status & Control

source

pub fn otgsc(&self) -> &OTGSC

0x1a4 - On-The-Go Status & control

source

pub fn usbmode(&self) -> &USBMODE

0x1a8 - USB Device Mode

source

pub fn endptsetupstat(&self) -> &ENDPTSETUPSTAT

0x1ac - Endpoint Setup Status

source

pub fn endptprime(&self) -> &ENDPTPRIME

0x1b0 - Endpoint Prime

source

pub fn endptflush(&self) -> &ENDPTFLUSH

0x1b4 - Endpoint Flush

source

pub fn endptstat(&self) -> &ENDPTSTAT

0x1b8 - Endpoint Status

source

pub fn endptcomplete(&self) -> &ENDPTCOMPLETE

0x1bc - Endpoint Complete

source

pub fn endptctrl0(&self) -> &ENDPTCTRL0

0x1c0 - Endpoint Control0

source

pub fn endptctrl1(&self) -> &ENDPTCTRL1

0x1c4 - Endpoint Control 1

source

pub fn endptctrl2(&self) -> &ENDPTCTRL2

0x1c8 - Endpoint Control 2

source

pub fn endptctrl3(&self) -> &ENDPTCTRL3

0x1cc - Endpoint Control 3

source

pub fn endptctrl4(&self) -> &ENDPTCTRL4

0x1d0 - Endpoint Control 4

source

pub fn endptctrl5(&self) -> &ENDPTCTRL5

0x1d4 - Endpoint Control 5

source

pub fn endptctrl6(&self) -> &ENDPTCTRL6

0x1d8 - Endpoint Control 6

source

pub fn endptctrl7(&self) -> &ENDPTCTRL7

0x1dc - Endpoint Control 7

Trait Implementations§

source§

impl Debug for USBHS1__USBC

source§

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

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

impl Deref for USBHS1__USBC

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for USBHS1__USBC

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.