[][src]Struct gd32vf103xx_hal::rcu::Clocks

pub struct Clocks { /* fields omitted */ }

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]

impl Copy for Clocks[src]

Auto Trait Implementations

impl Send for Clocks

impl Sync for Clocks

impl Unpin for Clocks

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.