TTK4155 Ping-pong project
eeprom.c File Reference
#include "general_header.h"
Include dependency graph for eeprom.c:

Functions

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

Detailed Description

This is the eeprom file used to save highschore and brightness.

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: