[−][src]Struct e310x_hal::gpio::gpio0::Pin7
Pin
Methods
impl<MODE> Pin7<MODE>
[src]
pub fn into_iof0(self) -> Pin7<IOF0<NoInvert>>
[src]
Configures the pin to serve as alternate function 0 (AF0)
pub fn into_iof1(self) -> Pin7<IOF1<NoInvert>>
[src]
Configures the pin to serve as alternate function 1 (AF1)
pub fn into_inverted_iof0(self) -> Pin7<IOF0<Invert>>
[src]
Configures the pin to serve as inverted alternate function 0 (AF0)
pub fn into_inverted_iof1(self) -> Pin7<IOF1<Invert>>
[src]
Configures the pin to serve as inverted alternate function 1 (AF1)
pub fn into_floating_input(self) -> Pin7<Input<Floating>>
[src]
Configures the pin to serve as a floating input pin
pub fn into_pull_up_input(self) -> Pin7<Input<PullUp>>
[src]
Configures the pin to operate as a pulled down input pin
pub fn into_output(self) -> Pin7<Output<Regular<NoInvert>>>
[src]
Configures the pin to operate as an output pin
pub fn into_inverted_output(self) -> Pin7<Output<Regular<Invert>>>
[src]
Configures the pin to operate as an inverted output pin
pub fn into_output_drive(self) -> Pin7<Output<Drive<NoInvert>>>
[src]
Configure the pin to operate as an output pin with high current drive
pub fn into_inverted_output_drive(self) -> Pin7<Output<Drive<Invert>>>
[src]
Configure the pin to operate as an inverted output pin with high current drive
Trait Implementations
impl<MODE> InputPin for Pin7<Input<MODE>>
[src]
type Error = Infallible
Error type
fn is_high(&self) -> Result<bool, Infallible>
[src]
fn is_low(&self) -> Result<bool, Infallible>
[src]
impl<MODE> OutputPin for Pin7<Output<MODE>>
[src]
type Error = Infallible
Error type
fn set_high(&mut self) -> Result<(), Infallible>
[src]
fn set_low(&mut self) -> Result<(), Infallible>
[src]
impl<MODE> StatefulOutputPin for Pin7<Output<MODE>>
[src]
fn is_set_high(&self) -> Result<bool, Infallible>
[src]
fn is_set_low(&self) -> Result<bool, Infallible>
[src]
impl<MODE> ToggleableOutputPin for Pin7<Output<MODE>>
[src]
type Error = Infallible
Error type
fn toggle(&mut self) -> Result<(), Infallible>
[src]
Toggles the pin state.
Auto Trait Implementations
impl<MODE> Send for Pin7<MODE> where
MODE: Send,
MODE: Send,
impl<MODE> Sync for Pin7<MODE> where
MODE: Sync,
MODE: Sync,
impl<MODE> Unpin for Pin7<MODE> where
MODE: Unpin,
MODE: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,
type Error = ()
Error type
fn is_low(&self) -> Result<bool, <T as InputPin>::Error>
[src]
fn is_high(&self) -> Result<bool, <T as InputPin>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
type Error = ()
Error type
fn set_low(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
fn set_high(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
impl<T> StatefulOutputPin for T where
T: StatefulOutputPin + OutputPin,
[src]
T: StatefulOutputPin + OutputPin,
fn is_set_low(&self) -> Result<bool, <T as OutputPin>::Error>
[src]
fn is_set_high(&self) -> Result<bool, <T as OutputPin>::Error>
[src]
impl<P> ToggleableOutputPin for P where
P: Default,
[src]
P: Default,
type Error = <P as OutputPin>::Error
Error type
fn toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>
[src]
Toggle pin output
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,