EEPROM on CARME mainboard.
More...
|
file | eeprom.h |
| EEPROM board support package for the CARME module.
|
|
file | eeprom.c |
| Write and read data to the onboard non volatile EEPROM.
|
|
|
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). More...
|
|
ERROR_CODES | CARME_EEPROM_Read (uint8_t *recdata, uint8_t nbrOfChar, uint8_t startAddress) |
| Read an Array of char to the Eeprom. More...
|
|
EEPROM on CARME mainboard.
#define CARME_EEPROM_I2C_ADDRESS 0xA0 |
I2C Address of the Eeprom
Definition at line 95 of file eeprom.h.
#define CARME_EEPROM_READ_DELAY 10 |
Delay on read
Definition at line 90 of file eeprom.h.
#define CARME_EEPROM_WRITE_DELAY 10 |
Delay on write
Definition at line 89 of file eeprom.h.
The EEPROM is busy at the moment.
The EEPROM is busy at the moment
Definition at line 93 of file eeprom.h.
The EEPROM is busy at the moment.
The EEPROM is busy at the moment
Definition at line 93 of file eeprom.h.
The end of the address range will be reached 0x07FF.
There are more than 64 Bytes to write, or the end of the addressrange will be reached 0x07FF
Definition at line 92 of file eeprom.h.
The end of the address range will be reached 0x07FF.
There are more than 64 Bytes to write, or the end of the addressrange will be reached 0x07FF
Definition at line 92 of file eeprom.h.
ERROR_CODES CARME_EEPROM_Read |
( |
uint8_t * |
recdata, |
|
|
uint8_t |
nbrOfChar, |
|
|
uint8_t |
startAddress |
|
) |
| |
Read an Array of char to the Eeprom.
- Parameters
-
[out] | recdata | data to read |
[in] | nbrOfChar | number of bytes to read from the EEPROM |
[in] | startAddress | Startaddress to read from Range (0x0000 - 0x07FF) |
- Returns
- ERROR_CODES
Definition at line 175 of file eeprom.c.
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).
- Parameters
-
[in] | data | data to write |
[in] | nbrOfChar | number of bytes to write to the EEPROM |
[in] | startAddress | Startaddress to write to Range (0x0000 - 0x07FF) |
- Returns
- ERROR_CODES
Definition at line 107 of file eeprom.c.