pub struct SDCard {
offset_sectors: usize,
}Expand description
オンボードのブート用 microSD カード (SDHOST 制御) 用のブロックデバイス実装
Fields§
§offset_sectors: usizeImplementations§
Trait Implementations§
Source§impl BlockDevice for SDCard
impl BlockDevice for SDCard
Source§fn total_sectors(&self) -> usize
fn total_sectors(&self) -> usize
デバイスの総セクタ数を取得します
Source§fn read_raw_sector(
&mut self,
sector: usize,
buf: &mut [u8],
) -> Result<(), &'static str>
fn read_raw_sector( &mut self, sector: usize, buf: &mut [u8], ) -> Result<(), &'static str>
生セクタ (512バイト) の読み込みを行います (チェックサム検証なし)
Source§fn write_raw_sector(
&mut self,
sector: usize,
buf: &[u8],
) -> Result<(), &'static str>
fn write_raw_sector( &mut self, sector: usize, buf: &[u8], ) -> Result<(), &'static str>
生セクタ (512バイト) の書き込みを行います (チェックサム検証なし)
Source§fn should_mirror(&self) -> bool
fn should_mirror(&self) -> bool
データの二重化(ミラーリング)が必要な外部記憶デバイスかどうか
Auto Trait Implementations§
impl Freeze for SDCard
impl RefUnwindSafe for SDCard
impl Send for SDCard
impl Sync for SDCard
impl Unpin for SDCard
impl UnsafeUnpin for SDCard
impl UnwindSafe for SDCard
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