Struct riot_wrappers::gpio::InOutGPIO
source · pub struct InOutGPIO(/* private fields */);
Available on
riot_module_periph_gpio
only.Expand description
A GPIO configured and usable for input and output
Implementations§
source§impl InOutGPIO
impl InOutGPIO
sourcepub fn to_c(&self) -> gpio_t
pub fn to_c(&self) -> gpio_t
See GPIO::to_c
sourcepub fn deconfigured(self) -> GPIO
pub fn deconfigured(self) -> GPIO
Lose information about how the pin is configured, making it configurable again
pub fn set_high(&mut self)
pub fn set_low(&mut self)
pub fn set_state(&mut self, state: bool)
pub fn is_high(&self) -> bool
pub fn is_low(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InOutGPIO
impl Send for InOutGPIO
impl Sync for InOutGPIO
impl Unpin for InOutGPIO
impl UnwindSafe for InOutGPIO
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