network/uart_tcp_client/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_types.h"
#include "system/gos_nvm.h"
#define SETTINGS_VERSION 0x01
typedef struct
{
struct
{
char host[64];
uint16_t port;
gos_interface_t interface;
} tcp;
struct
{
uint32_t baud;
uint32_t rx_buffer_size;
bool flow_control_enabled;
} uart;
} uart_tcp_client_settings_t;
// define 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_TYPE(UART_TCP_CLIENT, 0),
GOS_NVM_DEFINE_ENTRY(UART_TCP_CLIENT, SETTINGS, 0, sizeof(uart_tcp_client_settings_t)),
GOS_NVM_DEFINES_END