bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
Ethernet/EthernetSetup.h@18:5ee53205451a, 2020-05-17 (annotated)
- Committer:
- Bosko Lekovic
- Date:
- Sun May 17 17:16:03 2020 +0200
- Revision:
- 18:5ee53205451a
- Parent:
- 10:15f7fea18a2f
- Child:
- 21:2232f5a34eb4
udp i serial zakomentarisani
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bosko001 | 2:45b351b4fc2a | 1 | #ifndef ETHERNETSETUP_H |
bosko001 | 2:45b351b4fc2a | 2 | #define ETHERNETSETUP_H |
bosko001 | 2:45b351b4fc2a | 3 | |
bosko001 | 2:45b351b4fc2a | 4 | #include "EthernetInterface.h" |
bosko001 | 2:45b351b4fc2a | 5 | #include "clubbing.h" |
bosko001 | 2:45b351b4fc2a | 6 | |
bosko001 | 2:45b351b4fc2a | 7 | |
bosko001 | 2:45b351b4fc2a | 8 | struct S_EthernetAddress |
bosko001 | 2:45b351b4fc2a | 9 | { |
bosko001 | 2:45b351b4fc2a | 10 | char ip[16]; |
bosko001 | 2:45b351b4fc2a | 11 | char mask[16]; |
bosko001 | 2:45b351b4fc2a | 12 | char gate[16]; |
bosko001 | 2:45b351b4fc2a | 13 | // int port; |
bosko001 | 2:45b351b4fc2a | 14 | }; |
bosko001 | 10:15f7fea18a2f | 15 | // |
bosko001 | 10:15f7fea18a2f | 16 | //struct S_EthernetAddress_Remote |
bosko001 | 10:15f7fea18a2f | 17 | //{ |
bosko001 | 10:15f7fea18a2f | 18 | // char ip[16]; |
bosko001 | 10:15f7fea18a2f | 19 | // int port; |
bosko001 | 10:15f7fea18a2f | 20 | //}; |
bosko001 | 2:45b351b4fc2a | 21 | |
bosko001 | 2:45b351b4fc2a | 22 | |
bosko001 | 2:45b351b4fc2a | 23 | |
bosko001 | 2:45b351b4fc2a | 24 | struct S_net |
bosko001 | 2:45b351b4fc2a | 25 | { |
bosko001 | 2:45b351b4fc2a | 26 | struct S_EthernetAddress *ps_ea; |
bosko001 | 2:45b351b4fc2a | 27 | EthernetInterface *p_eth; |
bosko001 | 2:45b351b4fc2a | 28 | }; |
bosko001 | 2:45b351b4fc2a | 29 | |
bosko001 | 2:45b351b4fc2a | 30 | |
bosko001 | 2:45b351b4fc2a | 31 | EthernetInterface * ethernet_setup( void ); |
bosko001 | 2:45b351b4fc2a | 32 | |
Bosko Lekovic |
18:5ee53205451a | 33 | int getEthernetStatus( void ); |
Bosko Lekovic |
18:5ee53205451a | 34 | |
bosko001 | 9:893843262a1f | 35 | void ethRestart( void ); |
bosko001 | 9:893843262a1f | 36 | void ethCancel( void ); |
Bosko Lekovic |
18:5ee53205451a | 37 | int ethRiseUp( void ); |
bosko001 | 2:45b351b4fc2a | 38 | |
bosko001 | 2:45b351b4fc2a | 39 | |
bosko001 | 2:45b351b4fc2a | 40 | #endif |