stm32-metapac

Crates

git

Versions

stm32h7s7l8

Flavors

๐Ÿ“ฃ We want to hear from you! Fill the Rust Embedded 2024 micro-survey.
#[repr(transparent)]
pub struct Ahbperckselr(pub u32);
Expand description

RCC AHB peripheral kernel clock selection register.

Tuple Fieldsยง

ยง0: u32

Implementationsยง

ยง

impl Ahbperckselr

pub const fn fmcsel(&self) -> Fmcsel

FMC kernel clock source selection Set and reset by software.

pub fn set_fmcsel(&mut self, val: Fmcsel)

FMC kernel clock source selection Set and reset by software.

pub const fn sdmmcsel(&self) -> Sdmmcsel

SDMMC1 and SDMMC2 kernel clock source selection Set and reset by software.

pub fn set_sdmmcsel(&mut self, val: Sdmmcsel)

SDMMC1 and SDMMC2 kernel clock source selection Set and reset by software.

pub const fn octospi1sel(&self) -> Octospisel

XSPI1 kernel clock source selection Set and reset by software. 1x: pll2_t_ck selected as kernel peripheral clock.

pub fn set_octospi1sel(&mut self, val: Octospisel)

XSPI1 kernel clock source selection Set and reset by software. 1x: pll2_t_ck selected as kernel peripheral clock.

pub const fn octospi2sel(&self) -> Octospisel

XSPI2 kernel clock source selection Set and reset by software. 1x: pll2_t_ck selected as kernel peripheral clock.

pub fn set_octospi2sel(&mut self, val: Octospisel)

XSPI2 kernel clock source selection Set and reset by software. 1x: pll2_t_ck selected as kernel peripheral clock.

pub const fn usbrefcksel(&self) -> Usbrefcksel

USBPHYC kernel clock frequency selection Set and reset by software. This field is used to indicate to the USBPHYC, the frequency of the reference kernel clock provided to the USBPHYC. others: reserved.

pub fn set_usbrefcksel(&mut self, val: Usbrefcksel)

USBPHYC kernel clock frequency selection Set and reset by software. This field is used to indicate to the USBPHYC, the frequency of the reference kernel clock provided to the USBPHYC. others: reserved.

pub const fn usbphycsel(&self) -> Usbphycsel

USBPHYC kernel clock source selection Set and reset by software.

pub fn set_usbphycsel(&mut self, val: Usbphycsel)

USBPHYC kernel clock source selection Set and reset by software.

pub const fn usb_otg_fssel(&self) -> UsbOtgFssel

OTGFS kernel clock source selection Set and reset by software.

pub fn set_usb_otg_fssel(&mut self, val: UsbOtgFssel)

OTGFS kernel clock source selection Set and reset by software.

pub const fn eth_ref_clk_sel(&self) -> EthRefClkSel

Ethernet reference clock source selection Set and reset by software. others: reserved, the kernel clock is disabled.

pub fn set_eth_ref_clk_sel(&mut self, val: EthRefClkSel)

Ethernet reference clock source selection Set and reset by software. others: reserved, the kernel clock is disabled.

pub const fn ethphy_clk_sel(&self) -> EthphyClkSel

Clock source selection for external Ethernet PHY Set and reset by software.

pub fn set_ethphy_clk_sel(&mut self, val: EthphyClkSel)

Clock source selection for external Ethernet PHY Set and reset by software.

pub const fn adfsel(&self) -> Adfsel

ADF kernel clock source selection Set and reset by software. Note: I2S_CKIN is an external clock taken from a pin.

pub fn set_adfsel(&mut self, val: Adfsel)

ADF kernel clock source selection Set and reset by software. Note: I2S_CKIN is an external clock taken from a pin.

pub const fn adcsel(&self) -> Adcsel

SAR ADC kernel clock source selection Set and reset by software. others: reserved, the kernel clock is disabled.

pub fn set_adcsel(&mut self, val: Adcsel)

SAR ADC kernel clock source selection Set and reset by software. others: reserved, the kernel clock is disabled.

pub const fn pssisel(&self) -> Pssisel

PSSI kernel clock source selection Set and reset by software.

pub fn set_pssisel(&mut self, val: Pssisel)

PSSI kernel clock source selection Set and reset by software.

pub const fn persel(&self) -> Persel

per_ck clock source selection.

pub fn set_persel(&mut self, val: Persel)

per_ck clock source selection.

Trait Implementationsยง

ยง

impl Clone for Ahbperckselr

ยง

fn clone(&self) -> Ahbperckselr

Returns a copy of the value. Read more
1.0.0 ยท sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
ยง

impl Default for Ahbperckselr

ยง

fn default() -> Ahbperckselr

Returns the โ€œdefault valueโ€ for a type. Read more
ยง

impl PartialEq for Ahbperckselr

ยง

fn eq(&self, other: &Ahbperckselr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
ยง

impl Copy for Ahbperckselr

ยง

impl Eq for Ahbperckselr

ยง

impl StructuralEq for Ahbperckselr

ยง

impl StructuralPartialEq for Ahbperckselr

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.