mikroSDK Reference Manual
Logical Drive

Logical Drive Data Structures Reference. More...

Data Structures

struct  fatfs_logical_drive_t
 FatFs Logical Drive. More...
 
struct  logical_drive_t
 Logical Drive Base Data Structure. More...
 
struct  logical_drive_vector_table
 Logical Drive Vector Table. More...
 

Typedefs

typedef struct logical_drive_vector_table logical_drive_vector_table_t
 Logical Drive Vector Table. More...
 

Functions list

fs_status_t fatfs_initialize (fatfs_logical_drive_t *const fatfs_drive)
 Initializes FatFs logical drive. More...
 

Detailed Description

Typedef Documentation

◆ logical_drive_vector_table_t

The struct represents a table of function pointers and it used used by logical_drive_t struct, in order to call up correct functions for the file system type being used by the logical drive.

Function Documentation

◆ fatfs_initialize()

fs_status_t fatfs_initialize ( fatfs_logical_drive_t *const  fatfs_drive)

This API function will initialize the fatfs_drive, by zeroing fatfs structure making it ready to be used, as well as setting vector table vtptr inside base to point to functions relevant for FatFs operations. It also sets type inside base struct to be FS_TYPE_FATFS, signaling at the same time that logical drive is initialized and that its type is FatFs. All other values are set to zeros.

Postcondition
Logical drive fatfs_drive is now ready to be used by filesystem.