[][src]Enum lpc81x_hal::Model

pub enum Model {
    LPC810M021FN8,
    LPC811M001JDH16,
    LPC812M101JDH16,
    LPC812M101JD20,
    LPC812M101JDH20,
    LPC812M101JTB16,
}

Identifies a particular model of LPC8xx device.

Variants

LPC810M021FN8LPC811M001JDH16LPC812M101JDH16LPC812M101JD20LPC812M101JDH20LPC812M101JTB16

Methods

impl Model[src]

pub fn has_pin<P: Pin>(&self, pin: &P) -> bool[src]

Returns true if the given pin is available for this model.

This library does not prevent using pins that are not available on a particular device model or package, but an application intended to be portable can use this to adapt to different pin subsets.

pub fn has_spi1(&self) -> bool[src]

Returns true if the second SPI device (SPI1) is available for this model.

This library does not prevent using SPI1 on devices where it is unavailable. An application intended to be portable can use this to detect when SPI1 is unavailable and perform some sort of graceful fallback, such as using a "bit-bang" SPI implementation.

Auto Trait Implementations

impl Send for Model

impl Sync for Model

impl Unpin for Model

Blanket Implementations

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> From<T> for 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