GONEC_ARTERY_SetupSettings/Src/Settings_RS485_Bluetooth.c

27 lines
1.4 KiB
C

//
// Created by cfif on 14.11.22.
//
#include "Settings_RS485_Bluetooth.h"
#include <string.h>
#include "DeviceStorageIni.h"
#include "MainModesArbiter.h"
/*
extern tMma MAIN_ENV;
const struct to_json jsonSettings_RS485_Bluetooth[] = {
{.name = "TOut485_v", .value = &MAIN_ENV.storage.nvm.Settings_RS485_Bluetooth.TOut485_v, .len = sizeof(MAIN_ENV.storage.nvm.Settings_RS485_Bluetooth.TOut485_v), .vtype = t_to_uint32_t, .stype = t_to_object},
{.name = "TOutBlue_v", .value = &MAIN_ENV.storage.nvm.Settings_RS485_Bluetooth.TOutBlue_v, .len = sizeof(MAIN_ENV.storage.nvm.Settings_RS485_Bluetooth.TOutBlue_v), .vtype = t_to_uint32_t,},
{.name = "rs485baudrate_v", .value = &MAIN_ENV.storage.nvm.Settings_RS485_Bluetooth.rs485baudrate_v, .len = sizeof(MAIN_ENV.storage.nvm.Settings_RS485_Bluetooth.rs485baudrate_v), .vtype = t_to_uint32_t,},
{.name = "BTvisible_v", .value = &MAIN_ENV.storage.nvm.Settings_RS485_Bluetooth.BTvisible_v, .len = sizeof(MAIN_ENV.storage.nvm.Settings_RS485_Bluetooth.BTvisible_v), .vtype = t_to_uint32_t,},
{NULL}
};
*/
void vSettings_RS485_BluetoothInitDefaults(tSettings_RS485_Bluetooth *Settings_RS485_Bluetooth) {
Settings_RS485_Bluetooth->TOut485_v = 300;
Settings_RS485_Bluetooth->TOutBlue_v = 300;
Settings_RS485_Bluetooth->rs485baudrate_v = 115200;
Settings_RS485_Bluetooth->BTvisible_v = 2000;
}