[][src]Struct lpc55s6x_hal::peripherals::syscon::Syscon

pub struct Syscon { /* fields omitted */ }

Methods

impl Syscon[src]

pub unsafe fn steal() -> Self[src]

pub fn release(self) -> SYSCON[src]

impl Syscon[src]

pub fn rev_id(&self) -> u8[src]

impl Syscon[src]

The main API for the SYSCON peripheral

pub fn enable_clock<P: ClockControl>(&mut self, peripheral: &mut P)[src]

Enables the clock for a peripheral or other hardware component

pub fn disable_clock<P: ClockControl>(&mut self, peripheral: &mut P)[src]

Disable peripheral clock

pub fn is_clock_enabled<P: ClockControl>(&self, peripheral: &P) -> bool[src]

Check if peripheral clock is enabled

pub fn reset<P: ResetControl>(&mut self, peripheral: &mut P)[src]

Reset a peripheral

Trait Implementations

impl From<SYSCON> for Syscon[src]

Auto Trait Implementations

impl Unpin for Syscon

impl Send for Syscon

impl !Sync for Syscon

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self