Struct esp_idf_svc::hal::gpio::AnyOutputPin
source · pub struct AnyOutputPin { /* private fields */ }
Expand description
Generic Gpio output pin
Implementations§
source§impl AnyOutputPin
impl AnyOutputPin
sourcepub unsafe fn new(pin: i32) -> AnyOutputPin
pub unsafe fn new(pin: i32) -> AnyOutputPin
§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<AnyOutputPin>
pub const fn none() -> Option<AnyOutputPin>
Creates an Option<AnyOutputPin>::None
for pins that are
optional in APIs.
Trait Implementations§
source§impl From<AnyIOPin> for AnyOutputPin
impl From<AnyIOPin> for AnyOutputPin
source§fn from(pin: AnyIOPin) -> AnyOutputPin
fn from(pin: AnyIOPin) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio0> for AnyOutputPin
impl From<Gpio0> for AnyOutputPin
source§fn from(pin: Gpio0) -> AnyOutputPin
fn from(pin: Gpio0) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio1> for AnyOutputPin
impl From<Gpio1> for AnyOutputPin
source§fn from(pin: Gpio1) -> AnyOutputPin
fn from(pin: Gpio1) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio10> for AnyOutputPin
impl From<Gpio10> for AnyOutputPin
source§fn from(pin: Gpio10) -> AnyOutputPin
fn from(pin: Gpio10) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio11> for AnyOutputPin
impl From<Gpio11> for AnyOutputPin
source§fn from(pin: Gpio11) -> AnyOutputPin
fn from(pin: Gpio11) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio12> for AnyOutputPin
impl From<Gpio12> for AnyOutputPin
source§fn from(pin: Gpio12) -> AnyOutputPin
fn from(pin: Gpio12) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio13> for AnyOutputPin
impl From<Gpio13> for AnyOutputPin
source§fn from(pin: Gpio13) -> AnyOutputPin
fn from(pin: Gpio13) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio14> for AnyOutputPin
impl From<Gpio14> for AnyOutputPin
source§fn from(pin: Gpio14) -> AnyOutputPin
fn from(pin: Gpio14) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio15> for AnyOutputPin
impl From<Gpio15> for AnyOutputPin
source§fn from(pin: Gpio15) -> AnyOutputPin
fn from(pin: Gpio15) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio16> for AnyOutputPin
impl From<Gpio16> for AnyOutputPin
source§fn from(pin: Gpio16) -> AnyOutputPin
fn from(pin: Gpio16) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio17> for AnyOutputPin
impl From<Gpio17> for AnyOutputPin
source§fn from(pin: Gpio17) -> AnyOutputPin
fn from(pin: Gpio17) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio18> for AnyOutputPin
impl From<Gpio18> for AnyOutputPin
source§fn from(pin: Gpio18) -> AnyOutputPin
fn from(pin: Gpio18) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio19> for AnyOutputPin
impl From<Gpio19> for AnyOutputPin
source§fn from(pin: Gpio19) -> AnyOutputPin
fn from(pin: Gpio19) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio2> for AnyOutputPin
impl From<Gpio2> for AnyOutputPin
source§fn from(pin: Gpio2) -> AnyOutputPin
fn from(pin: Gpio2) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio20> for AnyOutputPin
impl From<Gpio20> for AnyOutputPin
source§fn from(pin: Gpio20) -> AnyOutputPin
fn from(pin: Gpio20) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio21> for AnyOutputPin
impl From<Gpio21> for AnyOutputPin
source§fn from(pin: Gpio21) -> AnyOutputPin
fn from(pin: Gpio21) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio3> for AnyOutputPin
impl From<Gpio3> for AnyOutputPin
source§fn from(pin: Gpio3) -> AnyOutputPin
fn from(pin: Gpio3) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio4> for AnyOutputPin
impl From<Gpio4> for AnyOutputPin
source§fn from(pin: Gpio4) -> AnyOutputPin
fn from(pin: Gpio4) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio5> for AnyOutputPin
impl From<Gpio5> for AnyOutputPin
source§fn from(pin: Gpio5) -> AnyOutputPin
fn from(pin: Gpio5) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio6> for AnyOutputPin
impl From<Gpio6> for AnyOutputPin
source§fn from(pin: Gpio6) -> AnyOutputPin
fn from(pin: Gpio6) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio7> for AnyOutputPin
impl From<Gpio7> for AnyOutputPin
source§fn from(pin: Gpio7) -> AnyOutputPin
fn from(pin: Gpio7) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio8> for AnyOutputPin
impl From<Gpio8> for AnyOutputPin
source§fn from(pin: Gpio8) -> AnyOutputPin
fn from(pin: Gpio8) -> AnyOutputPin
Converts to this type from the input type.
source§impl From<Gpio9> for AnyOutputPin
impl From<Gpio9> for AnyOutputPin
source§fn from(pin: Gpio9) -> AnyOutputPin
fn from(pin: Gpio9) -> AnyOutputPin
Converts to this type from the input type.
source§impl OutputPin for AnyOutputPin
impl OutputPin for AnyOutputPin
fn downgrade_output(self) -> AnyOutputPin
source§impl Peripheral for AnyOutputPin
impl Peripheral for AnyOutputPin
§type P = AnyOutputPin
type P = AnyOutputPin
Peripheral singleton type
source§unsafe fn clone_unchecked(&mut self) -> <AnyOutputPin as Peripheral>::P
unsafe fn clone_unchecked(&mut self) -> <AnyOutputPin as Peripheral>::P
Unsafely clone (duplicate) a peripheral singleton. Read more