system/settings_file/nvm_settings.h

/*
* EVALUATION AND USE OF THIS SOFTWARE IS SUBJECT TO THE TERMS AND
* CONDITIONS OF THE CONTROLLING LICENSE AGREEMENT FOUND AT LICENSE.md
* IN THIS SDK. IF YOU DO NOT AGREE TO THE LICENSE TERMS AND CONDITIONS,
* PLEASE RETURN ALL SOURCE FILES TO SILICON LABORATORIES.
* (c) Copyright 2018, Silicon Laboratories Inc. All rights reserved.
*/
#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