pub struct Gpio2Control { /* private fields */ }
Expand description
Configures the function of the GPIO2 pin.
Implementations§
Source§impl Gpio2Control
impl Gpio2Control
Sourcepub fn function_select(&self) -> Gpio2FunctionSelect
pub fn function_select(&self) -> Gpio2FunctionSelect
Read the function_select
field of the register.
Selects the operating mode for the GPIO2 pin.
Sourcepub fn set_function_select(&mut self, value: Gpio2FunctionSelect)
pub fn set_function_select(&mut self, value: Gpio2FunctionSelect)
Write the function_select
field of the register.
Selects the operating mode for the GPIO2 pin.
Trait Implementations§
Source§impl BitAnd for Gpio2Control
impl BitAnd for Gpio2Control
Source§impl BitAndAssign for Gpio2Control
impl BitAndAssign for Gpio2Control
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for Gpio2Control
impl BitOr for Gpio2Control
Source§impl BitOrAssign for Gpio2Control
impl BitOrAssign for Gpio2Control
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXor for Gpio2Control
impl BitXor for Gpio2Control
Source§impl BitXorAssign for Gpio2Control
impl BitXorAssign for Gpio2Control
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl Clone for Gpio2Control
impl Clone for Gpio2Control
Source§fn clone(&self) -> Gpio2Control
fn clone(&self) -> Gpio2Control
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 Gpio2Control
impl Debug for Gpio2Control
Source§impl From<Gpio2Control> for [u8; 1]
impl From<Gpio2Control> for [u8; 1]
Source§fn from(val: Gpio2Control) -> Self
fn from(val: Gpio2Control) -> Self
Converts to this type from the input type.
Source§impl From<Gpio2Control> for FieldSetValue
impl From<Gpio2Control> for FieldSetValue
Source§fn from(val: Gpio2Control) -> Self
fn from(val: Gpio2Control) -> Self
Converts to this type from the input type.
Source§impl Not for Gpio2Control
impl Not for Gpio2Control
Source§impl PartialEq for Gpio2Control
impl PartialEq for Gpio2Control
impl Copy for Gpio2Control
impl Eq for Gpio2Control
impl StructuralPartialEq for Gpio2Control
Auto Trait Implementations§
impl Freeze for Gpio2Control
impl RefUnwindSafe for Gpio2Control
impl Send for Gpio2Control
impl Sync for Gpio2Control
impl Unpin for Gpio2Control
impl UnwindSafe for Gpio2Control
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