Struct mcxn947_pac::USBPHY
source · pub struct USBPHY { /* private fields */ }
Expand description
USBPHY
Implementations§
source§impl USBPHY
impl USBPHY
sourcepub const PTR: *const RegisterBlock = {0x4010a000 as *const usbphy::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4010a000 as *const usbphy::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
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>§
sourcepub fn debug0_set(&self) -> &DEBUG0_SET
pub fn debug0_set(&self) -> &DEBUG0_SET
0x54 - Debug Register 0
sourcepub fn debug0_clr(&self) -> &DEBUG0_CLR
pub fn debug0_clr(&self) -> &DEBUG0_CLR
0x58 - Debug Register 0
sourcepub fn debug0_tog(&self) -> &DEBUG0_TOG
pub fn debug0_tog(&self) -> &DEBUG0_TOG
0x5c - Debug Register 0
sourcepub fn pll_sic_set(&self) -> &PLL_SIC_SET
pub fn pll_sic_set(&self) -> &PLL_SIC_SET
0xa4 - PLL SIC Register
sourcepub fn pll_sic_clr(&self) -> &PLL_SIC_CLR
pub fn pll_sic_clr(&self) -> &PLL_SIC_CLR
0xa8 - PLL SIC Register
sourcepub fn pll_sic_tog(&self) -> &PLL_SIC_TOG
pub fn pll_sic_tog(&self) -> &PLL_SIC_TOG
0xac - PLL SIC Register
sourcepub fn usb1_vbus_detect(&self) -> &USB1_VBUS_DETECT
pub fn usb1_vbus_detect(&self) -> &USB1_VBUS_DETECT
0xc0 - VBUS Detect Register
sourcepub fn usb1_vbus_detect_set(&self) -> &USB1_VBUS_DETECT_SET
pub fn usb1_vbus_detect_set(&self) -> &USB1_VBUS_DETECT_SET
0xc4 - VBUS Detect Register
sourcepub fn usb1_vbus_detect_clr(&self) -> &USB1_VBUS_DETECT_CLR
pub fn usb1_vbus_detect_clr(&self) -> &USB1_VBUS_DETECT_CLR
0xc8 - VBUS Detect Register
sourcepub fn usb1_vbus_detect_tog(&self) -> &USB1_VBUS_DETECT_TOG
pub fn usb1_vbus_detect_tog(&self) -> &USB1_VBUS_DETECT_TOG
0xcc - VBUS Detect Register
sourcepub fn usb1_vbus_det_stat(&self) -> &USB1_VBUS_DET_STAT
pub fn usb1_vbus_det_stat(&self) -> &USB1_VBUS_DET_STAT
0xd0 - VBUS Detect Status Register
sourcepub fn usb1_vbus_det_stat_set(&self) -> &USB1_VBUS_DET_STAT_SET
pub fn usb1_vbus_det_stat_set(&self) -> &USB1_VBUS_DET_STAT_SET
0xd4 - VBUS Detect Status Register
sourcepub fn usb1_vbus_det_stat_clr(&self) -> &USB1_VBUS_DET_STAT_CLR
pub fn usb1_vbus_det_stat_clr(&self) -> &USB1_VBUS_DET_STAT_CLR
0xd8 - VBUS Detect Status Register
sourcepub fn usb1_vbus_det_stat_tog(&self) -> &USB1_VBUS_DET_STAT_TOG
pub fn usb1_vbus_det_stat_tog(&self) -> &USB1_VBUS_DET_STAT_TOG
0xdc - VBUS Detect Status Register
sourcepub fn usb1_chrg_detect(&self) -> &USB1_CHRG_DETECT
pub fn usb1_chrg_detect(&self) -> &USB1_CHRG_DETECT
0xe0 - Charger Detect Register
sourcepub fn usb1_chrg_detect_set(&self) -> &USB1_CHRG_DETECT_SET
pub fn usb1_chrg_detect_set(&self) -> &USB1_CHRG_DETECT_SET
0xe4 - Charger Detect Register
sourcepub fn usb1_chrg_detect_clr(&self) -> &USB1_CHRG_DETECT_CLR
pub fn usb1_chrg_detect_clr(&self) -> &USB1_CHRG_DETECT_CLR
0xe8 - Charger Detect Register
sourcepub fn usb1_chrg_detect_tog(&self) -> &USB1_CHRG_DETECT_TOG
pub fn usb1_chrg_detect_tog(&self) -> &USB1_CHRG_DETECT_TOG
0xec - Charger Detect Register
sourcepub fn usb1_chrg_det_stat(&self) -> &USB1_CHRG_DET_STAT
pub fn usb1_chrg_det_stat(&self) -> &USB1_CHRG_DET_STAT
0xf0 - Charger Detect Status Register
sourcepub fn usb1_chrg_det_stat_set(&self) -> &USB1_CHRG_DET_STAT_SET
pub fn usb1_chrg_det_stat_set(&self) -> &USB1_CHRG_DET_STAT_SET
0xf4 - Charger Detect Status Register
sourcepub fn usb1_chrg_det_stat_clr(&self) -> &USB1_CHRG_DET_STAT_CLR
pub fn usb1_chrg_det_stat_clr(&self) -> &USB1_CHRG_DET_STAT_CLR
0xf8 - Charger Detect Status Register
sourcepub fn usb1_chrg_det_stat_tog(&self) -> &USB1_CHRG_DET_STAT_TOG
pub fn usb1_chrg_det_stat_tog(&self) -> &USB1_CHRG_DET_STAT_TOG
0xfc - Charger Detect Status Register
sourcepub fn anactrl_set(&self) -> &ANACTRL_SET
pub fn anactrl_set(&self) -> &ANACTRL_SET
0x104 - Analog Control Register
sourcepub fn anactrl_clr(&self) -> &ANACTRL_CLR
pub fn anactrl_clr(&self) -> &ANACTRL_CLR
0x108 - Analog Control Register
sourcepub fn anactrl_tog(&self) -> &ANACTRL_TOG
pub fn anactrl_tog(&self) -> &ANACTRL_TOG
0x10c - Analog Control Register
sourcepub fn trim_override_en(&self) -> &TRIM_OVERRIDE_EN
pub fn trim_override_en(&self) -> &TRIM_OVERRIDE_EN
0x130 - Trim Register
sourcepub fn trim_override_en_set(&self) -> &TRIM_OVERRIDE_EN_SET
pub fn trim_override_en_set(&self) -> &TRIM_OVERRIDE_EN_SET
0x134 - Trim Register
sourcepub fn trim_override_en_clr(&self) -> &TRIM_OVERRIDE_EN_CLR
pub fn trim_override_en_clr(&self) -> &TRIM_OVERRIDE_EN_CLR
0x138 - Trim Register
sourcepub fn trim_override_en_tog(&self) -> &TRIM_OVERRIDE_EN_TOG
pub fn trim_override_en_tog(&self) -> &TRIM_OVERRIDE_EN_TOG
0x13c - Trim Register