system/settings_file/nvm_settings.h

/*******************************************************************************
* # License
* Copyright 2019 Silicon Laboratories Inc. www.silabs.com
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
#pragma once
#include "gos.h"
typedef struct
{
uint32_t version;
uint32_t timeout;
char password[128];
} myapp_settings_t;
// Define a list of NVM entries for this app
// NOTE: For backwards compatibility, it's important the values
// assigned to these entries do NOT change with new versions of your app.
// To change or modify NVM entries, add a new entry with a new value to the list.
GOS_NVM_DEFINES_START
GOS_NVM_DEFINE_ENTRY(MYAPP, SETTINGS, 0, sizeof(myapp_settings_t)),
GOS_NVM_DEFINES_END