1
ARM Processors / Re: FatFs
« Last post by tha on Today at 09:00:46 am »Description
FatFs ต้องการ work area (filesystem object) สำหรับแต่ละ logical drives (FAT volumes). ก่อนดำเนินการ any file/directory operations, a filesystem object จำเป็นต้องถูก registered ด้วย f_mount function สำหรับ the logical drive. The file/directory API functions พร้อมที่จะทำงานหลังจากขบวนการนี้. Some volume management functions, f_mkfs, f_fdisk and f_setcp, ไม่ต้องการ a filesystem object.
The f_mount function รีจีสเตอร์/ยกเลิกการรีจีสเตอร์ a filesystem object ให้กับ the FatFs module ดังต่อไปนี้:
1. กำหนด the logical drive ซึ่งถูกระบุโดย path.
2. เคลียร์และยกเลิกการรีจีสเตอร์ the regsitered work area of the volume ถ้ามีอยู่.
3. เคลียร์และรีจีสเตอร์ the new work area ให้กับ the volume ถ้า fs ไม่เป็น NULL.
4. ดำเนินการ volume mount process ให้กับ the volume ถ้า forced mounting ถูกระบุ.
FatFs ต้องการ work area (filesystem object) สำหรับแต่ละ logical drives (FAT volumes). ก่อนดำเนินการ any file/directory operations, a filesystem object จำเป็นต้องถูก registered ด้วย f_mount function สำหรับ the logical drive. The file/directory API functions พร้อมที่จะทำงานหลังจากขบวนการนี้. Some volume management functions, f_mkfs, f_fdisk and f_setcp, ไม่ต้องการ a filesystem object.
The f_mount function รีจีสเตอร์/ยกเลิกการรีจีสเตอร์ a filesystem object ให้กับ the FatFs module ดังต่อไปนี้:
1. กำหนด the logical drive ซึ่งถูกระบุโดย path.
2. เคลียร์และยกเลิกการรีจีสเตอร์ the regsitered work area of the volume ถ้ามีอยู่.
3. เคลียร์และรีจีสเตอร์ the new work area ให้กับ the volume ถ้า fs ไม่เป็น NULL.
4. ดำเนินการ volume mount process ให้กับ the volume ถ้า forced mounting ถูกระบุ.