MicrOS
partition.h
Go to the documentation of this file.
1 #ifndef PARTITION_H
2 #define PARTITION_H
3 
4 #include "filesystem_type.h"
5 #include "device_type.h"
6 
7 typedef struct partition
8 {
9  char symbol;
10 
13 
16  void (*write_on_device)(int device_number, int sector, uint8_t *data);
17  uint8_t *(*read_from_device)(int device_number, int sector, int count);
18 
19  uint8_t *fat;
21 
25 
28 } partition;
29 
30 #endif
Definition: fat_header.h:6
int last_valid_cluster_mark
Definition: partition.h:27
Definition: partition.h:7
uint32_t directory_length
Definition: partition.h:24
int device_number
Definition: partition.h:15
uint32_t fat_length
Definition: partition.h:23
fat_header * header
Definition: partition.h:12
char symbol
Definition: partition.h:9
filesystem_type
Definition: filesystem_type.h:4
filesystem_type type
Definition: partition.h:11
void(* write_on_device)(int device_number, int sector, uint8_t *data)
Definition: partition.h:16
fat_directory_entry * root
Definition: partition.h:20
uint8_t * fat
Definition: partition.h:19
int first_sector
Definition: partition.h:22
device_type
Definition: device_type.h:4
device_type device_type
Definition: partition.h:14
size_t uint32_t
Unsigned integral type.
Definition: string.h:8
int end_cluster_mark
Definition: partition.h:26
Definition: fat_directory_entry.h:61