pub struct Osc { /* private fields */ }Implementations§
Source§impl Osc
impl Osc
Sourcepub const fn new(osc: OSC, sysclock: Hertz) -> Osc
pub const fn new(osc: OSC, sysclock: Hertz) -> Osc
Create a new Osc from a possibly constant sysclock value. The sysclock
value should be set to the core clock resulting from the configuration
words and, if a crystal oscillator is used, the crystal frequency.
Sourcepub const fn new_with_refclock(osc: OSC, sysclock: Hertz) -> (Osc, Refclock)
pub const fn new_with_refclock(osc: OSC, sysclock: Hertz) -> (Osc, Refclock)
Create a new Osc and Refclock from a possibly constant sysclock
value. The sysclock value should be set to the core clock resulting from
the configuration words and, if a crystal oscillator is used, the
crystal frequency.
Auto Trait Implementations§
impl !Sync for Osc
impl Freeze for Osc
impl RefUnwindSafe for Osc
impl Send for Osc
impl Unpin for Osc
impl UnsafeUnpin for Osc
impl UnwindSafe for Osc
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
Mutably borrows from an owned value. Read more