[][src]Struct lpc8xx_hal::syscon::Handle

pub struct Handle { /* fields omitted */ }

Handle to the SYSCON peripheral

This handle to the SYSCON peripheral provides access to the main part of the SYSCON API. It is also required by other parts of the HAL API to synchronize access the the underlying registers, wherever this is required.

Please refer to the module documentation for more information about the PMU.

Methods

impl Handle[src]

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

Enable peripheral clock

Enables the clock for a peripheral or other hardware component. HAL users usually won't have to call this method directly, as other peripheral APIs will do this for them.

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

Disable peripheral clock

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

Assert peripheral reset

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

Clear peripheral reset

Clears the reset for a peripheral or other hardware component. HAL users usually won't have to call this method directly, as other peripheral APIs will do this for them.

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

Provide power to an analog block

HAL users usually won't have to call this method themselves, as other peripheral APIs will do this for them.

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

Remove power from an analog block

pub fn enable_interrupt_wakeup<I>(&mut self) where
    I: WakeUpInterrupt
[src]

Enable interrupt wake-up from deep-sleep and power-down modes

To use an interrupt for waking up the system from the deep-sleep and power-down modes, it needs to be enabled using this method, in addition to being enabled in the NVIC.

This method is not required when using the regular sleep mode.

pub fn disable_interrupt_wakeup<I>(&mut self) where
    I: WakeUpInterrupt
[src]

Disable interrupt wake-up from deep-sleep and power-down modes

Auto Trait Implementations

impl Unpin for Handle

impl Send for Handle

impl !Sync for Handle

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