pub struct DigitalPinAsync { /* private fields */ }
Expand description
Asynchronous equivalent of DigitalPin
.
See avr_rt()
for more details.
Implementations§
Source§impl DigitalPinAsync
impl DigitalPinAsync
Sourcepub fn set(&self, high: bool)
pub fn set(&self, high: bool)
Asynchronous equivalent of DigitalPin::set()
.
Sourcepub fn set_low(&self)
pub fn set_low(&self)
Asynchronous equivalent of DigitalPin::set_low()
.
Sourcepub fn set_high(&self)
pub fn set_high(&self)
Asynchronous equivalent of DigitalPin::set_high()
.
Sourcepub fn toggle(&self)
pub fn toggle(&self)
Asynchronous equivalent of DigitalPin::toggle()
.
Sourcepub fn is_low(&self) -> bool
pub fn is_low(&self) -> bool
Asynchronous equivalent of DigitalPin::is_low()
.
Sourcepub fn is_high(&self) -> bool
pub fn is_high(&self) -> bool
Asynchronous equivalent of DigitalPin::is_high()
.
Sourcepub fn assert_low(&self)
pub fn assert_low(&self)
Asynchronous equivalent of DigitalPin::assert_low()
.
Sourcepub fn assert_high(&self)
pub fn assert_high(&self)
Asynchronous equivalent of DigitalPin::assert_high()
.
Sourcepub async fn pulse_in(&self) -> AvrDuration
pub async fn pulse_in(&self) -> AvrDuration
Asynchronous equivalent of DigitalPin::pulse_in()
.
Sourcepub async fn wait_while_low(&self) -> AvrDuration
pub async fn wait_while_low(&self) -> AvrDuration
Asynchronous equivalent of DigitalPin::wait_while_low()
.
Sourcepub async fn wait_while_high(&self) -> AvrDuration
pub async fn wait_while_high(&self) -> AvrDuration
Asynchronous equivalent of DigitalPin::wait_while_high()
.
Sourcepub fn name(&self) -> String
pub fn name(&self) -> String
Asynchronous equivalent of DigitalPin::name()
.
Auto Trait Implementations§
impl Freeze for DigitalPinAsync
impl RefUnwindSafe for DigitalPinAsync
impl Send for DigitalPinAsync
impl Sync for DigitalPinAsync
impl Unpin for DigitalPinAsync
impl UnwindSafe for DigitalPinAsync
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more