Implement raw EEPROM read and write functionality
This commit is contained in:
14
src/common/memory.h
Normal file
14
src/common/memory.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef MAD_CORE_COMMON_MEMORY_H
|
||||
#define MAD_CORE_COMMON_MEMORY_H
|
||||
|
||||
typedef struct mem_data_s mem_data_t;
|
||||
|
||||
struct mem_data_s {
|
||||
byte sentinel; // Data marker bit
|
||||
word value[2]; // Values to be written
|
||||
};
|
||||
|
||||
int MEM_Read(mem_data_t *out);
|
||||
int MEM_Write(mem_data_t *in);
|
||||
|
||||
#endif // MAD_CORE_COMMON_MEMORY_H
|
||||
Reference in New Issue
Block a user