Battery config updated and started with Doxygen added
This commit is contained in:
+11
-52
@@ -1,5 +1,5 @@
|
||||
/* LibreSolar MPPT charge controller firmware
|
||||
* Copyright (c) 2016-2018 Martin Jäger (www.libre.solar)
|
||||
/* 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.
|
||||
@@ -17,56 +17,15 @@
|
||||
#ifndef DATA_OBJECTS_H
|
||||
#define DATA_OBJECTS_H
|
||||
|
||||
#include <stdint.h>
|
||||
/** @file
|
||||
*
|
||||
* @brief Handling of ThingSet data objects
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "thingset.h"
|
||||
#include "pcb.h"
|
||||
#include "structs.h"
|
||||
#include "load.h"
|
||||
void data_objects_update_conf();
|
||||
void data_objects_read_eeprom();
|
||||
|
||||
extern log_data_t log_data;
|
||||
extern battery_t bat;
|
||||
extern dcdc_t dcdc;
|
||||
extern load_output_t load;
|
||||
extern dcdc_port_t hs_port;
|
||||
extern dcdc_port_t ls_port;
|
||||
|
||||
extern battery_user_settings_t bat_user;
|
||||
extern const dcdc_control_mode dcdc_mode; // we leave it fixed for the runtime for now
|
||||
|
||||
extern const data_object_t dataObjects[];
|
||||
extern const size_t dataObjectsCount;
|
||||
|
||||
|
||||
// stores object-ids of values to be stored in EEPROM
|
||||
static const uint16_t eeprom_data_objects[] = {
|
||||
0x4002, 0x4004, 0x4006, 0x4008, 0x400B, // V, I, T max
|
||||
0x400F, 0x4010, // energy throughput
|
||||
0x4011, 0x4012, // num full charge / deep-discharge
|
||||
0x3001, 0x3002 // switch targets
|
||||
};
|
||||
/*
|
||||
// stores object-ids of values to be published via GSM
|
||||
static uint16_t pub_gsm_data_objects[] = {
|
||||
0x1003, // deviceID
|
||||
//0x2013, // time
|
||||
0x4002, 0x4004, 0x4006, 0x4008, 0x400B, // V, I, T max
|
||||
0x400C, // loadEn
|
||||
0x400F, 0x4010, // total energy throughput
|
||||
0x4011, 0x4012, // nFullChg, nDeepDis
|
||||
0x4013 // SOC
|
||||
};
|
||||
|
||||
// stores object-ids of values to be published via LoRa
|
||||
static uint16_t pub_lora_data_objects[] = {
|
||||
0x1003, // deviceID
|
||||
0x4002, 0x4004, 0x4006, 0x4008, 0x400B, // V, I, T max
|
||||
0x400C, // loadEn
|
||||
0x400F, 0x4010, // total energy throughput
|
||||
0x4011, 0x4012, // nFullChg, nDeepDis
|
||||
0x4013 // SOC
|
||||
};
|
||||
*/
|
||||
|
||||
#endif
|
||||
#endif /* DATA_OBJECTS_H */
|
||||
|
||||
Reference in New Issue
Block a user