nova proba

Revision:
4:7abcf4543282
Parent:
3:1196befeace0
diff -r 1196befeace0 -r 7abcf4543282 dataFlash.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dataFlash.h	Sat Apr 11 17:11:38 2020 +0000
@@ -0,0 +1,42 @@
+#ifndef dataFlash_h
+#define dataFlash_h
+
+#include "EthernetSetup.h"
+
+
+struct S_FlashData
+{
+    struct S_EthernetAddress s_EthAdd;
+    char serverPortUdp[6];
+    char serverPortTcp[6];
+    struct S_EthernetAddress_Remote s_EthAddRemUdp[3];
+//    struct S_EthernetAddress_RangeRemote s_EthAddRangeRemUDP;
+    struct S_EthernetAddress_Remote s_EthAddRemTcp[3];
+//    struct S_EthernetAddress_RangeRemote s_EthAddRangeRemTcp;
+    int baudRate, parity, dataBits, stopBits;
+};
+
+union U_FlashData
+{
+    struct S_FlashData s_flashData;
+    char data[sizeof( struct S_FlashData )];
+};
+
+
+
+void progDataIntoFlash( struct S_FlashData *ps_fd );
+
+void readDataFromFlash( struct S_FlashData *ps_fd );
+
+void fillDataIntoFlash( void );
+
+void refreshDataFromFlash( void );
+
+
+void init_FlashData( void );
+
+void deinit_FlashData( void );
+
+void showFlashData( void );
+
+#endif