pub struct AnyPin<MODE, TYPE = ()> { /* private fields */ }Implementations§
source§impl<MODE> AnyPin<MODE, InputOutputPinType>
impl<MODE> AnyPin<MODE, InputOutputPinType>
pub fn into_input_type(self) -> AnyPin<MODE, InputOnlyPinType>
source§impl<MODE> AnyPin<MODE, InputOutputAnalogPinType>
impl<MODE> AnyPin<MODE, InputOutputAnalogPinType>
pub fn into_input_type(self) -> AnyPin<MODE, InputOnlyPinType>
pub fn into_input_output_type(self) -> AnyPin<MODE, InputOutputPinType>
pub fn into_input_only_analog_type(self) -> AnyPin<MODE, InputOnlyAnalogPinType>
Trait Implementations§
source§impl<MODE, TYPE> InputPin for AnyPin<MODE, TYPE>where
MODE: InputMode,
TYPE: IsInputPin,
impl<MODE, TYPE> InputPin for AnyPin<MODE, TYPE>where
MODE: InputMode,
TYPE: IsInputPin,
fn set_to_input(&mut self) -> &mut Self
fn enable_input(&mut self, on: bool) -> &mut Self
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
fn is_input_high(&self) -> bool
fn connect_input_to_peripheral(&mut self, signal: InputSignal) -> &mut Self
fn connect_input_to_peripheral_with_options( &mut self, signal: InputSignal, invert: bool, force_via_gpio_mux: bool ) -> &mut Self
source§fn disconnect_input_from_peripheral(&mut self, signal: InputSignal) -> &mut Self
fn disconnect_input_from_peripheral(&mut self, signal: InputSignal) -> &mut Self
Remove a connected
signal from this input pin. Read moresource§impl<MODE, TYPE> OutputPin for AnyPin<MODE, TYPE>where
MODE: OutputMode,
TYPE: IsOutputPin,
impl<MODE, TYPE> OutputPin for AnyPin<MODE, TYPE>where
MODE: OutputMode,
TYPE: IsOutputPin,
fn set_to_open_drain_output(&mut self) -> &mut Self
fn set_to_push_pull_output(&mut self) -> &mut Self
fn enable_output(&mut self, on: bool) -> &mut Self
fn set_output_high(&mut self, on: bool) -> &mut Self
fn set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self
fn enable_open_drain(&mut self, on: bool) -> &mut Self
fn enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self
fn internal_pull_up_in_sleep_mode(&mut self, on: bool) -> &mut Self
fn internal_pull_down_in_sleep_mode(&mut self, on: bool) -> &mut Self
fn internal_pull_up(&mut self, on: bool) -> &mut Self
fn internal_pull_down(&mut self, on: bool) -> &mut Self
fn connect_peripheral_to_output(&mut self, signal: OutputSignal) -> &mut Self
fn connect_peripheral_to_output_with_options( &mut self, signal: OutputSignal, invert: bool, invert_enable: bool, enable_from_gpio: bool, force_via_gpio_mux: bool ) -> &mut Self
source§impl<MODE, TYPE> Peripheral for AnyPin<MODE, TYPE>where
TYPE: PinType,
impl<MODE, TYPE> Peripheral for AnyPin<MODE, TYPE>where
TYPE: PinType,
source§impl<MODE, TYPE> Pin for AnyPin<MODE, TYPE>where
TYPE: PinType,
impl<MODE, TYPE> Pin for AnyPin<MODE, TYPE>where
TYPE: PinType,
fn number(&self) -> u8
fn sleep_mode(&mut self, on: bool)
fn set_alternate_function(&mut self, alternate: AlternateFunction)
source§fn is_listening(&self) -> bool
fn is_listening(&self) -> bool
Checks if listening for interrupts is enabled for this Pin
source§fn listen_with_options(
&mut self,
event: Event,
int_enable: bool,
nmi_enable: bool,
wake_up_from_light_sleep: bool
)
fn listen_with_options( &mut self, event: Event, int_enable: bool, nmi_enable: bool, wake_up_from_light_sleep: bool )
Listen for interrupts
source§fn is_interrupt_set(&self) -> bool
fn is_interrupt_set(&self) -> bool
Checks if the interrupt status bit for this Pin is set
source§fn clear_interrupt(&mut self)
fn clear_interrupt(&mut self)
Clear the interrupt status bit for this Pin
source§impl<MODE, TYPE> StatefulOutputPin for AnyPin<Output<MODE>, TYPE>
impl<MODE, TYPE> StatefulOutputPin for AnyPin<Output<MODE>, TYPE>
source§impl<MODE, TYPE> StatefulOutputPin for AnyPin<Output<MODE>, TYPE>
impl<MODE, TYPE> StatefulOutputPin for AnyPin<Output<MODE>, TYPE>
source§impl<MODE, TYPE> ToggleableOutputPin for AnyPin<Output<MODE>, TYPE>
impl<MODE, TYPE> ToggleableOutputPin for AnyPin<Output<MODE>, TYPE>
Auto Trait Implementations§
impl<MODE, TYPE> Freeze for AnyPin<MODE, TYPE>
impl<MODE, TYPE> RefUnwindSafe for AnyPin<MODE, TYPE>where
MODE: RefUnwindSafe,
TYPE: RefUnwindSafe,
impl<MODE, TYPE> Send for AnyPin<MODE, TYPE>
impl<MODE, TYPE> Sync for AnyPin<MODE, TYPE>
impl<MODE, TYPE> Unpin for AnyPin<MODE, TYPE>
impl<MODE, TYPE> UnwindSafe for AnyPin<MODE, TYPE>where
MODE: UnwindSafe,
TYPE: 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