[−][src]Struct wiringpi::WiringPi
Methods
impl<P: Pin> WiringPi<P>
[src]
impl<P: Pin> WiringPi<P>
pub fn input_pin(&self, pin: u16) -> InputPin<P>
[src]
pub fn input_pin(&self, pin: u16) -> InputPin<P>
pub fn output_pin(&self, pin: u16) -> OutputPin<P>
[src]
pub fn output_pin(&self, pin: u16) -> OutputPin<P>
pub fn millis(&self) -> u32
[src]
pub fn millis(&self) -> u32
This returns a number representing the number if milliseconds since your program called one of the setup functions.
It returns an unsigned 32-bit number which wraps after 49 days.
pub fn micros(&self) -> u32
[src]
pub fn micros(&self) -> u32
This returns a number representing the number if microseconds since your program called one of the setup functions.
It returns an unsigned 32-bit number which wraps after 71 minutes.
pub fn digital_write_byte(&self, byte: u8)
[src]
pub fn digital_write_byte(&self, byte: u8)
This writes the 8-bit byte supplied to the first 8 GPIO pins. It’s the fastest way to set all 8 bits at once to a particular value, although it still takes two write operations to the Pi’s GPIO hardware.
impl<P: Pwm + Pin> WiringPi<P>
[src]
impl<P: Pwm + Pin> WiringPi<P>
impl<P: GpioClock + Pin> WiringPi<P>
[src]
impl<P: GpioClock + Pin> WiringPi<P>
impl<P: Pin + RequiresRoot> WiringPi<P>
[src]
impl<P: Pin + RequiresRoot> WiringPi<P>
pub fn soft_pwm_pin(&self, pin: u16) -> SoftPwmPin<P>
[src]
pub fn soft_pwm_pin(&self, pin: u16) -> SoftPwmPin<P>
Auto Trait Implementations
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 = !
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>
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>,