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... | |
Functions which handle the EEPROM.
uint8_t eepinp | ( | void | ) |
Reads one byte from the internal EEPROM.
After each read operation, the internal read/write address is automatically incremented.
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.
send_data | 8-bit unsigned integer |
uint16_t eeprom_getAddress | ( | void | ) |
Returns the address for the next EEPROM operation.
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.
address | 16-bit unsigned integer (0..2047) |
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.
send_data | 16-bit pointer to a character located in the RAM |
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.
send_data | 16-bit pointer to a character located in the flash |