Usbphy

Struct Usbphy 

Source
pub struct Usbphy { /* private fields */ }
Expand description

Universal System Bus Physical Layer

Implementations§

Source§

impl Usbphy

Source

pub const PTR: *const RegisterBlock = {0x4013b000 as *const usbphy::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 pwd(&self) -> &Pwd

0x00 - USB PHY Power-Down Register

Source

pub fn pwd_set(&self) -> &PwdSet

0x04 - USB PHY Power-Down Register

Source

pub fn pwd_clr(&self) -> &PwdClr

0x08 - USB PHY Power-Down Register

Source

pub fn pwd_tog(&self) -> &PwdTog

0x0c - USB PHY Power-Down Register

Source

pub fn tx(&self) -> &Tx

0x10 - USB PHY Transmitter Control Register

Source

pub fn tx_set(&self) -> &TxSet

0x14 - USB PHY Transmitter Control Register

Source

pub fn tx_clr(&self) -> &TxClr

0x18 - USB PHY Transmitter Control Register

Source

pub fn tx_tog(&self) -> &TxTog

0x1c - USB PHY Transmitter Control Register

Source

pub fn rx(&self) -> &Rx

0x20 - USB PHY Receiver Control Register

Source

pub fn rx_set(&self) -> &RxSet

0x24 - USB PHY Receiver Control Register

Source

pub fn rx_clr(&self) -> &RxClr

0x28 - USB PHY Receiver Control Register

Source

pub fn rx_tog(&self) -> &RxTog

0x2c - USB PHY Receiver Control Register

Source

pub fn ctrl(&self) -> &Ctrl

0x30 - USB PHY General Control Register

Source

pub fn ctrl_set(&self) -> &CtrlSet

0x34 - USB PHY General Control Register

Source

pub fn ctrl_clr(&self) -> &CtrlClr

0x38 - USB PHY General Control Register

Source

pub fn ctrl_tog(&self) -> &CtrlTog

0x3c - USB PHY General Control Register

Source

pub fn status(&self) -> &Status

0x40 - USB PHY Status Register

Source

pub fn debug0(&self) -> &Debug0

0x50 - USB PHY Debug Register 0

Source

pub fn debug0_set(&self) -> &Debug0Set

0x54 - USB PHY Debug Register 0

Source

pub fn debug0_clr(&self) -> &Debug0Clr

0x58 - USB PHY Debug Register 0

Source

pub fn debug0_tog(&self) -> &Debug0Tog

0x5c - USB PHY Debug Register 0

Source

pub fn debug1(&self) -> &Debug1

0x70 - UTMI Debug Status Register 1

Source

pub fn debug1_set(&self) -> &Debug1Set

0x74 - UTMI Debug Status Register 1

Source

pub fn debug1_clr(&self) -> &Debug1Clr

0x78 - UTMI Debug Status Register 1

Source

pub fn debug1_tog(&self) -> &Debug1Tog

0x7c - UTMI Debug Status Register 1

Source

pub fn version(&self) -> &Version

0x80 - UTMI RTL Version

Source

pub fn pll_sic(&self) -> &PllSic

0xa0 - USB PHY PLL Control/Status Register

Source

pub fn pll_sic_set(&self) -> &PllSicSet

0xa4 - USB PHY PLL Control/Status Register

Source

pub fn pll_sic_clr(&self) -> &PllSicClr

0xa8 - USB PHY PLL Control/Status Register

Source

pub fn pll_sic_tog(&self) -> &PllSicTog

0xac - USB PHY PLL Control/Status Register

Source

pub fn usb1_vbus_detect(&self) -> &Usb1VbusDetect

0xc0 - USB PHY VBUS Detect Control Register

Source

pub fn usb1_vbus_detect_set(&self) -> &Usb1VbusDetectSet

0xc4 - USB PHY VBUS Detect Control Register

Source

pub fn usb1_vbus_detect_clr(&self) -> &Usb1VbusDetectClr

0xc8 - USB PHY VBUS Detect Control Register

Source

pub fn usb1_vbus_detect_tog(&self) -> &Usb1VbusDetectTog

0xcc - USB PHY VBUS Detect Control Register

Source

pub fn usb1_vbus_det_stat(&self) -> &Usb1VbusDetStat

0xd0 - USB PHY VBUS Detector Status Register

Source

pub fn usb1_chrg_detect(&self) -> &Usb1ChrgDetect

0xe0 - USB PHY Charger Detect Control Register

Source

pub fn usb1_chrg_detect_set(&self) -> &Usb1ChrgDetectSet

0xe4 - USB PHY Charger Detect Control Register

Source

pub fn usb1_chrg_detect_clr(&self) -> &Usb1ChrgDetectClr

0xe8 - USB PHY Charger Detect Control Register

Source

pub fn usb1_chrg_detect_tog(&self) -> &Usb1ChrgDetectTog

0xec - USB PHY Charger Detect Control Register

Source

pub fn usb1_chrg_det_stat(&self) -> &Usb1ChrgDetStat

0xf0 - USB PHY Charger Detect Status Register

Source

pub fn anactrl(&self) -> &Anactrl

0x100 - USB PHY Analog Control Register

Source

pub fn anactrl_set(&self) -> &AnactrlSet

0x104 - USB PHY Analog Control Register

Source

pub fn anactrl_clr(&self) -> &AnactrlClr

0x108 - USB PHY Analog Control Register

Source

pub fn anactrl_tog(&self) -> &AnactrlTog

0x10c - USB PHY Analog Control Register

Source

pub fn usb1_loopback(&self) -> &Usb1Loopback

0x110 - USB PHY Loopback Control/Status Register

Source

pub fn usb1_loopback_set(&self) -> &Usb1LoopbackSet

0x114 - USB PHY Loopback Control/Status Register

Source

pub fn usb1_loopback_clr(&self) -> &Usb1LoopbackClr

0x118 - USB PHY Loopback Control/Status Register

Source

pub fn usb1_loopback_tog(&self) -> &Usb1LoopbackTog

0x11c - USB PHY Loopback Control/Status Register

Source

pub fn usb1_loopback_hsfscnt(&self) -> &Usb1LoopbackHsfscnt

0x120 - USB PHY Loopback Packet Number Select Register

Source

pub fn usb1_loopback_hsfscnt_set(&self) -> &Usb1LoopbackHsfscntSet

0x124 - USB PHY Loopback Packet Number Select Register

Source

pub fn usb1_loopback_hsfscnt_clr(&self) -> &Usb1LoopbackHsfscntClr

0x128 - USB PHY Loopback Packet Number Select Register

Source

pub fn usb1_loopback_hsfscnt_tog(&self) -> &Usb1LoopbackHsfscntTog

0x12c - USB PHY Loopback Packet Number Select Register

Source

pub fn trim_override_en(&self) -> &TrimOverrideEn

0x130 - USB PHY Trim Override Enable Register

Source

pub fn trim_override_en_set(&self) -> &TrimOverrideEnSet

0x134 - USB PHY Trim Override Enable Register

Source

pub fn trim_override_en_clr(&self) -> &TrimOverrideEnClr

0x138 - USB PHY Trim Override Enable Register

Source

pub fn trim_override_en_tog(&self) -> &TrimOverrideEnTog

0x13c - USB PHY Trim Override Enable Register

Trait Implementations§

Source§

impl Debug for Usbphy

Source§

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

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

impl Deref for Usbphy

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for Usbphy

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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

Source§

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.