EEE4STM32/ee.h

59 lines
1.3 KiB
C
Raw Permalink Normal View History

2020-05-12 06:05:35 +02:00
#ifndef __EEPROM_H
#define __EEPROM_H
/*
Author: Nima Askari
WebSite: http://www.github.com/NimaLTD
Instagram: http://instagram.com/github.NimaLTD
2023-07-11 08:48:02 +02:00
Youtube: https://www.youtube.com/@NimaLTD
2020-05-12 06:05:35 +02:00
2023-12-13 09:10:08 +01:00
Version: 2.0.6
2023-07-11 08:48:02 +02:00
2023-12-13 09:10:08 +01:00
(2.0.6)
Fix Write bug.
(2.0.5)
2023-07-11 08:48:02 +02:00
Add U575, U585.
2021-01-18 07:48:18 +01:00
2023-04-03 10:57:08 +02:00
(2.0.4)
2023-04-03 10:56:32 +02:00
Add G030, G050, G070.
2021-03-05 08:37:46 +01:00
(2.0.3)
Add F411.
2021-01-18 07:48:18 +01:00
(2.0.2)
2021-03-05 08:37:46 +01:00
Add L4.
2020-05-14 06:29:07 +02:00
(2.0.1)
Change function name to ee_commit().
2020-05-12 06:05:35 +02:00
Reversion History:
(2.0.0)
Rewrite again.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
2021-01-18 07:48:18 +01:00
#include "main.h"
2020-05-12 06:05:35 +02:00
//################################################################################################################
bool ee_init(void);
bool ee_format(bool keepRamData);
2020-05-12 07:46:58 +02:00
bool ee_read(uint32_t startVirtualAddress, uint32_t len, uint8_t* data);
bool ee_write(uint32_t startVirtualAddress, uint32_t len, uint8_t* data);
2020-05-14 06:29:07 +02:00
bool ee_writeToRam(uint32_t startVirtualAddress, uint32_t len, uint8_t* data); // only use when _EE_USE_RAM_BYTE is enabled
bool ee_commit(void); // only use when _EE_USE_RAM_BYTE is enabled
2020-05-12 06:05:35 +02:00
uint32_t ee_maxVirtualAddress(void);
//################################################################################################################
#ifdef __cplusplus
}
#endif
#endif