Struct esp_idf_svc::hal::gpio::AnyInputPin
source · pub struct AnyInputPin { /* private fields */ }
Expand description
Generic Gpio input pin
Implementations§
source§impl AnyInputPin
impl AnyInputPin
sourcepub unsafe fn new(pin: i32) -> AnyInputPin
pub unsafe fn new(pin: i32) -> AnyInputPin
§Safety
Care should be taken not to instantiate this Pin, if it is already instantiated and used elsewhere, or if it is not set already in the mode of operation which is being instantiated
sourcepub const fn none() -> Option<AnyInputPin>
pub const fn none() -> Option<AnyInputPin>
Creates an Option<AnyInputPin>::None
for pins that are
optional in APIs.
Trait Implementations§
source§impl From<AnyIOPin> for AnyInputPin
impl From<AnyIOPin> for AnyInputPin
source§fn from(pin: AnyIOPin) -> AnyInputPin
fn from(pin: AnyIOPin) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio0> for AnyInputPin
impl From<Gpio0> for AnyInputPin
source§fn from(pin: Gpio0) -> AnyInputPin
fn from(pin: Gpio0) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio1> for AnyInputPin
impl From<Gpio1> for AnyInputPin
source§fn from(pin: Gpio1) -> AnyInputPin
fn from(pin: Gpio1) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio10> for AnyInputPin
impl From<Gpio10> for AnyInputPin
source§fn from(pin: Gpio10) -> AnyInputPin
fn from(pin: Gpio10) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio11> for AnyInputPin
impl From<Gpio11> for AnyInputPin
source§fn from(pin: Gpio11) -> AnyInputPin
fn from(pin: Gpio11) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio12> for AnyInputPin
impl From<Gpio12> for AnyInputPin
source§fn from(pin: Gpio12) -> AnyInputPin
fn from(pin: Gpio12) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio13> for AnyInputPin
impl From<Gpio13> for AnyInputPin
source§fn from(pin: Gpio13) -> AnyInputPin
fn from(pin: Gpio13) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio14> for AnyInputPin
impl From<Gpio14> for AnyInputPin
source§fn from(pin: Gpio14) -> AnyInputPin
fn from(pin: Gpio14) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio15> for AnyInputPin
impl From<Gpio15> for AnyInputPin
source§fn from(pin: Gpio15) -> AnyInputPin
fn from(pin: Gpio15) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio16> for AnyInputPin
impl From<Gpio16> for AnyInputPin
source§fn from(pin: Gpio16) -> AnyInputPin
fn from(pin: Gpio16) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio17> for AnyInputPin
impl From<Gpio17> for AnyInputPin
source§fn from(pin: Gpio17) -> AnyInputPin
fn from(pin: Gpio17) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio18> for AnyInputPin
impl From<Gpio18> for AnyInputPin
source§fn from(pin: Gpio18) -> AnyInputPin
fn from(pin: Gpio18) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio19> for AnyInputPin
impl From<Gpio19> for AnyInputPin
source§fn from(pin: Gpio19) -> AnyInputPin
fn from(pin: Gpio19) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio2> for AnyInputPin
impl From<Gpio2> for AnyInputPin
source§fn from(pin: Gpio2) -> AnyInputPin
fn from(pin: Gpio2) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio20> for AnyInputPin
impl From<Gpio20> for AnyInputPin
source§fn from(pin: Gpio20) -> AnyInputPin
fn from(pin: Gpio20) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio21> for AnyInputPin
impl From<Gpio21> for AnyInputPin
source§fn from(pin: Gpio21) -> AnyInputPin
fn from(pin: Gpio21) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio3> for AnyInputPin
impl From<Gpio3> for AnyInputPin
source§fn from(pin: Gpio3) -> AnyInputPin
fn from(pin: Gpio3) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio4> for AnyInputPin
impl From<Gpio4> for AnyInputPin
source§fn from(pin: Gpio4) -> AnyInputPin
fn from(pin: Gpio4) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio5> for AnyInputPin
impl From<Gpio5> for AnyInputPin
source§fn from(pin: Gpio5) -> AnyInputPin
fn from(pin: Gpio5) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio6> for AnyInputPin
impl From<Gpio6> for AnyInputPin
source§fn from(pin: Gpio6) -> AnyInputPin
fn from(pin: Gpio6) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio7> for AnyInputPin
impl From<Gpio7> for AnyInputPin
source§fn from(pin: Gpio7) -> AnyInputPin
fn from(pin: Gpio7) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio8> for AnyInputPin
impl From<Gpio8> for AnyInputPin
source§fn from(pin: Gpio8) -> AnyInputPin
fn from(pin: Gpio8) -> AnyInputPin
Converts to this type from the input type.
source§impl From<Gpio9> for AnyInputPin
impl From<Gpio9> for AnyInputPin
source§fn from(pin: Gpio9) -> AnyInputPin
fn from(pin: Gpio9) -> AnyInputPin
Converts to this type from the input type.
source§impl InputPin for AnyInputPin
impl InputPin for AnyInputPin
fn downgrade_input(self) -> AnyInputPin
source§impl Peripheral for AnyInputPin
impl Peripheral for AnyInputPin
§type P = AnyInputPin
type P = AnyInputPin
Peripheral singleton type
source§unsafe fn clone_unchecked(&mut self) -> <AnyInputPin as Peripheral>::P
unsafe fn clone_unchecked(&mut self) -> <AnyInputPin as Peripheral>::P
Unsafely clone (duplicate) a peripheral singleton. Read more