mikroSDK Reference Manual
file_t Struct Reference

File Data Structure. More...

Data Fields

logical_drive_tlogical_drive
 
fs_file_t fs_file
 

Detailed Description

The struct is used to link file system specific file data structure fs_file, to the logical drive struct where the file is located. It is used as identifier for the directory in File Access API functions.

Note
The file is considered closed or uninitialized when both of its elements are NULL, and if both elements are set the file is considered to be open. If one element is NULL while the other is not, the directory is considered to be uninitialized.

Field Documentation

◆ logical_drive

logical_drive_t* file_t::logical_drive

A pointer to base Logical drive structure where the file is located. See logical_drive_t for detailed explanation.

◆ fs_file

fs_file_t file_t::fs_file

File data structure specific to the particular file system in which logical_drive is initialized.