[][src]Struct zinc64_core::IoPort

pub struct IoPort { /* fields omitted */ }

Methods

impl IoPort[src]

pub fn new(direction: u8, input: u8) -> Self[src]

pub fn get_direction(&self) -> u8[src]

pub fn get_value(&self) -> u8[src]

pub fn get_value_2(&self, input: u8) -> u8[src]

pub fn set_direction(&mut self, direction: u8)[src]

pub fn set_input(&mut self, value: u8)[src]

pub fn set_input_bit(&mut self, bit: usize, value: bool)[src]

pub fn set_observer(&mut self, observer: Box<dyn Fn(u8)>)[src]

pub fn set_value(&mut self, value: u8)[src]

pub fn reset(&mut self)[src]

Auto Trait Implementations

impl !Send for IoPort

impl !Sync for IoPort

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]