TTK4155 Ping-pong project
eeprom.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool EEPROM_save_score (int8_t data)
 Function to save highscore value to store. More...
 
unsigned char EEPROM_read (unsigned int address)
 Read value from EEPROM address. More...
 
void EEPROM_write (unsigned int address, unsigned char data)
 Write data to EEPROM address. More...
 

Detailed Description

This is the eeprom header file.

Function Documentation

◆ EEPROM_read()

unsigned char EEPROM_read ( unsigned int  address)

Read value from EEPROM address.

Parameters
addressAddress to data

Wait for complete of previous write

Start eeprom read by writing EERE

Return data from register

Here is the caller graph for this function:

◆ EEPROM_save_score()

bool EEPROM_save_score ( int8_t  data)

Function to save highscore value to store.

Here is the call graph for this function:

◆ EEPROM_write()

void EEPROM_write ( unsigned int  address,
unsigned char  data 
)

Write data to EEPROM address.

Parameters
addressAddress to data
dataData to store
Here is the caller graph for this function: