Select one of the symbols to view example projects that use it.
 
Outline
#define _Partition_H_
#include "esp_err.h"
#include "Flash_Access.h"
#include "esp_partition.h"
Partition
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/wear_levelling/private_include/Partition.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef _Partition_H_ #define _Partition_H_ #include "esp_err.h" #include "Flash_Access.h" #include "esp_partition.h" /** * @brief This class is used to access partition. Class implements Flash_Access interface * *//* ... */ class Partition : public Flash_Access { public: Partition(const esp_partition_t *partition); virtual size_t get_flash_size(); virtual esp_err_t erase_sector(size_t sector); virtual esp_err_t erase_range(size_t start_address, size_t size); virtual esp_err_t write(size_t dest_addr, const void *src, size_t size); virtual esp_err_t read(size_t src_addr, void *dest, size_t size); virtual size_t get_sector_size(); virtual bool is_readonly(); virtual ~Partition();... protected: const esp_partition_t *partition; ... }{...}; /* ... */ #endif // _Partition_H_
Details