- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- Alphabetical List
- Data Structures
- Data Fields

# Fs_rootdir Union Reference

Union to define a root directory. More...

`#include <fat.h>`

## Data Fields
U32 | u32_cluster
| For FAT32, the root directory is a cluster list.
struct {
U16 u16_pos
| Offset between the beginning of FAT and the beginning of root dir (unit 512B).
U16 u16_size
| Size of root (unit 512B).
} | seg
| For FAT 12 & 16, it is a segment (no cluster list).

## Detailed Description

Union to define a root directory.

Definition at line 253 of file fat.h.

## Field Documentation

U32 Fs_rootdir::u32_cluster

For FAT32, the root directory is a cluster list.

Definition at line 255 of file fat.h.

Referenced by fat_cluster_list(), and fat_mount().

U16 Fs_rootdir::u16_pos

Offset between the beginning of FAT and the beginning of root dir (unit 512B).

Definition at line 258 of file fat.h.

Referenced by fat_cluster_list(), and fat_mount().

U16 Fs_rootdir::u16_size

Size of root (unit 512B).

Definition at line 259 of file fat.h.

Referenced by fat_cluster_list(), and fat_mount().

struct { ... } Fs_rootdir::seg

For FAT 12 & 16, it is a segment (no cluster list).

Referenced by fat_cluster_list(), and fat_mount().

The documentation for this union was generated from the following file:

- fat.h