pub trait Pin {
// Required methods
fn set_mode(&self, mode: PinMode);
fn toggle(&self);
fn set_high(&self);
fn set_low(&self);
fn set(&self, high: bool);
fn get(&self) -> bool;
fn set_interrupt_mode(&self, mode: InterruptMode);
fn listen(&'static self, handler: PinIsrCallback);
}
Required Methods§
sourcefn set(&self, high: bool)
fn set(&self, high: bool)
Set the pin’s output according to the boolean (true == high, false == low)
sourcefn set_interrupt_mode(&self, mode: InterruptMode)
fn set_interrupt_mode(&self, mode: InterruptMode)
Set when this pin will generate interrupts
sourcefn listen(&'static self, handler: PinIsrCallback)
fn listen(&'static self, handler: PinIsrCallback)
Add a handler to be called when this pin generates an interrupt