From efa13a879df590ce0043a5b4f97597484bf264e1 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 13 Aug 2014 15:48:16 +1000 Subject: Move 3rd Party source to a new directory. Rationalise Fatfs code and fix a couple of configuration issues. --- 3rdparty/fatfs-0.10b/doc/ja/utime.html | 99 ++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 3rdparty/fatfs-0.10b/doc/ja/utime.html (limited to '3rdparty/fatfs-0.10b/doc/ja/utime.html') diff --git a/3rdparty/fatfs-0.10b/doc/ja/utime.html b/3rdparty/fatfs-0.10b/doc/ja/utime.html new file mode 100644 index 00000000..8bccf652 --- /dev/null +++ b/3rdparty/fatfs-0.10b/doc/ja/utime.html @@ -0,0 +1,99 @@ + + + + + + + + +FatFs - f_utime + + + + +
+

f_utime

+

ファイルまたはサブ・ディレクトリのタイムスタンプを変更します。

+
+FRESULT f_utime (
+  const TCHAR* path,  /* [IN] オブジェクト名へのポインタ */
+  const FILINFO* fno  /* [IN] 設定する日付 */
+);
+
+
+ +
+

引数

+
+
path
+
変更対象のオブジェクトのパス名を示すヌル文字'\0'終端の文字列を指定します。
+
fno
+
設定する日付と時間をfdateftimeメンバに設定されたFILINFO構造体へのポインタ。他のメンバはこの関数では意味を持ちません。
+
+
+ + +
+

戻り値

+

+FR_OK, +FR_DISK_ERR, +FR_INT_ERR, +FR_NOT_READY, +FR_NO_FILE, +FR_NO_PATH, +FR_INVALID_NAME, +FR_WRITE_PROTECTED, +FR_INVALID_DRIVE, +FR_NOT_ENABLED, +FR_NO_FILESYSTEM, +FR_TIMEOUT, +FR_NOT_ENOUGH_CORE +

+
+ + +
+

解説

+

オブジェクトのタイムスタンプを変更します。

+
+ + +
+

使用例

+
+FRESULT set_timestamp (
+    char *obj,     /* ファイル名へのポインタ */
+    int year,
+    int month,
+    int mday,
+    int hour,
+    int min,
+    int sec
+)
+{
+    FILINFO fno;
+
+    fno.fdate = (WORD)(((year - 1980) * 512U) | month * 32U | mday);
+    fno.ftime = (WORD)(hour * 2048U | min * 32U | sec / 2U);
+
+    return f_utime(obj, &fno);
+}
+
+
+ + +
+

対応情報

+

_FS_READONLY == 0で、且つ_FS_MINIMIZE == 0のときに使用可能です。

+
+ + +
+

参照

+

f_stat, FILINFO

+
+ +

戻る

+ + -- cgit v1.2.3