partition_info.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * partition_info.h
8  *
9  ****/
10 
11 #include "Partition.h"
12 
13 namespace Storage
14 {
21  uint8_t subtype;
22  uint32_t offset;
23  uint32_t size;
26 };
27 
28 constexpr uint16_t ESP_PARTITION_MAGIC{0x50AA};
29 constexpr uint16_t ESP_PARTITION_MAGIC_MD5{0xEBEB};
30 constexpr size_t ESP_PARTITION_TABLE_MAX_LEN{0xC00}; // Maximum length of partition table data
31 
32 } // namespace Storage
uint32_t size
Size of partition in bytes.
Definition: partition_info.h:23
Partition::Type type
Main type of partition.
Definition: partition_info.h:20
constexpr uint16_t ESP_PARTITION_MAGIC_MD5
Identifies an MD5 hash block.
Definition: partition_info.h:29
constexpr size_t ESP_PARTITION_TABLE_MAX_LEN
Definition: partition_info.h:30
uint8_t subtype
Sub-type for partition (interpretation dependent upon type)
Definition: partition_info.h:21
uint32_t offset
Start offset.
Definition: partition_info.h:22
char[nameSize] Name
Definition: Partition.h:126
Internal structure describing the binary layout of a partition table entry.
Definition: partition_info.h:18
Type
Definition: Partition.h:81
Storage::Partition::Flags flags
Various option flags.
Definition: partition_info.h:25
constexpr uint16_t ESP_PARTITION_MAGIC
Identifies a valid partition.
Definition: partition_info.h:28
uint16_t magic
Fixed value to identify valid entry, appears as 0xFFFF at end of table.
Definition: partition_info.h:19
Definition: FileDevice.h:23
Storage::Partition::Name name
Unique identifer for entry.
Definition: partition_info.h:24