| UbixOS
    2.0
    | 

Go to the source code of this file.
| Macros | |
| #define | FAT16_GET_16BIT_WORD(pbuf, location) ( GET_16BIT_WORD(pbuf->ptr, location) ) | 
| #define | FAT16_SET_16BIT_WORD(pbuf, location, value) { SET_16BIT_WORD(pbuf->ptr, location, value); pbuf->dirty = 1; } | 
| #define | FAT32_GET_32BIT_WORD(pbuf, location) ( GET_32BIT_WORD(pbuf->ptr, location) ) | 
| #define | FAT32_SET_32BIT_WORD(pbuf, location, value) { SET_32BIT_WORD(pbuf->ptr, location, value); pbuf->dirty = 1; } | 
| Functions | |
| uint32 | fatfs_count_free_clusters (struct fatfs *fs) | 
| int | fatfs_fat_add_cluster_to_chain (struct fatfs *fs, uint32 start_cluster, uint32 newEntry) | 
| void | fatfs_fat_init (struct fatfs *fs) | 
| int | fatfs_fat_purge (struct fatfs *fs) | 
| int | fatfs_fat_set_cluster (struct fatfs *fs, uint32 cluster, uint32 next_cluster) | 
| int | fatfs_find_blank_cluster (struct fatfs *fs, uint32 start_cluster, uint32 *free_cluster) | 
| uint32 | fatfs_find_next_cluster (struct fatfs *fs, uint32 current_cluster) | 
| int | fatfs_free_cluster_chain (struct fatfs *fs, uint32 start_cluster) | 
| void | fatfs_set_fs_info_next_free_cluster (struct fatfs *fs, uint32 newValue) | 
| #define FAT16_GET_16BIT_WORD | ( | pbuf, | |
| location | |||
| ) | ( GET_16BIT_WORD(pbuf->ptr, location) ) | 
Definition at line 54 of file fat_table.c.
| #define FAT16_SET_16BIT_WORD | ( | pbuf, | |
| location, | |||
| value | |||
| ) | { SET_16BIT_WORD(pbuf->ptr, location, value); pbuf->dirty = 1; } | 
Definition at line 55 of file fat_table.c.
| #define FAT32_GET_32BIT_WORD | ( | pbuf, | |
| location | |||
| ) | ( GET_32BIT_WORD(pbuf->ptr, location) ) | 
Definition at line 52 of file fat_table.c.
| #define FAT32_SET_32BIT_WORD | ( | pbuf, | |
| location, | |||
| value | |||
| ) | { SET_32BIT_WORD(pbuf->ptr, location, value); pbuf->dirty = 1; } | 
Definition at line 53 of file fat_table.c.
Definition at line 445 of file fat_table.c.
Definition at line 414 of file fat_table.c.
References FAT32_LAST_CLUSTER, fatfs_fat_set_cluster(), and fatfs_find_next_cluster().

| void fatfs_fat_init | ( | struct fatfs * | fs | ) | 
Definition at line 60 of file fat_table.c.
References FAT32_INVALID_CLUSTER, FAT_BUFFERS, memset(), and NULL.
Referenced by fatfs_format_fat16(), fatfs_format_fat32(), and fatfs_init().

| int fatfs_fat_purge | ( | struct fatfs * | fs | ) | 
Definition at line 179 of file fat_table.c.
References fat_buffer::dirty.
Definition at line 349 of file fat_table.c.
References FAT_TYPE_16.
Referenced by fatfs_add_free_space(), fatfs_allocate_free_space(), fatfs_fat_add_cluster_to_chain(), and fatfs_free_cluster_chain().
Definition at line 288 of file fat_table.c.
References FAT_TYPE_16.
Referenced by fatfs_add_free_space(), and fatfs_allocate_free_space().
Definition at line 205 of file fat_table.c.
References FAT_TYPE_16.
Referenced by fatfs_fat_add_cluster_to_chain(), fatfs_free_cluster_chain(), and fatfs_sector_reader().
Definition at line 389 of file fat_table.c.
References FAT32_LAST_CLUSTER, fatfs_fat_set_cluster(), and fatfs_find_next_cluster().

Definition at line 260 of file fat_table.c.
References FAT_TYPE_16.
Referenced by fatfs_add_free_space(), and fatfs_allocate_free_space().