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