Struct esp_idf_sys::ff_diskio_impl_t
source · #[repr(C)]pub struct ff_diskio_impl_t {
pub init: Option<unsafe extern "C" fn(pdrv: c_uchar) -> DSTATUS>,
pub status: Option<unsafe extern "C" fn(pdrv: c_uchar) -> DSTATUS>,
pub read: Option<unsafe extern "C" fn(pdrv: c_uchar, buff: *mut c_uchar, sector: u32, count: c_uint) -> DRESULT>,
pub write: Option<unsafe extern "C" fn(pdrv: c_uchar, buff: *const c_uchar, sector: u32, count: c_uint) -> DRESULT>,
pub ioctl: Option<unsafe extern "C" fn(pdrv: c_uchar, cmd: c_uchar, buff: *mut c_void) -> DRESULT>,
}
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(pdrv: c_uchar) -> DSTATUS>
< disk initialization function
status: Option<unsafe extern "C" fn(pdrv: c_uchar) -> DSTATUS>
< disk status check function
read: Option<unsafe extern "C" fn(pdrv: c_uchar, buff: *mut c_uchar, sector: u32, count: c_uint) -> DRESULT>
< sector read function
write: Option<unsafe extern "C" fn(pdrv: c_uchar, buff: *const c_uchar, sector: u32, count: c_uint) -> DRESULT>
< sector write function
ioctl: Option<unsafe extern "C" fn(pdrv: c_uchar, cmd: c_uchar, buff: *mut c_void) -> DRESULT>
< 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
)