[−][src]Struct gd32vf103xx_hal::rcu::Clocks
Implementations
impl Clocks
[src]
pub const fn sysclk(&self) -> Hertz
[src]
Returns the system (core) frequency
pub const fn hclk(&self) -> Hertz
[src]
Returns the frequency of the AHB
pub const fn pclk1(&self) -> Hertz
[src]
Returns the frequency of the APB1
pub const fn pclk2(&self) -> Hertz
[src]
Returns the frequency of the APB2
pub const fn systick(&self) -> Hertz
[src]
Returns the frequency of the SysTick timer
pub fn timer0(&self) -> Hertz
[src]
Returns the frequency of the TIMER0 base clock
pub fn timerx(&self) -> Hertz
[src]
Returns the frequency of the TIMER1..6 base clock
pub const fn usbclk_valid(&self) -> bool
[src]
Returns whether the USBCLK clock frequency is valid for the USB peripheral
Trait Implementations
impl Clone for Clocks
[src]
fn clone(&self) -> Clocks
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Clocks
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,