Struct avr_tester::DigitalPinAsync
source · 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(&mut self)
pub fn toggle(&mut self)
Asynchronous equivalent of DigitalPin::toggle()
.
sourcepub fn is_low(&mut self) -> bool
pub fn is_low(&mut self) -> bool
Asynchronous equivalent of DigitalPin::is_low()
.
sourcepub fn is_high(&mut self) -> bool
pub fn is_high(&mut self) -> bool
Asynchronous equivalent of DigitalPin::is_high()
.
sourcepub fn assert_low(&mut self)
pub fn assert_low(&mut self)
Asynchronous equivalent of DigitalPin::assert_low()
.
sourcepub fn assert_high(&mut self)
pub fn assert_high(&mut self)
Asynchronous equivalent of DigitalPin::assert_high()
.
sourcepub async fn pulse_in(&mut self) -> AvrDuration
pub async fn pulse_in(&mut self) -> AvrDuration
Asynchronous equivalent of DigitalPin::pulse_in()
.
sourcepub async fn wait_while_low(&mut self) -> AvrDuration
pub async fn wait_while_low(&mut self) -> AvrDuration
Asynchronous equivalent of DigitalPin::wait_while_low()
.
sourcepub async fn wait_while_high(&mut self) -> AvrDuration
pub async fn wait_while_high(&mut self) -> AvrDuration
Asynchronous equivalent of DigitalPin::wait_while_high()
.
sourcepub fn name(&self) -> String
pub fn name(&self) -> String
Asynchronous equivalent of DigitalPin::name()
.