[][src]Struct lpc8xx_hal::syscon::SYSCON

pub struct SYSCON { /* fields omitted */ }

Entry point to the SYSCON API

The SYSCON API is split into multiple parts, which are all available through syscon::Parts. You can use SYSCON::split to gain access to syscon::Parts.

You can also use this struct to gain access to the raw peripheral using SYSCON::free. This is the main reason this struct exists, as it's no longer possible to do this after the API has been split.

Use Peripherals to gain access to an instance of this struct.

Please refer to the module documentation for more information.

Methods

impl SYSCON[src]

pub fn split(self) -> Parts[src]

Splits the SYSCON API into its component parts

This is the regular way to access the SYSCON API. It exists as an explicit step, as it's no longer possible to gain access to the raw peripheral using SYSCON::free after you've called this method.

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

Return the raw peripheral

This method serves as an escape hatch from the HAL API. It returns the raw peripheral, allowing you to do whatever you want with it, without limitations imposed by the API.

If you are using this method because a feature you need is missing from the HAL API, please open an issue or, if an issue for your feature request already exists, comment on the existing issue, so we can prioritize it accordingly.

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