[−][src]Struct e310x_hal::gpio::gpio0::Pin17
Pin
Methods
impl<MODE> Pin17<MODE>
[src]
pub fn into_iof0(
self,
out_xor: &mut OUT_XOR,
iof_sel: &mut IOF_SEL,
iof_en: &mut IOF_EN
) -> Pin17<IOF0<NoInvert>>
[src]
self,
out_xor: &mut OUT_XOR,
iof_sel: &mut IOF_SEL,
iof_en: &mut IOF_EN
) -> Pin17<IOF0<NoInvert>>
Configures the pin to serve as alternate function 0 (AF0)
pub fn into_iof1(
self,
out_xor: &mut OUT_XOR,
iof_sel: &mut IOF_SEL,
iof_en: &mut IOF_EN
) -> Pin17<IOF1<NoInvert>>
[src]
self,
out_xor: &mut OUT_XOR,
iof_sel: &mut IOF_SEL,
iof_en: &mut IOF_EN
) -> Pin17<IOF1<NoInvert>>
Configures the pin to serve as alternate function 1 (AF1)
pub fn into_inverted_iof0(
self,
out_xor: &mut OUT_XOR,
iof_sel: &mut IOF_SEL,
iof_en: &mut IOF_EN
) -> Pin17<IOF0<Invert>>
[src]
self,
out_xor: &mut OUT_XOR,
iof_sel: &mut IOF_SEL,
iof_en: &mut IOF_EN
) -> Pin17<IOF0<Invert>>
Configures the pin to serve as inverted alternate function 0 (AF0)
pub fn into_inverted_iof1(
self,
out_xor: &mut OUT_XOR,
iof_sel: &mut IOF_SEL,
iof_en: &mut IOF_EN
) -> Pin17<IOF1<Invert>>
[src]
self,
out_xor: &mut OUT_XOR,
iof_sel: &mut IOF_SEL,
iof_en: &mut IOF_EN
) -> Pin17<IOF1<Invert>>
Configures the pin to serve as inverted alternate function 1 (AF1)
pub fn into_floating_input(
self,
pullup: &mut PULLUP,
input_en: &mut INPUT_EN,
iof_en: &mut IOF_EN
) -> Pin17<Input<Floating>>
[src]
self,
pullup: &mut PULLUP,
input_en: &mut INPUT_EN,
iof_en: &mut IOF_EN
) -> Pin17<Input<Floating>>
Configures the pin to serve as a floating input pin
pub fn into_pull_up_input(
self,
pullup: &mut PULLUP,
input_en: &mut INPUT_EN,
iof_en: &mut IOF_EN
) -> Pin17<Input<PullUp>>
[src]
self,
pullup: &mut PULLUP,
input_en: &mut INPUT_EN,
iof_en: &mut IOF_EN
) -> Pin17<Input<PullUp>>
Configures the pin to operate as a pulled down input pin
pub fn into_output(
self,
output_en: &mut OUTPUT_EN,
drive: &mut DRIVE,
out_xor: &mut OUT_XOR,
iof_en: &mut IOF_EN
) -> Pin17<Output<Regular<NoInvert>>>
[src]
self,
output_en: &mut OUTPUT_EN,
drive: &mut DRIVE,
out_xor: &mut OUT_XOR,
iof_en: &mut IOF_EN
) -> Pin17<Output<Regular<NoInvert>>>
Configures the pin to operate as an output pin
pub fn into_inverted_output(
self,
output_en: &mut OUTPUT_EN,
drive: &mut DRIVE,
out_xor: &mut OUT_XOR,
iof_en: &mut IOF_EN
) -> Pin17<Output<Regular<Invert>>>
[src]
self,
output_en: &mut OUTPUT_EN,
drive: &mut DRIVE,
out_xor: &mut OUT_XOR,
iof_en: &mut IOF_EN
) -> Pin17<Output<Regular<Invert>>>
Configures the pin to operate as an inverted output pin
pub fn into_output_drive(
self,
output_en: &mut OUTPUT_EN,
drive: &mut DRIVE,
out_xor: &mut OUT_XOR,
iof_en: &mut IOF_EN
) -> Pin17<Output<Drive<NoInvert>>>
[src]
self,
output_en: &mut OUTPUT_EN,
drive: &mut DRIVE,
out_xor: &mut OUT_XOR,
iof_en: &mut IOF_EN
) -> Pin17<Output<Drive<NoInvert>>>
Configure the pin to operate as an output pin with high current drive
pub fn into_inverted_output_drive(
self,
output_en: &mut OUTPUT_EN,
drive: &mut DRIVE,
out_xor: &mut OUT_XOR,
iof_en: &mut IOF_EN
) -> Pin17<Output<Drive<Invert>>>
[src]
self,
output_en: &mut OUTPUT_EN,
drive: &mut DRIVE,
out_xor: &mut OUT_XOR,
iof_en: &mut IOF_EN
) -> Pin17<Output<Drive<Invert>>>
Configure the pin to operate as an inverted output pin with high current drive
Trait Implementations
impl<T> TxPin<UART0> for Pin17<IOF0<T>>
[src]
impl<MODE> OutputPin for Pin17<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 Pin17<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 Pin17<Output<MODE>>
[src]
type Error = Infallible
Error type
fn toggle(&mut self) -> Result<(), Infallible>
[src]
Toggles the pin state.
impl<MODE> InputPin for Pin17<Input<MODE>>
[src]
type Error = Infallible
Error type
fn is_high(&self) -> Result<bool, Infallible>
[src]
fn is_low(&self) -> Result<bool, Infallible>
[src]
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> 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> InputPin for T where
T: InputPin,
[src]
T: InputPin,