simple FS  v0.1.0
Classes | Macros | Typedefs | Enumerations
memory_driver.h File Reference

interface definition for specific types of memories. More...

#include <stdint.h>
#include <malloc.h>
Include dependency graph for memory_driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MemoryDriver_t
 Interface that defines list of functions with basic operation with memory. More...
 

Macros

#define MEMORY_DRIVER_RAM   1
 
#define MEMORY_DRIVER_ONE_WIRE   2
 
#define MEMORY_DRIVER_SPI   3
 
#define MEMORY_DRIVER   MEMORY_DRIVER_RAM
 
#define MEMORY_EMPTY_VALUE   (uint8_t)0xFF
 
#define SIMULATION   1
 
#define MEMORY_PAGE_SIZE   256
 
#define FS_VARIANT_U   0x55
 Ultra low capacity (~1kB)
 
#define FS_VARIANT_X   0x58
 Extra low capacity (~4kB)
 
#define FS_VARIANT_S   0x53
 Small capacity (~20kB)
 
#define FS_VARIANT_L   0x4C
 Large capacity (~4MB+)
 
#define FS_SIZE_VARIANT   FS_VARIANT_L
 

Typedefs

typedef enum state FS_state
 State definition for memory operations.
 

Enumerations

enum  state { STATE_OK, STATE_ERR }
 State definition for memory operations.
 

Detailed Description

interface definition for specific types of memories.

Date
17. 5. 2021
Author
Juraj Dudak