Moved firmware to subfoler firmware
This commit is contained in:
25
firmware/Core/Inc/driverSWStorageManager.h
Normal file
25
firmware/Core/Inc/driverSWStorageManager.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef __DRIVERSWSTORAGEMANAGER_H
|
||||
#define __DRIVERSWSTORAGEMANAGER_H
|
||||
|
||||
#include "stdint.h"
|
||||
#include "stdbool.h"
|
||||
#include "driverHWEEPROM.h"
|
||||
|
||||
extern bool driverSWStorageManagerConfigEmpty;
|
||||
extern bool driverSWStorageManagerStateOfChargeEmpty;
|
||||
extern uint16_t driverSWStorageManagerConfigStructSize;
|
||||
extern uint16_t driverSWStorageManagerStateOfChargeStructSize;
|
||||
|
||||
typedef enum {
|
||||
STORAGE_CONFIG = 0,
|
||||
STORAGE_STATEOFCHARGE,
|
||||
} StorageLocationTypedef;
|
||||
|
||||
void driverSWStorageManagerInit(void);
|
||||
bool driverSWStorageManagerEraseData(void);
|
||||
bool driverSWStorageManagerStoreStruct(void *configStruct, StorageLocationTypedef storageLocation);
|
||||
bool driverSWStorageManagerGetStruct(void *configStruct, StorageLocationTypedef storageLocation);
|
||||
uint16_t driverSWStorageManagerGetOffsetFromLocation(StorageLocationTypedef storageLocation);
|
||||
uint16_t driverSWStorageManagerGetStructSize(StorageLocationTypedef storageLocation);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user