亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fat16.h

?? 基于STM32的 模擬時序
?? H
字號:
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef FAT16_H
#define FAT16_H

/* Includes ------------------------------------------------------------------*/
#include "main.h"

/**
 * \ingroup fat16_config
 * Controls FAT16 write support.
 *
 * Set to 1 to enable FAT16 write support, set to 0 to disable it.
 */
#define FAT16_WRITE_SUPPORT 1

/**
 * \ingroup fat16_config
 * Controls FAT16 date and time support.
 * 
 * Set to 1 to enable FAT16 date and time stamping support.
 */
#define FAT16_DATETIME_SUPPORT 0

// 設置簇寫的緩沖區大小 64字節屬于一個比較平衡適中的參數 
// 如果內存緊張 可以把這個數值改小 但是 讀寫速度也會降低
#define CLUSTER_BUFFER_SIZE 64

/**
 * \ingroup fat16_config
 * Determines the function used for retrieving current date and time.
 *
 * Define this to the function call which shall be used to retrieve
 * current date and time.
 *
 * \note Used only when FAT16_DATETIME_SUPPORT is 1.
 *
 * \param[out] year Pointer to a \c u16 which receives the current year.
 * \param[out] month Pointer to a \c u8 which receives the current month.
 * \param[out] day Pointer to a \c u8 which receives the current day.
 * \param[out] hour Pointer to a \c u8 which receives the current hour.
 * \param[out] min Pointer to a \c u8 which receives the current minute.
 * \param[out] sec Pointer to a \c u8 which receives the current sec.
 */
#define fat16_get_datetime(year, month, day, hour, min, sec) \
    get_datetime(year, month, day, hour, min, sec)
/* forward declaration for the above */
void get_datetime(u16* year, u8* month, u8* day, u8* hour, u8* min, u8* sec);

/**
 * \ingroup fat16_config
 * Maximum number of filesystem handles.
 */
#define FAT16_FS_COUNT 1

/**
 * \ingroup fat16_config
 * Maximum number of file handles.
 */
#define FAT16_FILE_COUNT 1

/**
 * \ingroup fat16_config
 * Maximum number of directory handles.
 */
#define FAT16_DIR_COUNT 2

////////////////////////////////////////////////////////////////////////////////


/**
 * \addtogroup fat16
 *
 * @{
 */
/**
 * \file
 * FAT16 header (license: GPLv2 or LGPLv2.1)
 *
 * \author Roland Riegel
 */

/**
 * \addtogroup fat16_file
 * @{
 */

/** The file is read-only. */
#define FAT16_ATTRIB_READONLY (1 << 0)
/** The file is hidden. */
#define FAT16_ATTRIB_HIDDEN (1 << 1)
/** The file is a system file. */
#define FAT16_ATTRIB_SYSTEM (1 << 2)
/** The file is empty and has the volume label as its name. */
#define FAT16_ATTRIB_VOLUME (1 << 3)
/** The file is a directory. */
#define FAT16_ATTRIB_DIR (1 << 4)
/** The file has to be archived. */
#define FAT16_ATTRIB_ARCHIVE (1 << 5)

/** The given offset is relative to the beginning of the file. */
#define FAT16_SEEK_SET 0
/** The given offset is relative to the current read/write position. */
#define FAT16_SEEK_CUR 1
/** The given offset is relative to the end of the file. */
#define FAT16_SEEK_END 2

/**
 * @}
 */

struct partition_struct;
struct fat16_fs_struct;
struct fat16_file_struct;
struct fat16_dir_struct;

/**
 * \ingroup fat16_file
 * Describes a directory entry.
 */
struct fat16_dir_entry_struct
{
    /** The file's name, truncated to 31 characters. */
    char long_name[32];
    /** The file's attributes. Mask of the FAT16_ATTRIB_* constants. */
    u8 attributes;
#if FAT16_DATETIME_SUPPORT
    /** Compressed representation of modification time. */
    u16 modification_time;
    /** Compressed representation of modification date. */
    u16 modification_date;
#endif
    /** The cluster in which the file's first byte resides. */
    u16 cluster;
    /** The file's size. */
    u32 file_size;
    /** The total disk offset of this directory entry. */
    u32 entry_offset;
};

struct fat16_fs_struct* fat16_open(struct partition_struct* partition);
void fat16_close(struct fat16_fs_struct* fs);

struct fat16_file_struct* fat16_open_file(struct fat16_fs_struct* fs, const struct fat16_dir_entry_struct* dir_entry);
void fat16_close_file(struct fat16_file_struct* fd);
s16 fat16_read_file(struct fat16_file_struct* fd, u8* buffer, u16 buffer_len);
s16 fat16_write_file(struct fat16_file_struct* fd, const u8* buffer, u16 buffer_len);
u8 fat16_seek_file(struct fat16_file_struct* fd, s32* offset, u8 whence);
u8 fat16_resize_file(struct fat16_file_struct* fd, u32 size);

struct fat16_dir_struct* fat16_open_dir(struct fat16_fs_struct* fs, const struct fat16_dir_entry_struct* dir_entry);
void fat16_close_dir(struct fat16_dir_struct* dd);
u8 fat16_read_dir(struct fat16_dir_struct* dd, struct fat16_dir_entry_struct* dir_entry);
u8 fat16_reset_dir(struct fat16_dir_struct* dd);

u8 fat16_create_file(struct fat16_dir_struct* parent, const char* file, struct fat16_dir_entry_struct* dir_entry);
u8 fat16_delete_file(struct fat16_fs_struct* fs, struct fat16_dir_entry_struct* dir_entry);
u8 fat16_create_dir(struct fat16_dir_struct* parent, const char* dir, struct fat16_dir_entry_struct* dir_entry);
#define fat16_delete_dir fat16_delete_file

void fat16_get_file_modification_date(const struct fat16_dir_entry_struct* dir_entry, u16* year, u8* month, u8* day);
void fat16_get_file_modification_time(const struct fat16_dir_entry_struct* dir_entry, u8* hour, u8* min, u8* sec);

u8 fat16_get_dir_entry_of_path(struct fat16_fs_struct* fs, const char* path, struct fat16_dir_entry_struct* dir_entry);

u32 fat16_get_fs_size(const struct fat16_fs_struct* fs);
u32 fat16_get_fs_free(const struct fat16_fs_struct* fs);


//worm add
u8 print_disk_info(const struct fat16_fs_struct* fs);
u8 find_file_in_dir(struct fat16_fs_struct* fs, struct fat16_dir_struct* dd, const char* name, struct fat16_dir_entry_struct* dir_entry);
struct fat16_file_struct* open_file_in_dir(struct fat16_fs_struct* fs, struct fat16_dir_struct* dd, const char* name);

#endif /* FAT16_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美在线综合网| 国产精品久久久久一区二区三区共| 欧美一区二区三区播放老司机| 精品国产三级a在线观看| 亚洲理论在线观看| 国产91精品一区二区| 欧美久久久一区| 亚洲美女区一区| 国产精品538一区二区在线| 91精品免费观看| 一区二区三区资源| 99re这里都是精品| 国产人成亚洲第一网站在线播放| 蜜桃视频一区二区三区 | 亚洲欧洲精品天堂一级| 免费成人av在线播放| 在线看不卡av| 亚洲美女屁股眼交3| 成人一区二区三区视频| 久久免费偷拍视频| 久久国产乱子精品免费女| 91麻豆精品久久久久蜜臀| 亚洲一区免费观看| 在线视频欧美精品| 亚洲欧美另类小说| 色嗨嗨av一区二区三区| 成人免费在线视频观看| 国产黑丝在线一区二区三区| 日韩免费一区二区三区在线播放| 日韩va欧美va亚洲va久久| 欧美日韩国产另类不卡| 香蕉影视欧美成人| 欧美另类z0zxhd电影| 亚洲chinese男男1069| 欧美日韩中文字幕一区二区| 亚洲在线视频一区| 欧美剧情片在线观看| 日韩成人av影视| 91精品国产色综合久久不卡蜜臀| 免费在线视频一区| 精品久久久久久久久久久久久久久| 另类成人小视频在线| 久久综合九色欧美综合狠狠| 国产一区91精品张津瑜| 国产欧美日韩另类视频免费观看| 大尺度一区二区| 亚洲精选视频在线| 欧美男女性生活在线直播观看| 五月天国产精品| 亚洲精品一区在线观看| 成人免费视频一区二区| 亚洲国产综合色| 日韩一级二级三级| 成人亚洲精品久久久久软件| 亚洲欧美中日韩| 欧美疯狂做受xxxx富婆| 激情综合网最新| 中文字幕一区二区三| 欧美日韩一区二区三区免费看 | 日韩精品1区2区3区| 日韩视频一区在线观看| 国产精品69毛片高清亚洲| 亚洲精品你懂的| 日韩网站在线看片你懂的| 国产91精品一区二区| 五月激情六月综合| 国产精品久久久久桃色tv| 欧美日韩小视频| 成人污污视频在线观看| 天堂午夜影视日韩欧美一区二区| 久久精品一区二区三区四区| 色呦呦网站一区| 国产剧情av麻豆香蕉精品| 亚洲五月六月丁香激情| 国产女人18水真多18精品一级做| 欧美视频一二三区| 从欧美一区二区三区| 日本不卡一区二区| 亚洲视频免费看| 精品国产精品一区二区夜夜嗨| 91激情在线视频| 丁香婷婷综合色啪| 美女视频免费一区| 亚洲第一搞黄网站| 日韩毛片高清在线播放| 久久男人中文字幕资源站| 91精品视频网| 欧美体内she精高潮| 91亚洲精品一区二区乱码| 韩国av一区二区三区四区| 日韩经典一区二区| 亚洲国产中文字幕| 亚洲人123区| 欧美国产一区在线| wwwwxxxxx欧美| 日韩欧美精品在线视频| 欧美日韩国产一级片| 色综合中文字幕| 91年精品国产| 99天天综合性| 成人18视频日本| 国产69精品久久99不卡| 国产伦精品一区二区三区免费| 日本不卡一区二区三区| 日韩精品1区2区3区| 五月天国产精品| 免费观看一级欧美片| 日本大胆欧美人术艺术动态| 午夜精品久久久久久久蜜桃app| 一区二区三区小说| 一个色在线综合| 亚洲一区二三区| 亚洲成国产人片在线观看| 一区二区三区在线免费视频| 亚洲欧美视频在线观看| 亚洲私人黄色宅男| 夜夜嗨av一区二区三区四季av| 亚洲视频你懂的| 亚洲午夜精品一区二区三区他趣| 亚洲国产精品嫩草影院| 日韩精品一二三区| 蜜臀精品久久久久久蜜臀| 精品一区二区三区视频| 国产激情视频一区二区在线观看| 国产精品一品二品| 成人听书哪个软件好| 色婷婷综合久久| 欧美日韩精品久久久| 日韩视频在线观看一区二区| 久久综合狠狠综合| 国产精品久久久久影视| 亚洲精品视频免费看| 午夜精品久久久久久久| 日韩国产欧美一区二区三区| 久久福利视频一区二区| 成人午夜视频免费看| 91麻豆自制传媒国产之光| 欧美日韩国产一级二级| 久久影院视频免费| 亚洲欧美偷拍三级| 欧美aⅴ一区二区三区视频| 国产精品自拍网站| 日本二三区不卡| 91精品国产乱| 国产精品国产成人国产三级 | 中文字幕免费观看一区| 亚洲人一二三区| 激情丁香综合五月| 91啪亚洲精品| 日韩一区二区三区在线| 欧美激情在线观看视频免费| 亚洲日本电影在线| 麻豆专区一区二区三区四区五区| 成人爱爱电影网址| 制服丝袜亚洲精品中文字幕| 久久久电影一区二区三区| 亚洲一二三级电影| 高清不卡在线观看av| 欧美精品 日韩| 中文字幕中文在线不卡住| 美女脱光内衣内裤视频久久影院| 91网站最新地址| 久久噜噜亚洲综合| 日韩精品一级二级| av亚洲精华国产精华精| 久久欧美中文字幕| 日本免费新一区视频| 91国偷自产一区二区开放时间| 久久综合999| 视频精品一区二区| 日本精品视频一区二区| 国产日韩欧美激情| 精品伊人久久久久7777人| 色婷婷亚洲综合| 中国色在线观看另类| 蜜臀av性久久久久蜜臀aⅴ四虎| 一本到不卡免费一区二区| 国产欧美日韩在线视频| 久久av中文字幕片| 91精品国产一区二区三区蜜臀| 樱桃国产成人精品视频| 99视频精品在线| 欧美国产日韩a欧美在线观看| 狠狠狠色丁香婷婷综合激情| 555夜色666亚洲国产免| 亚洲香蕉伊在人在线观| 91蝌蚪porny九色| 中文字幕一区二区三区在线不卡| 国产一区二区三区综合| 日韩精品中午字幕| 日本午夜一区二区| 欧美一区二区三区小说| 五月激情综合婷婷| 日韩一区二区三区四区 | 福利视频网站一区二区三区| 久久夜色精品国产欧美乱极品| 麻豆精品国产91久久久久久| 日韩一区和二区| 九九九精品视频| 精品国免费一区二区三区|