bosko lekovic
/
EthToCom_11
nova proba
Diff: DataFlash/dataFlash.h
- Revision:
- 3:1196befeace0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DataFlash/dataFlash.h Wed Apr 08 08:41:16 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