mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-19 06:12:17 +01:00
38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
#ifndef MAIN_NVS_CONFIG_H
|
|
#define MAIN_NVS_CONFIG_H
|
|
|
|
#include <stdint.h>
|
|
|
|
// Max length 15
|
|
|
|
#define NVS_CONFIG_WIFI_SSID "wifissid"
|
|
#define NVS_CONFIG_WIFI_PASS "wifipass"
|
|
#define NVS_CONFIG_HOSTNAME "hostname"
|
|
#define NVS_CONFIG_STRATUM_URL "stratumurl"
|
|
#define NVS_CONFIG_STRATUM_PORT "stratumport"
|
|
#define NVS_CONFIG_STRATUM_USER "stratumuser"
|
|
#define NVS_CONFIG_STRATUM_PASS "stratumpass"
|
|
#define NVS_CONFIG_ASIC_FREQ "asicfrequency"
|
|
#define NVS_CONFIG_ASIC_VOLTAGE "asicvoltage"
|
|
#define NVS_CONFIG_ASIC_MODEL "asicmodel"
|
|
#define NVS_CONFIG_DEVICE_MODEL "devicemodel"
|
|
#define NVS_CONFIG_BOARD_VERSION "boardversion"
|
|
#define NVS_CONFIG_FLIP_SCREEN "flipscreen"
|
|
#define NVS_CONFIG_INVERT_SCREEN "invertscreen"
|
|
#define NVS_CONFIG_INVERT_FAN_POLARITY "invertfanpol"
|
|
#define NVS_CONFIG_AUTO_FAN_SPEED "autofanspeed"
|
|
#define NVS_CONFIG_FAN_SPEED "fanspeed"
|
|
#define NVS_CONFIG_BEST_DIFF "bestdiff"
|
|
#define NVS_CONFIG_SELF_TEST "selftest"
|
|
|
|
#define NVS_CONFIG_SWARM "swarmconfig"
|
|
|
|
char * nvs_config_get_string(const char * key, const char * default_value);
|
|
void nvs_config_set_string(const char * key, const char * default_value);
|
|
uint16_t nvs_config_get_u16(const char * key, const uint16_t default_value);
|
|
void nvs_config_set_u16(const char * key, const uint16_t value);
|
|
uint64_t nvs_config_get_u64(const char * key, const uint64_t default_value);
|
|
void nvs_config_set_u64(const char * key, const uint64_t value);
|
|
|
|
#endif // MAIN_NVS_CONFIG_H
|