[][src]Trait syscall::io::Io

pub trait Io {
    type Value: Copy + PartialEq + BitAnd<Output = Self::Value> + BitOr<Output = Self::Value> + Not<Output = Self::Value>;
    fn read(&self) -> Self::Value;
fn write(&mut self, value: Self::Value); fn readf(&self, flags: Self::Value) -> bool { ... }
fn writef(&mut self, flags: Self::Value, value: bool) { ... } }

Associated Types

type Value: Copy + PartialEq + BitAnd<Output = Self::Value> + BitOr<Output = Self::Value> + Not<Output = Self::Value>

Loading content...

Required methods

fn read(&self) -> Self::Value

fn write(&mut self, value: Self::Value)

Loading content...

Provided methods

fn readf(&self, flags: Self::Value) -> bool

fn writef(&mut self, flags: Self::Value, value: bool)

Loading content...

Implementors

impl Io for Pio<u8>[src]

Read/Write for byte PIO

type Value = u8

fn read(&self) -> u8[src]

Read

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

Write

impl Io for Pio<u16>[src]

Read/Write for word PIO

type Value = u16

fn read(&self) -> u16[src]

Read

fn write(&mut self, value: u16)[src]

Write

impl Io for Pio<u32>[src]

Read/Write for doubleword PIO

type Value = u32

fn read(&self) -> u32[src]

Read

fn write(&mut self, value: u32)[src]

Write

impl<T> Io for Mmio<T> where
    T: Copy + PartialEq + BitAnd<Output = T> + BitOr<Output = T> + Not<Output = T>, 
[src]

type Value = T

Loading content...