Struct mimxrt500_hal::clocks::Clock

source ·
pub struct Clock<P, const INDEX: usize, const MASK: u32, const ACTIVE: bool>where
    P: ClockControlPeripheral,{ /* private fields */ }

Implementations§

source§

impl<P, const INDEX: usize, const MASK: u32> Clock<P, INDEX, MASK, false>where P: ClockControlPeripheral,

source

pub fn activate(self) -> Clock<P, INDEX, MASK, true>

source§

impl<P, const INDEX: usize, const MASK: u32> Clock<P, INDEX, MASK, true>where P: ClockControlPeripheral,

source

pub fn deactivate(self) -> Clock<P, INDEX, MASK, false>

Trait Implementations§

source§

impl<P, const INDEX: usize, const MASK: u32> From<Clock<P, INDEX, MASK, false>> for Clock<P, INDEX, MASK, true>where P: ClockControlPeripheral,

source§

fn from(value: Clock<P, INDEX, MASK, false>) -> Self

Converts to this type from the input type.
source§

impl<P, const INDEX: usize, const MASK: u32> From<Clock<P, INDEX, MASK, true>> for Clock<P, INDEX, MASK, false>where P: ClockControlPeripheral,

source§

fn from(value: Clock<P, INDEX, MASK, true>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<P, const INDEX: usize, const MASK: u32, const ACTIVE: bool> RefUnwindSafe for Clock<P, INDEX, MASK, ACTIVE>where P: RefUnwindSafe,

§

impl<P, const INDEX: usize, const MASK: u32, const ACTIVE: bool> Send for Clock<P, INDEX, MASK, ACTIVE>where P: Send,

§

impl<P, const INDEX: usize, const MASK: u32, const ACTIVE: bool> Sync for Clock<P, INDEX, MASK, ACTIVE>where P: Sync,

§

impl<P, const INDEX: usize, const MASK: u32, const ACTIVE: bool> Unpin for Clock<P, INDEX, MASK, ACTIVE>where P: Unpin,

§

impl<P, const INDEX: usize, const MASK: u32, const ACTIVE: bool> UnwindSafe for Clock<P, INDEX, MASK, ACTIVE>where P: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.