2020-11-04 23:46:55 +01:00
|
|
|
#ifndef EEPROM_H_
|
|
|
|
#define EEPROM_H_
|
|
|
|
|
2020-11-05 13:05:19 +01:00
|
|
|
#include <stdint.h>
|
2020-11-05 14:38:10 +01:00
|
|
|
#include <spi.h>
|
2020-11-04 23:46:55 +01:00
|
|
|
|
2020-11-05 14:38:10 +01:00
|
|
|
void eepromInit();
|
2020-11-04 23:46:55 +01:00
|
|
|
void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len);
|
|
|
|
void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len);
|
2020-11-05 14:38:10 +01:00
|
|
|
void eepromSpiTxCpltCallback(SPI_HandleTypeDef *hspi);
|
|
|
|
|
2020-11-04 23:46:55 +01:00
|
|
|
|
|
|
|
#endif /* EEPROM_H_ */
|