pub struct Pin2<MODE> { /* private fields */ }Expand description
Pin
Implementations§
Source§impl<MODE> Pin2<MODE>
impl<MODE> Pin2<MODE>
Sourcepub fn into_floating_output(self) -> Pin2<Output<Floating>>
pub fn into_floating_output(self) -> Pin2<Output<Floating>>
Configures the pin to operate as a Hi-Z floating output pin.
Sourcepub fn into_pull_up_output(self) -> Pin2<Output<PullUp>>
pub fn into_pull_up_output(self) -> Pin2<Output<PullUp>>
Configures the pin to operate as a pull-up output pin.
Sourcepub fn into_pull_down_output(self) -> Pin2<Output<PullDown>>
pub fn into_pull_down_output(self) -> Pin2<Output<PullDown>>
Configures the pin to operate as a pull-down output pin.
Sourcepub fn into_floating_input(self) -> Pin2<Input<Floating>>
pub fn into_floating_input(self) -> Pin2<Input<Floating>>
Configures the pin to operate as a Hi-Z floating input pin.
Sourcepub fn into_pull_up_input(self) -> Pin2<Input<PullUp>>
pub fn into_pull_up_input(self) -> Pin2<Input<PullUp>>
Configures the pin to operate as a pull-up input pin.
Sourcepub fn into_pull_down_input(self) -> Pin2<Input<PullDown>>
pub fn into_pull_down_input(self) -> Pin2<Input<PullDown>>
Configures the pin to operate as a pull-down input pin.
Source§impl<MODE> Pin2<Input<MODE>>
impl<MODE> Pin2<Input<MODE>>
Sourcepub fn enable_smitter(&mut self)
pub fn enable_smitter(&mut self)
Enable smitter GPIO input filter
Sourcepub fn disable_smitter(&mut self)
pub fn disable_smitter(&mut self)
Enable smitter GPIO output filter
Source§impl<MODE> Pin2<MODE>
impl<MODE> Pin2<MODE>
Sourcepub fn into_uart_sig2(self) -> Pin2<Uart>
pub fn into_uart_sig2(self) -> Pin2<Uart>
Configures the pin to UART alternate mode
Sourcepub fn into_spi_ss(self) -> Pin2<Spi>
pub fn into_spi_ss(self) -> Pin2<Spi>
Configures the pin to SPI alternate mode
Sourcepub fn into_i2c_scl(self) -> Pin2<I2c>
pub fn into_i2c_scl(self) -> Pin2<I2c>
Configures the pin to I2C alternate mode
Trait Implementations§
Source§impl<MODE> InterruptPin for Pin2<Input<MODE>>
impl<MODE> InterruptPin for Pin2<Input<MODE>>
fn trigger_on_event(&mut self, event: Event)
fn control_asynchronous(&mut self)
fn control_synchronous(&mut self)
fn enable_interrupt(&mut self)
fn disable_interrupt(&mut self)
fn clear_interrupt_pending_bit(&mut self)
fn check_interrupt(&self) -> bool
Source§impl<MODE> StatefulOutputPin for Pin2<Output<MODE>>
impl<MODE> StatefulOutputPin for Pin2<Output<MODE>>
Source§impl<MODE> StatefulOutputPin for Pin2<Output<MODE>>
impl<MODE> StatefulOutputPin for Pin2<Output<MODE>>
Source§impl<MODE> ToggleableOutputPin for Pin2<Output<MODE>>
impl<MODE> ToggleableOutputPin for Pin2<Output<MODE>>
Auto Trait Implementations§
impl<MODE> Freeze for Pin2<MODE>
impl<MODE> RefUnwindSafe for Pin2<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for Pin2<MODE>where
MODE: Send,
impl<MODE> Sync for Pin2<MODE>where
MODE: Sync,
impl<MODE> Unpin for Pin2<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for Pin2<MODE>where
MODE: UnwindSafe,
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