logging of live data structs was: data points #3614
This commit is contained in:
parent
cf5dbc8e0a
commit
943409b979
|
@ -1,10 +1,15 @@
|
|||
// generated by gen_live_documentation.sh / UsagesReader.java
|
||||
#include "pch.h"
|
||||
#include "FragmentEntry.h"
|
||||
|
||||
#include "tunerstudio.h"
|
||||
static FragmentEntry fragments[17];
|
||||
|
||||
int getFragmentsCount() {
|
||||
return 17;
|
||||
}
|
||||
|
||||
FragmentEntry *getFragments() {
|
||||
return fragments;
|
||||
}
|
||||
void initFragments() {
|
||||
fragments[0].init((const uint8_t *)getStructAddr(LDS_output_channels), sizeof(output_channels_s));
|
||||
fragments[1].init((const uint8_t *)getStructAddr(LDS_high_pressure_fuel_pump), sizeof(high_pressure_fuel_pump_s));
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "global.h"
|
||||
#include "tunerstudio_io.h"
|
||||
#include "electronic_throttle_generated.h"
|
||||
#include "FragmentEntry.h"
|
||||
|
||||
typedef struct {
|
||||
int queryCommandCounter;
|
||||
|
@ -37,6 +38,10 @@ const void * getStructAddr(live_data_e structId);
|
|||
#include "thread_controller.h"
|
||||
#include "thread_priority.h"
|
||||
|
||||
void initFragments();
|
||||
int getFragmentsCount();
|
||||
FragmentEntry *getFragments();
|
||||
|
||||
void updateTunerStudioState();
|
||||
|
||||
void requestBurn(void);
|
||||
|
|
Binary file not shown.
|
@ -33,10 +33,19 @@ public class UsagesReader {
|
|||
StringBuilder fragmentsContent = new StringBuilder(
|
||||
header +
|
||||
"#include \"pch.h\"\n" +
|
||||
"#include \"FragmentEntry.h\"\n\n" +
|
||||
"#include \"tunerstudio.h\"\n" +
|
||||
"static FragmentEntry fragments[" + liveDocs.size() + "];\n\n" +
|
||||
"void initFragments() {\n");
|
||||
"static FragmentEntry fragments[" + liveDocs.size() + "];\n\n")
|
||||
;
|
||||
|
||||
fragmentsContent.append("int getFragmentsCount() {\n" +
|
||||
"\treturn " + liveDocs.size() + ";\n" +
|
||||
"}\n" +
|
||||
"\n" +
|
||||
"FragmentEntry *getFragments() {\n" +
|
||||
"\treturn fragments;\n" +
|
||||
"}\n\n" +
|
||||
"void initFragments() {\n");
|
||||
|
||||
|
||||
int index = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue