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

pub trait Io {
    type Value: Copy + PartialEq + BitAnd<Output = Self::Value> + BitOr<Output = Self::Value> + Not<Output = Self::Value>;
    pub fn read(&self) -> Self::Value;
pub fn write(&mut self, value: Self::Value); pub fn readf(&self, flags: Self::Value) -> bool { ... }
pub 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>[src]

Loading content...

Required methods

pub fn read(&self) -> Self::Value[src]

pub fn write(&mut self, value: Self::Value)[src]

Loading content...

Provided methods

pub fn readf(&self, flags: Self::Value) -> bool[src]

pub fn writef(&mut self, flags: Self::Value, value: bool)[src]

Loading content...

Implementors

impl Io for Pio<u8>[src]

Read/Write for byte PIO

type Value = u8

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

Read

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

Write

impl Io for Pio<u16>[src]

Read/Write for word PIO

type Value = u16

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

Read

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

Write

impl Io for Pio<u32>[src]

Read/Write for doubleword PIO

type Value = u32

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

Read

pub 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...