Struct syscall::io::Pio
[−]
[src]
pub struct Pio<T> { /* fields omitted */ }
Generic PIO
Methods
impl<T> Pio<T>
[src]
const fn new(port: u16) -> Self
Create a PIO from a given port
Trait Implementations
impl<T: Copy> Copy for Pio<T>
[src]
impl<T: Clone> Clone for Pio<T>
[src]
fn clone(&self) -> Pio<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Io for Pio<u8>
[src]
Read/Write for byte PIO
type Value = u8
fn read(&self) -> u8
Read
fn write(&mut self, value: u8)
Write
fn readf(&self, flags: Self::Value) -> bool
fn writef(&mut self, flags: Self::Value, value: bool)
impl Io for Pio<u16>
[src]
Read/Write for word PIO
type Value = u16
fn read(&self) -> u16
Read
fn write(&mut self, value: u16)
Write
fn readf(&self, flags: Self::Value) -> bool
fn writef(&mut self, flags: Self::Value, value: bool)
impl Io for Pio<u32>
[src]
Read/Write for doubleword PIO