Hanna
Sourcecode Batteriemanagementsystem |
Funktionen | |
void | fat_close_dir (struct fat_dir_struct *dd) |
uint8_t | fat_create_dir (struct fat_dir_struct *parent, const char *dir, struct fat_dir_entry_struct *dir_entry) |
struct fat_dir_struct * | fat_open_dir (struct fat_fs_struct *fs, const struct fat_dir_entry_struct *dir_entry) |
uint8_t | fat_read_dir (struct fat_dir_struct *dd, struct fat_dir_entry_struct *dir_entry) |
uint8_t | fat_reset_dir (struct fat_dir_struct *dd) |
Functions for managing directories.
void fat_close_dir | ( | struct fat_dir_struct * | dd | ) |
Closes a directory descriptor.
This function destroys a directory descriptor which was previously obtained by calling fat_open_dir(). When this function returns, the given descriptor will be invalid.
[in] | dd | The directory descriptor to close. |
Definiert in Zeile 1363 der Datei fat.c.
uint8_t fat_create_dir | ( | struct fat_dir_struct * | parent, |
const char * | dir, | ||
struct fat_dir_entry_struct * | dir_entry | ||
) |
Creates a directory.
Creates a directory and obtains its directory entry. If the directory to create already exists, its directory entry will be returned within the dir_entry parameter.
[in] | parent | The handle of the parent directory of the new directory. |
[in] | dir | The name of the directory to create. |
[out] | dir_entry | The directory entry to fill for the new directory. |
Definiert in Zeile 2139 der Datei fat.c.
struct fat_dir_struct* fat_open_dir | ( | struct fat_fs_struct * | fs, |
const struct fat_dir_entry_struct * | dir_entry | ||
) |
Opens a directory.
[in] | fs | The filesystem on which the directory to open resides. |
[in] | dir_entry | The directory entry which stands for the directory to open. |
Definiert in Zeile 1324 der Datei fat.c.
uint8_t fat_read_dir | ( | struct fat_dir_struct * | dd, |
struct fat_dir_entry_struct * | dir_entry | ||
) |
Reads the next directory entry contained within a parent directory.
[in] | dd | The descriptor of the parent directory from which to read the entry. |
[out] | dir_entry | Pointer to a buffer into which to write the directory entry information. |
Definiert in Zeile 1382 der Datei fat.c.
uint8_t fat_reset_dir | ( | struct fat_dir_struct * | dd | ) |
Resets a directory handle.
Resets the directory handle such that reading restarts with the first directory entry.
[in] | dd | The directory handle to reset. |
Definiert in Zeile 1487 der Datei fat.c.