Struct driver_block::bcm2835sdhci::SDHCIDriver  
source · pub struct SDHCIDriver(_);Available on crate feature 
bcm2835-sdhci only.Expand description
BCM2835 SDHCI driver (Raspberry Pi SD card).
Implementations§
source§impl SDHCIDriver
 
impl SDHCIDriver
sourcepub fn try_new() -> DevResult<SDHCIDriver>
 
pub fn try_new() -> DevResult<SDHCIDriver>
Initialize the SDHCI driver, returns Ok if successful.
Trait Implementations§
source§impl BaseDriverOps for SDHCIDriver
 
impl BaseDriverOps for SDHCIDriver
source§fn device_type(&self) -> DeviceType
 
fn device_type(&self) -> DeviceType
The type of the device.
source§fn device_name(&self) -> &str
 
fn device_name(&self) -> &str
The name of the device.
source§impl BlockDriverOps for SDHCIDriver
 
impl BlockDriverOps for SDHCIDriver
source§fn read_block(&mut self, block_id: u64, buf: &mut [u8]) -> DevResult
 
fn read_block(&mut self, block_id: u64, buf: &mut [u8]) -> DevResult
Reads blocked data from the given block. Read more
source§fn write_block(&mut self, block_id: u64, buf: &[u8]) -> DevResult
 
fn write_block(&mut self, block_id: u64, buf: &[u8]) -> DevResult
Writes blocked data to the given block. Read more
source§fn num_blocks(&self) -> u64
 
fn num_blocks(&self) -> u64
The number of blocks in this storage device. Read more
source§fn block_size(&self) -> usize
 
fn block_size(&self) -> usize
The size of each block in bytes.
Auto Trait Implementations§
impl RefUnwindSafe for SDHCIDriver
impl Send for SDHCIDriver
impl Sync for SDHCIDriver
impl Unpin for SDHCIDriver
impl !UnwindSafe for SDHCIDriver
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more