[−][src]Struct lpc8xx_hal::syscon::Handle
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]
I: WakeUpInterrupt,
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]
I: WakeUpInterrupt,
Disable interrupt wake-up from deep-sleep and power-down modes
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self