Battery config updated and started with Doxygen added
This commit is contained in:
+43
-5
@@ -1,13 +1,51 @@
|
||||
/* LibreSolar charge controller firmware
|
||||
* Copyright (c) 2016-2019 Martin Jäger (www.libre.solar)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef EEPROM_H
|
||||
#define EEPROM_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* @brief Handling of internal or external EEPROM to store device configuration
|
||||
*/
|
||||
|
||||
#include "mbed.h"
|
||||
|
||||
void eeprom_init(int address);
|
||||
/** Write data to EEPROM address
|
||||
*
|
||||
* @returns 0 for success
|
||||
*/
|
||||
int eeprom_write(unsigned int addr, uint8_t* data, int len);
|
||||
|
||||
// return values: 0 for success
|
||||
int eeprom_write (unsigned int, char *, int);
|
||||
int eeprom_read (unsigned int, char *, int);
|
||||
/** Read data from EEPROM address
|
||||
*
|
||||
* @returns 0 for success
|
||||
*/
|
||||
int eeprom_read(unsigned int addr, uint8_t* ret, int len);
|
||||
|
||||
/** Store current charge controller data to EEPROM
|
||||
*/
|
||||
void eeprom_store_data();
|
||||
|
||||
/** Restore charge controller data from EEPROM and write to variables in RAM
|
||||
*/
|
||||
void eeprom_restore_data();
|
||||
|
||||
void eeprom_update();
|
||||
/** Stores data to EEPROM every 6 hours (can be called regularly)
|
||||
*/
|
||||
void eeprom_update();
|
||||
|
||||
#endif /* EEPROM_H */
|
||||
|
||||
Reference in New Issue
Block a user