pub enum PinFunction {
In,
Out,
Alt0,
Alt1,
Alt2,
Alt3,
Alt4,
Alt5,
}Expand description
Enumeration of the functions that pins can have.
This is a low-level interface to pin functions, and the meaning of each
Alt* value varies depending on which pin it is applied to. This is
managed automatically by the higher-level Peripherals interface.
See this comprehensive table compiled and published by eLinux.org for details about how each function applies to each pin.
Variants§
Trait Implementations§
Source§impl Clone for PinFunction
impl Clone for PinFunction
Source§fn clone(&self) -> PinFunction
fn clone(&self) -> PinFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PinFunction
impl Debug for PinFunction
Source§impl PartialEq for PinFunction
impl PartialEq for PinFunction
impl Copy for PinFunction
impl Eq for PinFunction
impl StructuralPartialEq for PinFunction
Auto Trait Implementations§
impl Freeze for PinFunction
impl RefUnwindSafe for PinFunction
impl Send for PinFunction
impl Sync for PinFunction
impl Unpin for PinFunction
impl UnwindSafe for PinFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more