weAutSys (weAut_01) utility / library functions for persistent storage
This file contains the definitions for weAutSys (weAut_01) utility / library functions for persistent storage. This is system software and must not be modified for user or application programs.
This file is part of weAutSys <weinert-automation.de>
Copyright © 2011 Albrecht Weinert, Bochum
Data Structures | |
struct | conf_data_t |
The device's basic configuration data type. More... | |
struct | eeOp_data_t |
The data structure for an EEPROM bulk operation thread. More... | |
Defines | |
#define | DEFAULT_EEPROM_CONF_ADD 64 |
Default address of EEPROM configuration data. | |
#define | EE_CONF_ADD(elem) |
The EEPROM address of a configuration element. | |
#define | EEPROM_POINTER2_EE_CONF (EEP_SIZE - 64) |
EEPROM address of (address of) EEPROM configuration data. | |
Functions | |
ptfnct_t | eeOperationThread (eeOp_data_t *eeOpData) |
The EEPROM (bulk) write system thread; the thread function. | |
uint8_t | eeReadByte (uint8_t *readValue, uint16_t eeAddr) |
Read one EEPROM cell to RAM. | |
uint8_t | eeReadBytes (uint16_t eeAddr, uint8_t *dest, uint8_t bufferLength) |
Read EEPROM cells. | |
uint8_t | eeWriteByte (uint16_t eeAddr, uint8_t newValue) |
Write one EEPROM cell. | |
uint8_t | initEEthreadWrite (eeOp_data_t *eeOpData, uint16_t eeAddr, uint8_t *writeBuffer, uint8_t bufferLength) |
Initialise an EEPROM operation thread. | |
void | persistInit (void) |
Initialise persistence / EEPROM handling. | |
Variables | |
conf_data_t | defaultConfData |
The device's basic default configuration data. | |
conf_data_t | defaultTypeConfData |
The device type's basic default configuration data in flash memory. | |
uint16_t | eeConfigAdd |
Address of EEPROM configuration data. | |
eeOp_data_t | eeOpData |
The data for an EEPROM bulk operation thread. |