Struct stm32_metapac::rcc::regs::Ahb1lpenr
#[repr(transparent)]pub struct Ahb1lpenr(pub u32);
Expand description
RCC AHB1 low-power clock enable register.
Tuple Fields§
§0: u32
Implementations§
§impl Ahb1lpenr
impl Ahb1lpenr
pub const fn gpdma1lpen(&self) -> bool
pub const fn gpdma1lpen(&self) -> bool
GPDMA1 clock enable in low-power mode Set and reset by software.
pub fn set_gpdma1lpen(&mut self, val: bool)
pub fn set_gpdma1lpen(&mut self, val: bool)
GPDMA1 clock enable in low-power mode Set and reset by software.
pub const fn adc12lpen(&self) -> bool
pub const fn adc12lpen(&self) -> bool
ADC1 and 2 peripheral clocks enable in low-power mode Set and reset by software. The peripheral clocks of the ADC1 and 2 are the kernel clock selected by ADCSEL and provided to ADCx_CK input, and the rcc_hclk1 bus interface clock.
pub fn set_adc12lpen(&mut self, val: bool)
pub fn set_adc12lpen(&mut self, val: bool)
ADC1 and 2 peripheral clocks enable in low-power mode Set and reset by software. The peripheral clocks of the ADC1 and 2 are the kernel clock selected by ADCSEL and provided to ADCx_CK input, and the rcc_hclk1 bus interface clock.
pub const fn ethlpen(&self) -> bool
pub const fn ethlpen(&self) -> bool
ETH1 MAC peripheral clock enable in low-power mode Set and reset by software.
pub fn set_ethlpen(&mut self, val: bool)
pub fn set_ethlpen(&mut self, val: bool)
ETH1 MAC peripheral clock enable in low-power mode Set and reset by software.
pub const fn ethtxlpen(&self) -> bool
pub const fn ethtxlpen(&self) -> bool
ETH1 transmission peripheral clock enable in low-power mode Set and reset by software.
pub fn set_ethtxlpen(&mut self, val: bool)
pub fn set_ethtxlpen(&mut self, val: bool)
ETH1 transmission peripheral clock enable in low-power mode Set and reset by software.
pub const fn ethrxlpen(&self) -> bool
pub const fn ethrxlpen(&self) -> bool
ETH1 reception peripheral clock enable in low-power mode Set and reset by software.
pub fn set_ethrxlpen(&mut self, val: bool)
pub fn set_ethrxlpen(&mut self, val: bool)
ETH1 reception peripheral clock enable in low-power mode Set and reset by software.
pub const fn usbpdctrl(&self) -> Usbpdctrl
pub const fn usbpdctrl(&self) -> Usbpdctrl
USBPHYC common block power-down control Set and reset by software.
pub fn set_usbpdctrl(&mut self, val: Usbpdctrl)
pub fn set_usbpdctrl(&mut self, val: Usbpdctrl)
USBPHYC common block power-down control Set and reset by software.
pub const fn usb_otg_hslpen(&self) -> bool
pub const fn usb_otg_hslpen(&self) -> bool
OTGHS peripheral clock enable in low-power mode Set and reset by software.
pub fn set_usb_otg_hslpen(&mut self, val: bool)
pub fn set_usb_otg_hslpen(&mut self, val: bool)
OTGHS peripheral clock enable in low-power mode Set and reset by software.
pub const fn usbphyclpen(&self) -> bool
pub const fn usbphyclpen(&self) -> bool
USBPHYC peripheral clock enable in low-power mode Set and reset by software.
pub fn set_usbphyclpen(&mut self, val: bool)
pub fn set_usbphyclpen(&mut self, val: bool)
USBPHYC peripheral clock enable in low-power mode Set and reset by software.
pub const fn usb_otg_fslpen(&self) -> bool
pub const fn usb_otg_fslpen(&self) -> bool
OTGFS clock enable in low-power mode Set and reset by software.
pub fn set_usb_otg_fslpen(&mut self, val: bool)
pub fn set_usb_otg_fslpen(&mut self, val: bool)
OTGFS clock enable in low-power mode Set and reset by software.
pub fn set_adflpen(&mut self, val: bool)
pub fn set_adflpen(&mut self, val: bool)
ADF clock enable in low-power mode Set and reset by software.
Trait Implementations§
impl Copy for Ahb1lpenr
impl Eq for Ahb1lpenr
impl StructuralPartialEq for Ahb1lpenr
Auto Trait Implementations§
impl Freeze for Ahb1lpenr
impl RefUnwindSafe for Ahb1lpenr
impl Send for Ahb1lpenr
impl Sync for Ahb1lpenr
impl Unpin for Ahb1lpenr
impl UnwindSafe for Ahb1lpenr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)