syscall::io

Trait Io

source
pub trait Io {
    type Value: Copy + PartialEq + BitAnd<Output = Self::Value> + BitOr<Output = Self::Value> + Not<Output = Self::Value>;

    // Required methods
    fn read(&self) -> Self::Value;
    fn write(&mut self, value: Self::Value);

    // Provided methods
    fn readf(&self, flags: Self::Value) -> bool { ... }
    fn writef(&mut self, flags: Self::Value, value: bool) { ... }
}

Required Associated Types§

source

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

Required Methods§

source

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

source

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

Provided Methods§

source

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

source

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

Implementors§

source§

impl Io for Mmio<u8>

source§

impl Io for Mmio<u16>

source§

impl Io for Mmio<u32>

source§

impl Io for Mmio<u64>

source§

impl Io for Pio<u8>

Read/Write for byte PIO

source§

impl Io for Pio<u16>

Read/Write for word PIO

source§

impl Io for Pio<u32>

Read/Write for doubleword PIO