#ifndef _EE_H_ #define _EE_H_ /*********************************************************************************************************** Author: Nima Askari Github: https://www.github.com/NimaLTD LinkedIn: https://www.linkedin.com/in/nimaltd Youtube: https://www.youtube.com/@nimaltd Instagram: https://instagram.com/github.NimaLTD Version: 3.0.0 History: 3.0.0 - Rewrite again - Support STM32CubeMx Packet installer ***********************************************************************************************************/ #ifdef __cplusplus extern "C" { #endif /************************************************************************************************************ ************** Include Headers ************************************************************************************************************/ #include #include "main.h" /************************************************************************************************************ ************** Public Definitions ************************************************************************************************************/ /************************************************************************************************************ ************** Public struct/enum ************************************************************************************************************/ typedef struct { uint32_t MagicWord; uint8_t *DataPointer; uint32_t Size; uint32_t Lock; } EE_HandleTypeDef; /************************************************************************************************************ ************** Public Functions ************************************************************************************************************/ bool EE_Init(void *StoragePointer, uint32_t Size); uint32_t EE_Capacity(void); bool EE_Format(bool EraseBuffer); void EE_Read(void); bool EE_Write(bool FormatFirst); #ifdef __cplusplus } #endif #endif