bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
dataFlash.h@4:7abcf4543282, 2020-04-11 (annotated)
- Committer:
- bosko001
- Date:
- Sat Apr 11 17:11:38 2020 +0000
- Revision:
- 4:7abcf4543282
- Parent:
- DataFlash/dataFlash.h@3:1196befeace0
dxml bug removed
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 | 3:1196befeace0 | 5 | |
bosko001 | 3:1196befeace0 | 6 | |
bosko001 | 3:1196befeace0 | 7 | struct S_FlashData |
bosko001 | 3:1196befeace0 | 8 | { |
bosko001 | 3:1196befeace0 | 9 | struct S_EthernetAddress s_EthAdd; |
bosko001 | 3:1196befeace0 | 10 | char serverPortUdp[6]; |
bosko001 | 3:1196befeace0 | 11 | char serverPortTcp[6]; |
bosko001 | 3:1196befeace0 | 12 | struct S_EthernetAddress_Remote s_EthAddRemUdp[3]; |
bosko001 | 3:1196befeace0 | 13 | // struct S_EthernetAddress_RangeRemote s_EthAddRangeRemUDP; |
bosko001 | 3:1196befeace0 | 14 | struct S_EthernetAddress_Remote s_EthAddRemTcp[3]; |
bosko001 | 3:1196befeace0 | 15 | // struct S_EthernetAddress_RangeRemote s_EthAddRangeRemTcp; |
bosko001 | 3:1196befeace0 | 16 | int baudRate, parity, dataBits, stopBits; |
bosko001 | 3:1196befeace0 | 17 | }; |
bosko001 | 3:1196befeace0 | 18 | |
bosko001 | 3:1196befeace0 | 19 | union U_FlashData |
bosko001 | 3:1196befeace0 | 20 | { |
bosko001 | 3:1196befeace0 | 21 | struct S_FlashData s_flashData; |
bosko001 | 3:1196befeace0 | 22 | char data[sizeof( struct S_FlashData )]; |
bosko001 | 3:1196befeace0 | 23 | }; |
bosko001 | 3:1196befeace0 | 24 | |
bosko001 | 3:1196befeace0 | 25 | |
bosko001 | 3:1196befeace0 | 26 | |
bosko001 | 3:1196befeace0 | 27 | void progDataIntoFlash( struct S_FlashData *ps_fd ); |
bosko001 | 3:1196befeace0 | 28 | |
bosko001 | 3:1196befeace0 | 29 | void readDataFromFlash( struct S_FlashData *ps_fd ); |
bosko001 | 3:1196befeace0 | 30 | |
bosko001 | 3:1196befeace0 | 31 | void fillDataIntoFlash( void ); |
bosko001 | 3:1196befeace0 | 32 | |
bosko001 | 3:1196befeace0 | 33 | void refreshDataFromFlash( void ); |
bosko001 | 3:1196befeace0 | 34 | |
bosko001 | 3:1196befeace0 | 35 | |
bosko001 | 3:1196befeace0 | 36 | void init_FlashData( void ); |
bosko001 | 3:1196befeace0 | 37 | |
bosko001 | 3:1196befeace0 | 38 | void deinit_FlashData( void ); |
bosko001 | 3:1196befeace0 | 39 | |
bosko001 | 3:1196befeace0 | 40 | void showFlashData( void ); |
bosko001 | 3:1196befeace0 | 41 | |
bosko001 | 3:1196befeace0 | 42 | #endif |