[−][src]Enum lpc81x_hal::Model
Identifies a particular model of LPC8xx device.
Variants
LPC810M021FN8
LPC811M001JDH16
LPC812M101JDH16
LPC812M101JD20
LPC812M101JDH20
LPC812M101JTB16
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
Blanket Implementations
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> From<T> for T
[src]
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