#include "conf_explorer.h"
#include "fs_com.h"
#include "fat.h"
#include <LIB_MEM>
#include <LIB_CTRLACCESS>
Go to the source code of this file.
Functions |
bool | fat_select_filesystem (uint8_t u8_fat_type, bool b_MBR) |
bool | fat_write_MBR (void) |
bool | fat_write_PBR (bool b_MBR) |
bool | fat_clean_zone (bool b_MBR) |
bool | fat_initialize_fat (void) |
bool | fat_mount (void) |
| This function mounts a partition file system (FAT12, FAT16 or FAT32) of selected drive.
|
void | fat_get_date (FS_STRING sz_date, bool type_date) |
| This function reads the information about a date.
|
uint32_t | fat_getfreespace (void) |
| This function returns the space free in the partition.
|
uint8_t | fat_getfreespace_percent (void) |
| This function returns the space free in percent.
|
|
void | fat_translatedate_number_to_ascii (FS_STRING sz_date, PTR_CACHE ptr_date, bool enable_ms) |
| This function translates a date FAT value to ascii string.
|
void | fat_translate_number_to_ascii (FS_STRING sz_ascii_number, uint8_t u8_size_number_ascii, uint8_t u8_nb_increment) |
| This function translates a digital number to a ASCII number.
|
void | fat_translatedate_ascii_to_number (const FS_STRING sz_date, PTR_CACHE ptr_date, bool enable_ms) |
uint16_t | fat_translate_ascii_to_number (const FS_STRING sz_ascii_number, uint8_t u8_size_number_ascii) |
|
void | fat_create_long_name_entry (FS_STRING sz_name, uint8_t u8_crc, uint8_t u8_id) |
uint8_t | fat_create_short_entry_name (FS_STRING sz_name, FS_STRING short_name, uint8_t nb, bool mode) |
uint8_t | fat_find_short_entry_name (FS_STRING sz_name) |
bool | fat_entry_shortname_compare (FS_STRING short_name) |
uint8_t | fat_check_name (FS_STRING sz_name) |
uint8_t | fat_translate_char_shortname (uint8_t character) |
bool | fat_alloc_entry_free (uint8_t u8_nb_entry) |
bool | fat_garbage_collector_entry (void) |
Function Documentation
bool fat_alloc_entry_free |
( |
uint8_t |
u8_nb_entry | ) |
|
bool fat_clean_zone |
( |
bool |
b_MBR | ) |
|
void fat_create_long_name_entry |
( |
FS_STRING |
sz_name, |
|
|
uint8_t |
u8_crc, |
|
|
uint8_t |
u8_id |
|
) |
| |
uint8_t fat_create_short_entry_name |
( |
FS_STRING |
sz_name, |
|
|
FS_STRING |
short_name, |
|
|
uint8_t |
nb, |
|
|
bool |
mode |
|
) |
| |
bool fat_entry_shortname_compare |
( |
FS_STRING |
short_name | ) |
|
uint8_t fat_find_short_entry_name |
( |
FS_STRING |
sz_name | ) |
|
bool fat_garbage_collector_entry |
( |
void |
| ) |
|
bool fat_initialize_fat |
( |
void |
| ) |
|
bool fat_select_filesystem |
( |
uint8_t |
u8_fat_type, |
|
|
bool |
b_MBR |
|
) |
| |
uint16_t fat_translate_ascii_to_number |
( |
const FS_STRING |
sz_ascii_number, |
|
|
uint8_t |
u8_size_number_ascii |
|
) |
| |
uint8_t fat_translate_char_shortname |
( |
uint8_t |
character | ) |
|
void fat_translate_number_to_ascii |
( |
FS_STRING |
sz_ascii_number, |
|
|
uint8_t |
u8_size_number_ascii, |
|
|
uint8_t |
u8_nb_increment |
|
) |
| |
- Parameters:
-
sz_ascii_number | ascii string to increment (ex:"1907") |
u8_size_number_ascii | number of digit (ex:4) |
u8_nb_increment | number to add (ex:"102") |
//! OUT, Update sz_ascii_number (ex:"2009")
//!
Definition at line 1315 of file fat_unusual.c.
void fat_translatedate_ascii_to_number |
( |
const FS_STRING |
sz_date, |
|
|
PTR_CACHE |
ptr_date, |
|
|
bool |
enable_ms |
|
) |
| |
void fat_translatedate_number_to_ascii |
( |
FS_STRING |
sz_date, |
|
|
PTR_CACHE |
ptr_date, |
|
|
bool |
enable_ms |
|
) |
| |
- Parameters:
-
sz_date | table to store the date information
storage format (ASCII) = "YYYYMMDDHHMMSSMS" = year, month, day, hour, minute, seconde, miliseconde |
ptr_date | pointer on date in internal cache |
enable_ms | true, translate the millisecond field |
Definition at line 1242 of file fat_unusual.c.
bool fat_write_MBR |
( |
void |
| ) |
|
bool fat_write_PBR |
( |
bool |
b_MBR | ) |
|