[−][src]Struct wiringpi::pin::OutputPin
Methods
impl<P: Pin> OutputPin<P>
[src]
impl<P: Pin> OutputPin<P>
pub fn new(pin: c_int) -> OutputPin<P>
[src]
pub fn new(pin: c_int) -> OutputPin<P>
pub fn number(&self) -> c_int
[src]
pub fn number(&self) -> c_int
pub fn digital_write(&self, value: Value)
[src]
pub fn digital_write(&self, value: Value)
Writes the value High
or Low
(1 or 0) to the given pin which must have been previously set as an output.
pub fn analog_write(&self, value: u16)
[src]
pub fn analog_write(&self, value: u16)
This writes the given value to the supplied analog pin. You will need to register additional analog modules to enable this function for devices such as the Gertboard.
impl<P: Pin + RequiresRoot> OutputPin<P>
[src]
impl<P: Pin + RequiresRoot> OutputPin<P>
pub fn into_soft_pwm(self) -> SoftPwmPin<P>
[src]
pub fn into_soft_pwm(self) -> SoftPwmPin<P>
impl<P: Pin + RequiresRoot> OutputPin<P>
[src]
impl<P: Pin + RequiresRoot> OutputPin<P>
pub fn into_input(self) -> InputPin<P>
[src]
pub fn into_input(self) -> InputPin<P>
impl<P: Pin + Pwm> OutputPin<P>
[src]
impl<P: Pin + Pwm> OutputPin<P>
impl<P: Pin + GpioClock> OutputPin<P>
[src]
impl<P: Pin + GpioClock> OutputPin<P>
pub fn into_clock(self) -> ClockPin<P>
[src]
pub fn into_clock(self) -> ClockPin<P>
Auto Trait Implementations
impl<Pin> Send for OutputPin<Pin> where
Pin: Send,
impl<Pin> Send for OutputPin<Pin> where
Pin: Send,
impl<Pin> Sync for OutputPin<Pin> where
Pin: Sync,
impl<Pin> Sync for OutputPin<Pin> where
Pin: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,