Trait arduino_hal::port::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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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§