sfile.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html lang="ja">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
  5. <meta http-equiv="Content-Style-Type" content="text/css">
  6. <link rel="up" title="FatFs" href="../00index_j.html">
  7. <link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
  8. <title>FatFs - FIL</title>
  9. </head>
  10. <body>
  11. <div class="para">
  12. <h2>FIL</h2>
  13. <p><tt>FIL</tt>構造体は、f_open()で作成され、そのファイルの状態を保持します。アプリケーションから書き換え可能なメンバはありません。</p>
  14. <h4>FatFs</h4>
  15. <pre>
  16. typedef struct _FIL {
  17. WORD id; /* Owner file system mount ID (inverted) */
  18. BYTE flag; /* File status flags */
  19. BYTE csect; /* Sector address in the cluster */
  20. FATFS* fs; /* Pointer to the owner file system object */
  21. DWORD fptr; /* File R/W pointer */
  22. DWORD fsize; /* File size */
  23. DWORD org_clust; /* File start cluster */
  24. DWORD curr_clust; /* Current cluster */
  25. DWORD curr_sect; /* Current sector */
  26. DWORD dir_sect; /* Sector containing the directory entry */
  27. BYTE* dir_ptr; /* Ponter to the directory entry in the window */
  28. BYTE buffer[512]; /* File R/W buffer */
  29. } FIL;
  30. </pre>
  31. <h4>Tiny-FatFs</h4>
  32. <pre>
  33. typedef struct _FIL {
  34. WORD id; /* Owner file system mount ID (inverted) */
  35. BYTE flag; /* File status flags */
  36. BYTE csect; /* Sector address in the cluster */
  37. FATFS* fs; /* Pointer to owner file system */
  38. DWORD fptr; /* File R/W pointer */
  39. DWORD fsize; /* File size */
  40. CLUST org_clust; /* File start cluster */
  41. CLUST curr_clust; /* Current cluster */
  42. DWORD curr_sect; /* Current sector */
  43. DWORD dir_sect; /* Sector containing the directory entry */
  44. BYTE* dir_ptr; /* Ponter to the directory entry in the window */
  45. } FIL;
  46. </pre>
  47. </div>
  48. <p class="foot"><a href="../00index_j.html">戻る</a></p>
  49. </body>
  50. </html>