bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
DataFlash/dataFlash.h@22:11279d24a105, 2020-06-11 (annotated)
- Committer:
- bosko001
- Date:
- Thu Jun 11 10:41:11 2020 +0200
- Revision:
- 22:11279d24a105
- Parent:
- 18:5ee53205451a
uradjen soft reset
Who changed what in which revision?
User | Revision | Line number | New 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 | 8:c0f54b381346 | 23 | char myMASK[16]; |
bosko001 | 8:c0f54b381346 | 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 | 22:11279d24a105 | 53 | int doinit_FlashData( void ); |
bosko001 | 3:1196befeace0 | 54 | |
bosko001 | 3:1196befeace0 | 55 | void deinit_FlashData( void ); |
bosko001 | 3:1196befeace0 | 56 | |
bosko001 | 3:1196befeace0 | 57 | void showFlashData( void ); |
bosko001 | 3:1196befeace0 | 58 | |
bosko001 | 5:c9a908749d4c | 59 | |
bosko001 | 5:c9a908749d4c | 60 | |
bosko001 | 5:c9a908749d4c | 61 | void putHTMLintoFLASH( C_HTMLparse * ); |
bosko001 | 5:c9a908749d4c | 62 | void putFLASHintoHTML( C_HTMLparse * ); |
bosko001 | 5:c9a908749d4c | 63 | |
Bosko Lekovic |
18:5ee53205451a | 64 | char * get_myIPfromFlash( void ); |
Bosko Lekovic |
18:5ee53205451a | 65 | char *get_myMASKfromFlash(void ); |
Bosko Lekovic |
18:5ee53205451a | 66 | char *get_myGATEfromFlash( void ); |
bosko001 | 5:c9a908749d4c | 67 | |
bosko001 | 5:c9a908749d4c | 68 | |
bosko001 | 5:c9a908749d4c | 69 | |
bosko001 | 3:1196befeace0 | 70 | #endif |