1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Bindings to [ChaN's FatFs][FatFs].
//!
//! [FatFs]: http://elm-chan.org/fsw/ff/00index_e.html

#![doc(html_root_url = "https://docs.rs/drone-fatfs-raw/0.2.3")]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![no_std]

extern crate drone_ctypes;

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

#[inline(always)]
pub unsafe fn f_size(fp: *mut FIL) -> FSIZE_t {
  (*fp).obj.objsize
}

#[inline(always)]
pub unsafe fn f_tell(fp: *mut FIL) -> FSIZE_t {
  (*fp).fptr
}