Struct stm32_metapac::rcc::regs::Apb2perckselr
#[repr(transparent)]pub struct Apb2perckselr(pub u32);
Expand description
RCC APB2 peripherals kernel clock selection register.
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Apb2perckselr
impl Apb2perckselr
pub const fn usart1sel(&self) -> Usart1sel
pub const fn usart1sel(&self) -> Usart1sel
USART1 kernel clock source selection Set and reset by software. others: reserved, the kernel clock is disabled.
pub fn set_usart1sel(&mut self, val: Usart1sel)
pub fn set_usart1sel(&mut self, val: Usart1sel)
USART1 kernel clock source selection Set and reset by software. others: reserved, the kernel clock is disabled.
pub const fn spi45sel(&self) -> Spi45sel
pub const fn spi45sel(&self) -> Spi45sel
SPI4 and 5 kernel clock source selection Set and reset by software. others: reserved, the kernel clock is disabled.
pub fn set_spi45sel(&mut self, val: Spi45sel)
pub fn set_spi45sel(&mut self, val: Spi45sel)
SPI4 and 5 kernel clock source selection Set and reset by software. others: reserved, the kernel clock is disabled.
pub const fn spi1sel(&self) -> Spi123sel
pub const fn spi1sel(&self) -> Spi123sel
SPI/I2S1 kernel clock source selection Set and reset by software. If the selected clock is the external clock and this clock is stopped, it is not be possible to switch to another clock. Refer to Clock switches and gating on page 437 for additional information. others: reserved, the kernel clock is disabled Note: I2S_CKIN is an external clock taken from a pin.
pub fn set_spi1sel(&mut self, val: Spi123sel)
pub fn set_spi1sel(&mut self, val: Spi123sel)
SPI/I2S1 kernel clock source selection Set and reset by software. If the selected clock is the external clock and this clock is stopped, it is not be possible to switch to another clock. Refer to Clock switches and gating on page 437 for additional information. others: reserved, the kernel clock is disabled Note: I2S_CKIN is an external clock taken from a pin.
pub const fn sai1sel(&self) -> Sai1sel
pub const fn sai1sel(&self) -> Sai1sel
SAI1 kernel clock source selection Set and reset by software. If the selected clock is the external clock and this clock is stopped, it is not possible to switch to another clock. Refer to Clock switches and gating on page 437 for additional information. others: reserved, the kernel clock is disabled Note: I2S_CKIN is an external clock taken from a pin.
pub fn set_sai1sel(&mut self, val: Sai1sel)
pub fn set_sai1sel(&mut self, val: Sai1sel)
SAI1 kernel clock source selection Set and reset by software. If the selected clock is the external clock and this clock is stopped, it is not possible to switch to another clock. Refer to Clock switches and gating on page 437 for additional information. others: reserved, the kernel clock is disabled Note: I2S_CKIN is an external clock taken from a pin.
pub const fn sai2sel(&self) -> Sai2sel
pub const fn sai2sel(&self) -> Sai2sel
SAI2 kernel clock source selection Set and reset by software. If the selected clock is the external clock and this clock is stopped, it is not possible to switch to another clock. Refer to Clock switches and gating on page 437 for additional information. others: reserved, the kernel clock is disabled Note: I2S_CKIN is an external clock taken from a pin. spdifrx_symb_ck is the symbol clock generated by the spdifrx (see Figure 51).
pub fn set_sai2sel(&mut self, val: Sai2sel)
pub fn set_sai2sel(&mut self, val: Sai2sel)
SAI2 kernel clock source selection Set and reset by software. If the selected clock is the external clock and this clock is stopped, it is not possible to switch to another clock. Refer to Clock switches and gating on page 437 for additional information. others: reserved, the kernel clock is disabled Note: I2S_CKIN is an external clock taken from a pin. spdifrx_symb_ck is the symbol clock generated by the spdifrx (see Figure 51).
Trait Implementationsยง
ยงimpl Clone for Apb2perckselr
impl Clone for Apb2perckselr
ยงfn clone(&self) -> Apb2perckselr
fn clone(&self) -> Apb2perckselr
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreยงimpl Default for Apb2perckselr
impl Default for Apb2perckselr
ยงfn default() -> Apb2perckselr
fn default() -> Apb2perckselr
ยงimpl PartialEq for Apb2perckselr
impl PartialEq for Apb2perckselr
ยงfn eq(&self, other: &Apb2perckselr) -> bool
fn eq(&self, other: &Apb2perckselr) -> bool
self
and other
values to be equal, and is used
by ==
.