|
发表于 2010-10-20 23:36:11
|
显示全部楼层
举例说明吧
enum {
NAV_ID_0 = 0,
NAV_ID_1
}
在NAV_ID_0打开file_name_0
nav_select(NAV_ID_0);
nav_drive_set(nav_drive_nb() -1);
nav_partition_mount();
nav_checkdisk_disable(); /* Skip fat_check_device() for every read */
nav_filelist_reset();
nav_filelist_findname("file_name_0", FALSE));
file_open(FOPEN_MODE_R);
在NAV_ID_1打开file_name_1
nav_select(NAV_ID_1);
nav_drive_set(nav_drive_nb() -1);
nav_partition_mount();
nav_checkdisk_disable(); /* Skip fat_check_device() for every read */
nav_filelist_reset();
nav_filelist_findname("file_name_1", FALSE));
file_open(FOPEN_MODE_R);
读file_name_0
nav_select(NAV_ID_0);
file_seek(offset, FS_SEEK_SET);
file_read_buf(buf, BYTE_CNT);
读file_name_1
nav_select(NAV_ID_1);
file_seek(offset, FS_SEEK_SET);
file_read_buf(buf, BYTE_CNT);
以上是菜鸟代码,望大牛斧正,谢谢 |
|