Trait PinOps

Source
pub trait PinOps {
    type Dynamic;

    // Required methods
    fn into_dynamic(self) -> Self::Dynamic;
    unsafe fn out_set(&mut self);
    unsafe fn out_clear(&mut self);
    unsafe fn out_toggle(&mut self);
    unsafe fn out_get(&self) -> bool;
    unsafe fn in_get(&self) -> bool;
    unsafe fn make_output(&mut self);
    unsafe fn make_input(&mut self, pull_up: bool);
}

Required Associated Types§

Required Methods§

Source

fn into_dynamic(self) -> Self::Dynamic

Source

unsafe fn out_set(&mut self)

Source

unsafe fn out_clear(&mut self)

Source

unsafe fn out_toggle(&mut self)

Source

unsafe fn out_get(&self) -> bool

Source

unsafe fn in_get(&self) -> bool

Source

unsafe fn make_output(&mut self)

Source

unsafe fn make_input(&mut self, pull_up: bool)

Implementations on Foreign Types§

Source§

impl PinOps for Dynamic

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <Dynamic as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PB0

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PB0 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PB1

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PB1 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PB2

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PB2 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PB3

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PB3 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PB4

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PB4 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PB5

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PB5 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PB6

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PB6 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PB7

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PB7 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PC0

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PC0 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PC1

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PC1 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PC2

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PC2 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PC3

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PC3 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PC4

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PC4 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PC5

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PC5 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PC6

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PC6 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PD0

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PD0 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PD1

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PD1 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PD2

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PD2 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PD3

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PD3 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PD4

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PD4 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PD5

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PD5 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PD6

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PD6 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Source§

impl PinOps for PD7

Source§

type Dynamic = Dynamic

Source§

fn into_dynamic(self) -> <PD7 as PinOps>::Dynamic

Source§

unsafe fn out_set(&mut self)

Source§

unsafe fn out_clear(&mut self)

Source§

unsafe fn out_toggle(&mut self)

Source§

unsafe fn out_get(&self) -> bool

Source§

unsafe fn in_get(&self) -> bool

Source§

unsafe fn make_output(&mut self)

Source§

unsafe fn make_input(&mut self, pull_up: bool)

Implementors§

impl PinOps for Dynamic

impl PinOps for PB0

impl PinOps for PB1

impl PinOps for PB2

impl PinOps for PB3

impl PinOps for PB4

impl PinOps for PB5