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
sourceimpl Clone for ff_diskio_impl_t
impl Clone for ff_diskio_impl_t
sourcefn clone(&self) -> ff_diskio_impl_t
fn clone(&self) -> ff_diskio_impl_t
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ff_diskio_impl_t
impl Debug for ff_diskio_impl_t
sourceimpl Default for ff_diskio_impl_t
impl Default for ff_diskio_impl_t
sourcefn 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 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> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more