Struct mcxn947_pac::USBPHY

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

USBPHY

Implementations§

source§

impl USBPHY

source

pub const PTR: *const RegisterBlock = {0x4010a000 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 - Power Down Register

source

pub fn pwd_set(&self) -> &PWD_SET

0x04 - Power Down Register

source

pub fn pwd_clr(&self) -> &PWD_CLR

0x08 - Power Down Register

source

pub fn pwd_tog(&self) -> &PWD_TOG

0x0c - Power Down Register

source

pub fn tx(&self) -> &TX

0x10 - Tx Control Register

source

pub fn tx_set(&self) -> &TX_SET

0x14 - Tx Control Register

source

pub fn tx_clr(&self) -> &TX_CLR

0x18 - Tx Control Register

source

pub fn tx_tog(&self) -> &TX_TOG

0x1c - Tx Control Register

source

pub fn rx(&self) -> &RX

0x20 - Rx Control Register

source

pub fn rx_set(&self) -> &RX_SET

0x24 - Rx Control Register

source

pub fn rx_clr(&self) -> &RX_CLR

0x28 - Rx Control Register

source

pub fn rx_tog(&self) -> &RX_TOG

0x2c - Rx Control Register

source

pub fn ctrl(&self) -> &CTRL

0x30 - General Purpose Control Register

source

pub fn ctrl_set(&self) -> &CTRL_SET

0x34 - General Purpose Control Register

source

pub fn ctrl_clr(&self) -> &CTRL_CLR

0x38 - General Purpose Control Register

source

pub fn ctrl_tog(&self) -> &CTRL_TOG

0x3c - General Purpose Control Register

source

pub fn status(&self) -> &STATUS

0x40 - Status Register

source

pub fn debug0(&self) -> &DEBUG0

0x50 - Debug Register 0

source

pub fn debug0_set(&self) -> &DEBUG0_SET

0x54 - Debug Register 0

source

pub fn debug0_clr(&self) -> &DEBUG0_CLR

0x58 - Debug Register 0

source

pub fn debug0_tog(&self) -> &DEBUG0_TOG

0x5c - Debug Register 0

source

pub fn version(&self) -> &VERSION

0x80 - Version Register

source

pub fn ip(&self) -> &IP

0x90 - IP Block Register

source

pub fn ip_set(&self) -> &IP_SET

0x94 - IP Block Register

source

pub fn ip_clr(&self) -> &IP_CLR

0x98 - IP Block Register

source

pub fn ip_tog(&self) -> &IP_TOG

0x9c - IP Block Register

source

pub fn pll_sic(&self) -> &PLL_SIC

0xa0 - PLL SIC Register

source

pub fn pll_sic_set(&self) -> &PLL_SIC_SET

0xa4 - PLL SIC Register

source

pub fn pll_sic_clr(&self) -> &PLL_SIC_CLR

0xa8 - PLL SIC Register

source

pub fn pll_sic_tog(&self) -> &PLL_SIC_TOG

0xac - PLL SIC Register

source

pub fn usb1_vbus_detect(&self) -> &USB1_VBUS_DETECT

0xc0 - VBUS Detect Register

source

pub fn usb1_vbus_detect_set(&self) -> &USB1_VBUS_DETECT_SET

0xc4 - VBUS Detect Register

source

pub fn usb1_vbus_detect_clr(&self) -> &USB1_VBUS_DETECT_CLR

0xc8 - VBUS Detect Register

source

pub fn usb1_vbus_detect_tog(&self) -> &USB1_VBUS_DETECT_TOG

0xcc - VBUS Detect Register

source

pub fn usb1_vbus_det_stat(&self) -> &USB1_VBUS_DET_STAT

0xd0 - VBUS Detect Status Register

source

pub fn usb1_vbus_det_stat_set(&self) -> &USB1_VBUS_DET_STAT_SET

0xd4 - VBUS Detect Status Register

source

pub fn usb1_vbus_det_stat_clr(&self) -> &USB1_VBUS_DET_STAT_CLR

0xd8 - VBUS Detect Status Register

source

pub fn usb1_vbus_det_stat_tog(&self) -> &USB1_VBUS_DET_STAT_TOG

0xdc - VBUS Detect Status Register

source

pub fn usb1_chrg_detect(&self) -> &USB1_CHRG_DETECT

0xe0 - Charger Detect Register

source

pub fn usb1_chrg_detect_set(&self) -> &USB1_CHRG_DETECT_SET

0xe4 - Charger Detect Register

source

pub fn usb1_chrg_detect_clr(&self) -> &USB1_CHRG_DETECT_CLR

0xe8 - Charger Detect Register

source

pub fn usb1_chrg_detect_tog(&self) -> &USB1_CHRG_DETECT_TOG

0xec - Charger Detect Register

source

pub fn usb1_chrg_det_stat(&self) -> &USB1_CHRG_DET_STAT

0xf0 - Charger Detect Status Register

source

pub fn usb1_chrg_det_stat_set(&self) -> &USB1_CHRG_DET_STAT_SET

0xf4 - Charger Detect Status Register

source

pub fn usb1_chrg_det_stat_clr(&self) -> &USB1_CHRG_DET_STAT_CLR

0xf8 - Charger Detect Status Register

source

pub fn usb1_chrg_det_stat_tog(&self) -> &USB1_CHRG_DET_STAT_TOG

0xfc - Charger Detect Status Register

source

pub fn anactrl(&self) -> &ANACTRL

0x100 - Analog Control Register

source

pub fn anactrl_set(&self) -> &ANACTRL_SET

0x104 - Analog Control Register

source

pub fn anactrl_clr(&self) -> &ANACTRL_CLR

0x108 - Analog Control Register

source

pub fn anactrl_tog(&self) -> &ANACTRL_TOG

0x10c - Analog Control Register

source

pub fn trim_override_en(&self) -> &TRIM_OVERRIDE_EN

0x130 - Trim Register

source

pub fn trim_override_en_set(&self) -> &TRIM_OVERRIDE_EN_SET

0x134 - Trim Register

source

pub fn trim_override_en_clr(&self) -> &TRIM_OVERRIDE_EN_CLR

0x138 - Trim Register

source

pub fn trim_override_en_tog(&self) -> &TRIM_OVERRIDE_EN_TOG

0x13c - Trim Register

source

pub fn pfda(&self) -> &PFDA

0x140 - PFD Register A

source

pub fn pfda_set(&self) -> &PFDA_SET

0x144 - PFD Register A

source

pub fn pfda_clr(&self) -> &PFDA_CLR

0x148 - PFD Register A

source

pub fn pfda_tog(&self) -> &PFDA_TOG

0x14c - PFD Register A

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

§

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