-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheth_save_process.h
More file actions
31 lines (27 loc) · 846 Bytes
/
eth_save_process.h
File metadata and controls
31 lines (27 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include <stdint.h>
#include <storage/storage.h>
typedef struct EthernetSaveConfig {
uint8_t mac[6];
uint8_t ip[4];
uint8_t mask[4];
uint8_t gateway[4];
uint8_t dns[4];
uint8_t ping_ip[4];
File* log_file;
} EthernetSaveConfig;
#define ETHERNET_SAVE_DEFAULT_MAC \
{ 0x10, 0x08, 0xDC, 0x47, 0x47, 0x54 }
#define ETHERNET_SAVE_DEFAULT_IP \
{ 192, 168, 0, 101 }
#define ETHERNET_SAVE_DEFAULT_MASK \
{ 255, 255, 255, 0 }
#define ETHERNET_SAVE_DEFAULT_GATEWAY \
{ 192, 168, 0, 1 }
#define ETHERNET_SAVE_DEFAULT_DNS \
{ 192, 168, 0, 1 }
#define ETHERNET_SAVE_DEFAULT_PING_IP \
{ 8, 8, 8, 8 }
EthernetSaveConfig* ehternet_save_process_malloc();
void ehternet_save_process_free(EthernetSaveConfig* config);
void ehternet_save_process_print(EthernetSaveConfig* config, const char* str);