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
Source§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