77 #include <stm32f4xx.h>
82 #define CARME_ERROR_EEPROM_OVERFLOW CARME_ERROR_EEPROM_BASE + 0
85 #define CARME_ERROR_EEPROM_BUSY CARME_ERROR_EEPROM_BASE + 1
87 #define CARME_EEPROM_WRITE_DELAY 10
88 #define CARME_EEPROM_READ_DELAY 10
90 #define CARME_ERROR_EEPROM_OVERFLOW CARME_ERROR_EEPROM_BASE + 0
91 #define CARME_ERROR_EEPROM_BUSY CARME_ERROR_EEPROM_BASE + 1
93 #define CARME_EEPROM_I2C_ADDRESS 0xA0
99 uint8_t startAddress);
101 uint8_t startAddress);
uint8_t ERROR_CODES
Error variable.
ERROR_CODES CARME_EEPROM_Write(uint8_t *data, uint8_t nbrOfChar, uint8_t startAddress)
Write an Array of 8-bit data to the Eeprom This Function can take several ms to perfrom. 5ms are needed for a Pagewrite (8 Byte).
ERROR_CODES CARME_EEPROM_Read(uint8_t *recdata, uint8_t nbrOfChar, uint8_t startAddress)
Read an Array of char to the Eeprom.
I2C board support package for the CARME module.