nova verzija tcp+udp->serial com

Committer:
bosko001
Date:
Sat Apr 18 22:32:13 2020 +0000
Revision:
7:7ea932eb31f6
Parent:
5:c9a908749d4c
Child:
8:c0f54b381346
potpuno ispravan html - flash rad

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bosko001 3:1196befeace0 1 #ifndef dataFlash_h
bosko001 3:1196befeace0 2 #define dataFlash_h
bosko001 3:1196befeace0 3
bosko001 3:1196befeace0 4 #include "EthernetSetup.h"
bosko001 5:c9a908749d4c 5 #include "doHTML.h"
bosko001 3:1196befeace0 6
bosko001 7:7ea932eb31f6 7 //struct S_FlashData
bosko001 7:7ea932eb31f6 8 //{
bosko001 7:7ea932eb31f6 9 // struct S_EthernetAddress s_EthAdd;
bosko001 7:7ea932eb31f6 10 // char serverPortUdp[6];
bosko001 7:7ea932eb31f6 11 // char serverPortTcp[6];
bosko001 7:7ea932eb31f6 12 // struct S_EthernetAddress_Remote s_EthAddRemUdp[3];
bosko001 7:7ea932eb31f6 13 //// struct S_EthernetAddress_RangeRemote s_EthAddRangeRemUDP;
bosko001 7:7ea932eb31f6 14 // struct S_EthernetAddress_Remote s_EthAddRemTcp[3];
bosko001 7:7ea932eb31f6 15 //// struct S_EthernetAddress_RangeRemote s_EthAddRangeRemTcp;
bosko001 7:7ea932eb31f6 16 // char baud_rate[7], parity[6], data_bits[2], stop_bits[4];
bosko001 7:7ea932eb31f6 17 //};
bosko001 7:7ea932eb31f6 18
bosko001 7:7ea932eb31f6 19
bosko001 3:1196befeace0 20 struct S_FlashData
bosko001 3:1196befeace0 21 {
bosko001 7:7ea932eb31f6 22 char myIP[16];
bosko001 7:7ea932eb31f6 23 char myMask[16];
bosko001 7:7ea932eb31f6 24 char myGate[16];
bosko001 7:7ea932eb31f6 25 char myUdpPort[6];
bosko001 7:7ea932eb31f6 26 char myTcpPort[6];
bosko001 7:7ea932eb31f6 27 char UdpIP[5][16];
bosko001 7:7ea932eb31f6 28 char UdpPort[4][6];
bosko001 7:7ea932eb31f6 29 char TcpIP[5][16];
bosko001 7:7ea932eb31f6 30 char TcpPort[4][6];
bosko001 7:7ea932eb31f6 31 char baud_rate[7], parity[6], data_bits[2], stop_bits[4];
bosko001 3:1196befeace0 32 };
bosko001 3:1196befeace0 33
bosko001 7:7ea932eb31f6 34
bosko001 7:7ea932eb31f6 35
bosko001 7:7ea932eb31f6 36
bosko001 3:1196befeace0 37 union U_FlashData
bosko001 3:1196befeace0 38 {
bosko001 3:1196befeace0 39 struct S_FlashData s_flashData;
bosko001 3:1196befeace0 40 char data[sizeof( struct S_FlashData )];
bosko001 3:1196befeace0 41 };
bosko001 3:1196befeace0 42
bosko001 3:1196befeace0 43
bosko001 3:1196befeace0 44
bosko001 3:1196befeace0 45 void progDataIntoFlash( struct S_FlashData *ps_fd );
bosko001 3:1196befeace0 46
bosko001 3:1196befeace0 47 void readDataFromFlash( struct S_FlashData *ps_fd );
bosko001 3:1196befeace0 48
bosko001 3:1196befeace0 49 void fillDataIntoFlash( void );
bosko001 3:1196befeace0 50
bosko001 3:1196befeace0 51 void refreshDataFromFlash( void );
bosko001 3:1196befeace0 52
bosko001 3:1196befeace0 53
bosko001 3:1196befeace0 54 void init_FlashData( void );
bosko001 3:1196befeace0 55
bosko001 3:1196befeace0 56 void deinit_FlashData( void );
bosko001 3:1196befeace0 57
bosko001 3:1196befeace0 58 void showFlashData( void );
bosko001 3:1196befeace0 59
bosko001 5:c9a908749d4c 60
bosko001 5:c9a908749d4c 61
bosko001 5:c9a908749d4c 62 void putHTMLintoFLASH( C_HTMLparse * );
bosko001 5:c9a908749d4c 63 void putFLASHintoHTML( C_HTMLparse * );
bosko001 5:c9a908749d4c 64
bosko001 5:c9a908749d4c 65
bosko001 5:c9a908749d4c 66
bosko001 5:c9a908749d4c 67
bosko001 3:1196befeace0 68 #endif