Modules | Functions

Functions which handle the EEPROM. More...

Modules

 Advanced informations
 

Functions

void eepout (uint8_t send_data)
 Write one byte into the internal EEPROM. More...
 
void eepstr (const char *send_data)
 Writes a string located in the RAM into the internal EEPROM. More...
 
void eepstr_p (const char *send_data)
 Writes a string located in the flash into the internal EEPROM. More...
 
uint8_t eepinp (void)
 Reads one byte from the internal EEPROM. More...
 
void eeprom_setAddress (uint16_t address)
 Sets the address for the next EEPROM operation. More...
 
uint16_t eeprom_getAddress (void)
 Returns the address for the next EEPROM operation. More...
 

Detailed Description

Functions which handle the EEPROM.

Function Documentation

◆ eepinp()

uint8_t eepinp ( void  )

Reads one byte from the internal EEPROM.

After each read operation, the internal read/write address is automatically incremented.

Returns
8-bit unsigned integer
See also
eepout() and eeprom_getAdress()

◆ eepout()

void eepout ( uint8_t  send_data)

Write one byte into the internal EEPROM.

After each write operation, the internal read/write address is automatically incremented.

Parameters
send_data8-bit unsigned integer
See also
eepinp() and eeprom_setAdress()

◆ eeprom_getAddress()

uint16_t eeprom_getAddress ( void  )

Returns the address for the next EEPROM operation.

Returns
16-bit unsigned integer (0..2047)
See also
eeprom_setAddress(), eepin() and eepout()

◆ eeprom_setAddress()

void eeprom_setAddress ( uint16_t  address)

Sets the address for the next EEPROM operation.

The internal EEPROM has 2kBytes. If setting to an higher address, the effective address will just overrun.

Parameters
address16-bit unsigned integer (0..2047)
See also
eeprom_getAddress(), eepout() and eepin()

◆ eepstr()

void eepstr ( const char *  send_data)

Writes a string located in the RAM into the internal EEPROM.

This function loads the referenced string character by character and writes those using the eepout() function until a terminating \ 0-character is found.

Parameters
send_data16-bit pointer to a character located in the RAM
See also
eepstr_p() and eepout()

◆ eepstr_p()

void eepstr_p ( const char *  send_data)

Writes a string located in the flash into the internal EEPROM.

This function loads the referenced string character by character and writes those using the eepout() function until a terminating \ 0-character is found.

Parameters
send_data16-bit pointer to a character located in the flash
See also
eepstr() and eepout()