Partition.h File Reference
#include <Printable.h>
#include <Data/BitSet.h>
#include <Data/CString.h>
#include <Data/LinkedObjectList.h>
#include <cassert>
#include "Types.h"
Include dependency graph for Partition.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | Storage::Partition |
Represents a flash partition. More... | |
struct | Storage::Partition::SubType |
struct | Storage::Partition::FullType |
Express both partition type and subtype together. More... | |
struct | Storage::Partition::Info |
Partition information. More... | |
Namespaces | |
Storage | |
Storage::Disk | |
Macros | |
#define | PARTITION_APP_SUBTYPE_MAP(XX) |
#define | PARTITION_DATA_SUBTYPE_MAP(XX) |
#define | XX(type, value, desc) type = value, |
#define | XX(subtype, value, desc) subtype = value, |
Functions | |
String | toString (Storage::Partition::Type type, uint8_t subType) |
String | toLongString (Storage::Partition::Type type, uint8_t subType) |
template<typename E > | |
std::enable_if< bool(E::partitionType), String >::type | toString (E subType) |
template<typename E > | |
std::enable_if< bool(E::partitionType), String >::type | toLongString (E subType) |
Macro Definition Documentation
◆ PARTITION_APP_SUBTYPE_MAP
#define PARTITION_APP_SUBTYPE_MAP | ( | XX | ) |
Value:
XX(ota0, 0x10, "OTA #0") \
XX(ota1, 0x11, "OTA #1") \
XX(ota2, 0x12, "OTA #2") \
XX(ota3, 0x13, "OTA #3") \
XX(ota4, 0x14, "OTA #4") \
XX(ota5, 0x15, "OTA #5") \
XX(ota6, 0x16, "OTA #6") \
XX(ota7, 0x17, "OTA #7") \
XX(ota8, 0x18, "OTA #8") \
XX(ota9, 0x19, "OTA #9") \
XX(ota10, 0x1a, "OTA #10") \
XX(ota11, 0x1b, "OTA #11") \
XX(ota12, 0x1c, "OTA #12") \
XX(ota13, 0x1d, "OTA #13") \
XX(ota14, 0x1e, "OTA #14") \
XX(ota15, 0x1f, "OTA #15") \
XX(test, 0x20, "Test application")
Definition: testrunner.h:74
◆ PARTITION_DATA_SUBTYPE_MAP
#define PARTITION_DATA_SUBTYPE_MAP | ( | XX | ) |
Value:
XX(ota, 0x00, "OTA selection") \
XX(phy, 0x01, "PHY init data") \
XX(nvs, 0x02, "NVS") \
XX(coreDump, 0x03, "Core Dump data") \
XX(nvsKeys, 0x04, "NVS key information") \
XX(eFuseEm, 0x05, "eFuse emulation") \
XX(sysParam, 0x40, "System Parameters") \
XX(rfCal, 0x41, "RF Calibration") \
XX(espHttpd, 0x80, "ESPHTTPD") \
XX(fat, 0x81, "FAT") \
XX(spiffs, 0x82, "SPIFFS") \
XX(fwfs, 0xF1, "FWFS") \
XX(littlefs, 0xF2, "LittleFS")
Definition: spiffs.h:231
◆ XX [1/2]
#define XX | ( | subtype, | |
value, | |||
desc | |||
) | subtype = value, |
◆ XX [2/2]
#define XX | ( | type, | |
value, | |||
desc | |||
) | type = value, |
Function Documentation
◆ toLongString() [1/2]
template<typename E >
std::enable_if<bool(E::partitionType), String>::type toLongString | ( | E | subType | ) |
◆ toLongString() [2/2]
String toLongString | ( | Storage::Partition::Type | type, |
uint8_t | subType | ||
) |
◆ toString() [1/2]
template<typename E >
std::enable_if<bool(E::partitionType), String>::type toString | ( | E | subType | ) |
◆ toString() [2/2]
String toString | ( | Storage::Partition::Type | type, |
uint8_t | subType | ||
) |