43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
#ifndef __EEPROM_H
|
|
#define __EEPROM_H
|
|
|
|
/*
|
|
Author: Nima Askari
|
|
WebSite: http://www.github.com/NimaLTD
|
|
Instagram: http://instagram.com/github.NimaLTD
|
|
Youtube: https://www.youtube.com/channel/UCUhY7qY1klJm1d2kulr9ckw
|
|
|
|
Version: 1.1.0
|
|
|
|
|
|
Reversion History:
|
|
(1.1.0)
|
|
Add f0 devices.
|
|
|
|
(1.0.0)
|
|
First Release.
|
|
|
|
*/
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include "gpio.h"
|
|
|
|
|
|
//################################################################################################################
|
|
bool EE_Format(void);
|
|
bool EE_Read(uint16_t VirtualAddress, uint32_t* Data);
|
|
bool EE_Write(uint16_t VirtualAddress, uint32_t Data);
|
|
bool EE_Reads(uint16_t StartVirtualAddress,uint16_t HowMuchToRead,uint32_t* Data);
|
|
bool EE_Writes(uint16_t StartVirtualAddress,uint16_t HowMuchToWrite,uint32_t* Data);
|
|
uint16_t EE_GetSize(void);
|
|
//################################################################################################################
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|