EEE4STM32/eeprom.h

43 lines
1.1 KiB
C
Raw Normal View History

2017-04-11 17:43:59 +02:00
#ifndef __EEPROM_H
#define __EEPROM_H
2020-01-11 09:57:06 +01:00
/*
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
2017-04-11 17:43:59 +02:00
#include <stdbool.h>
2019-02-19 09:58:20 +01:00
#include "gpio.h"
2017-04-11 17:43:59 +02:00
//################################################################################################################
2020-01-11 10:04:18 +01:00
bool EE_Format(void);
bool EE_Read(uint16_t VirtualAddress, uint32_t* Data);
bool EE_Write(uint16_t VirtualAddress, uint32_t Data);
2020-01-11 10:25:19 +01:00
bool EE_Reads(uint16_t StartVirtualAddress, uint16_t HowManyToRead, uint32_t* Data);
bool EE_Writes(uint16_t StartVirtualAddress, uint16_t HowManyToWrite, uint32_t* Data);
2020-01-11 10:04:18 +01:00
uint16_t EE_GetSize(void);
2020-01-11 10:25:19 +01:00
uint16_t EE_GetMaximumVirtualAddress(void);
2017-04-11 17:43:59 +02:00
//################################################################################################################
2020-01-11 09:57:06 +01:00
#ifdef __cplusplus
}
#endif
2017-04-11 17:43:59 +02:00
#endif