CARME-M4 BSP  V1.5
External EEPROM

EEPROM on CARME mainboard. More...

+ Collaboration diagram for External EEPROM:

Files

file  eeprom.h
 EEPROM board support package for the CARME module.
 
file  eeprom.c
 Write and read data to the onboard non volatile EEPROM.
 

Macros

#define CARME_ERROR_EEPROM_OVERFLOW   CARME_ERROR_EEPROM_BASE + 0
 The end of the address range will be reached 0x07FF. More...
 
#define CARME_ERROR_EEPROM_OVERFLOW   CARME_ERROR_EEPROM_BASE + 0
 The end of the address range will be reached 0x07FF. More...
 
#define CARME_ERROR_EEPROM_BUSY   CARME_ERROR_EEPROM_BASE + 1
 The EEPROM is busy at the moment. More...
 
#define CARME_ERROR_EEPROM_BUSY   CARME_ERROR_EEPROM_BASE + 1
 The EEPROM is busy at the moment. More...
 
#define CARME_EEPROM_WRITE_DELAY   10
 
#define CARME_EEPROM_READ_DELAY   10
 
#define CARME_EEPROM_I2C_ADDRESS   0xA0
 

Functions

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...
 

Detailed Description

EEPROM on CARME mainboard.

Macro Definition Documentation

#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.

#define CARME_ERROR_EEPROM_BUSY   CARME_ERROR_EEPROM_BASE + 1

The EEPROM is busy at the moment.

The EEPROM is busy at the moment

Definition at line 93 of file eeprom.h.

#define CARME_ERROR_EEPROM_BUSY   CARME_ERROR_EEPROM_BASE + 1

The EEPROM is busy at the moment.

The EEPROM is busy at the moment

Definition at line 93 of file eeprom.h.

#define CARME_ERROR_EEPROM_OVERFLOW   CARME_ERROR_EEPROM_BASE + 0

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.

#define CARME_ERROR_EEPROM_OVERFLOW   CARME_ERROR_EEPROM_BASE + 0

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.

Function Documentation

ERROR_CODES CARME_EEPROM_Read ( uint8_t *  recdata,
uint8_t  nbrOfChar,
uint8_t  startAddress 
)

Read an Array of char to the Eeprom.

Parameters
[out]recdatadata to read
[in]nbrOfCharnumber of bytes to read from the EEPROM
[in]startAddressStartaddress to read from Range (0x0000 - 0x07FF)
Returns
ERROR_CODES

Definition at line 175 of file eeprom.c.

+ Here is the call graph for this function:

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]datadata to write
[in]nbrOfCharnumber of bytes to write to the EEPROM
[in]startAddressStartaddress to write to Range (0x0000 - 0x07FF)
Returns
ERROR_CODES

Definition at line 107 of file eeprom.c.

+ Here is the call graph for this function: