Struct esp_idf_hal::sys::ff_diskio_impl_t
source · #[repr(C)]pub struct ff_diskio_impl_t {
pub init: Option<unsafe extern "C" fn(_: u8) -> u8>,
pub status: Option<unsafe extern "C" fn(_: u8) -> u8>,
pub read: Option<unsafe extern "C" fn(_: u8, _: *mut u8, _: u32, _: u32) -> u32>,
pub write: Option<unsafe extern "C" fn(_: u8, _: *const u8, _: u32, _: u32) -> u32>,
pub ioctl: Option<unsafe extern "C" fn(_: u8, _: u8, _: *mut c_void) -> u32>,
}
Expand description
Structure of pointers to disk IO driver functions.
See FatFs documentation for details about these functions
Fields§
§init: Option<unsafe extern "C" fn(_: u8) -> u8>
< disk initialization function
status: Option<unsafe extern "C" fn(_: u8) -> u8>
< disk status check function
read: Option<unsafe extern "C" fn(_: u8, _: *mut u8, _: u32, _: u32) -> u32>
< sector read function
write: Option<unsafe extern "C" fn(_: u8, _: *const u8, _: u32, _: u32) -> u32>
< sector write function
ioctl: Option<unsafe extern "C" fn(_: u8, _: u8, _: *mut c_void) -> u32>
< function to get info about disk and do some misc operations
Trait Implementations§
source§impl Clone for ff_diskio_impl_t
impl Clone for ff_diskio_impl_t
source§fn clone(&self) -> ff_diskio_impl_t
fn clone(&self) -> ff_diskio_impl_t
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ff_diskio_impl_t
impl Debug for ff_diskio_impl_t
source§impl Default for ff_diskio_impl_t
impl Default for ff_diskio_impl_t
source§fn default() -> ff_diskio_impl_t
fn default() -> ff_diskio_impl_t
Returns the “default value” for a type. Read more
impl Copy for ff_diskio_impl_t
Auto Trait Implementations§
impl Freeze for ff_diskio_impl_t
impl RefUnwindSafe for ff_diskio_impl_t
impl Send for ff_diskio_impl_t
impl Sync for ff_diskio_impl_t
impl Unpin for ff_diskio_impl_t
impl UnwindSafe for ff_diskio_impl_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)