Struct modulus::disk::ata::Ata [] [src]

pub struct Ata {
    pub slave: bool,
    // some fields omitted
}

Fields

slave

Methods

impl Ata
[src]

fn new(base: u16, slave: bool) -> Self

fn identify(&self) -> Option<[u8; 512]>

IDENTIFY command

Returns information about a drive if it exists.

Trait Implementations

impl Disk for Ata
[src]

fn read(&self, block: u64, count: u16, buffer: &mut [u8])

Read 48

Read from disk using a 48-bit LBA (address) and write contents into buffer

fn write(&self, block: u64, count: u16, buffer: &[u8])

Write 48

Write contents of buffer to disk using a 48-bit LBA (address)