ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
block_device.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::storage::BlockGeometry
 The shape of a block device. A block_count of 0 means no media is present. More...
 
struct  esphome::storage::NullMutex
 Stands in for a mutex where nothing runs on other tasks. More...
 
class  esphome::storage::BlockDevice
 A device addressed in fixed size blocks, such as a flash chip, an SD card or a RAM buffer. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::storage
 

Typedefs

using esphome::storage::DeviceMutex = Mutex
 

Enumerations

enum class  esphome::storage::StorageError : int8_t {
  esphome::storage::STORAGE_ERROR_NONE = 0 , esphome::storage::STORAGE_ERROR_IO = -1 , esphome::storage::STORAGE_ERROR_NO_MEDIA = -2 , esphome::storage::STORAGE_ERROR_READ_ONLY = -3 ,
  esphome::storage::STORAGE_ERROR_INVALID = -4 , esphome::storage::STORAGE_ERROR_TIMEOUT = -5
}
 
enum  esphome::storage::BlockFlag : uint8_t { esphome::storage::BLOCK_FLAG_NEEDS_ERASE = 1 << 0 , esphome::storage::BLOCK_FLAG_REMOVABLE = 1 << 1 , esphome::storage::BLOCK_FLAG_READ_ONLY = 1 << 2 , esphome::storage::BLOCK_FLAG_TRIM = 1 << 3 }
 

Functions

const LogString * esphome::storage::storage_error_to_string (StorageError error)