/**
 * @file struct2json.cpp
 *
 * @brief Implementation file for converting structs to JSON objects.
 *
 * @note This file is auto-generated by a script on 2024-01-10 18:01:52.
 *
 * @author Marcel Peterkau
 * @date   10.01.2024
 */


#include "struct2json.h"

void generateJsonObject_LubeConfig(JsonObject& data)
{
    data["EEPROM_Version"] = LubeConfig.EEPROM_Version;
    data["DistancePerLube_Default"] = LubeConfig.DistancePerLube_Default;
    data["DistancePerLube_Rain"] = LubeConfig.DistancePerLube_Rain;
    data["tankCapacity_ml"] = LubeConfig.tankCapacity_ml;
    data["amountPerDose_microL"] = LubeConfig.amountPerDose_microL;
    data["TankRemindAtPercentage"] = LubeConfig.TankRemindAtPercentage;
    data["PulsePerRevolution"] = LubeConfig.PulsePerRevolution;
    data["TireWidth_mm"] = LubeConfig.TireWidth_mm;
    data["TireWidthHeight_Ratio"] = LubeConfig.TireWidthHeight_Ratio;
    data["RimDiameter_Inch"] = LubeConfig.RimDiameter_Inch;
    data["DistancePerRevolution_mm"] = LubeConfig.DistancePerRevolution_mm;
    data["BleedingPulses"] = LubeConfig.BleedingPulses;
    data["SpeedSource"] = LubeConfig.SpeedSource;
    data["GPSBaudRate"] = LubeConfig.GPSBaudRate;
    data["CANSource"] = LubeConfig.CANSource;
    data["LED_Mode_Flash"] = LubeConfig.LED_Mode_Flash;
    data["LED_Max_Brightness"] = LubeConfig.LED_Max_Brightness;
    data["LED_Min_Brightness"] = LubeConfig.LED_Min_Brightness;
    data["checksum"] = LubeConfig.checksum;
    }

void generateJsonObject_PersistenceData(JsonObject& data)
{
    data["writeCycleCounter"] = PersistenceData.writeCycleCounter;
    data["tankRemain_microL"] = PersistenceData.tankRemain_microL;
    data["TravelDistance_highRes_mm"] = PersistenceData.TravelDistance_highRes_mm;
    data["odometer_mm"] = PersistenceData.odometer_mm;
    data["odometer"] = PersistenceData.odometer;
    data["checksum"] = PersistenceData.checksum;
    }



// CODEGENERATOR_CHECKSUM: 9e8dd21170fd6ef8fbf8c4b156d9af751836a76081f811bf0e3ab2b1eb8ee48c