pub trait Pin {
type DDR: Register<T = u8>;
type PORT: Register<T = u8>;
type PIN: Register<T = u8>;
const OFFSET: u8;
const MASK: u8;
// Provided methods
fn set_direction(direction: DataDirection) { ... }
fn set_input() { ... }
fn set_output() { ... }
fn set_high() { ... }
fn set_low() { ... }
fn toggle() { ... }
fn is_high() -> bool { ... }
fn is_low() -> bool { ... }
}
Expand description
An IO pin.
Required Associated Types§
Required Associated Constants§
Provided Methods§
sourcefn set_direction(direction: DataDirection)
fn set_direction(direction: DataDirection)
Sets the data direction of the pin.
sourcefn set_output()
fn set_output()
Sets the pin up as an output.