Added RAW sockets.
Fork of WIZnetInterface by
Diff: arch/int/W7500x_toe.h
- Revision:
- 30:3b0481541a06
- Parent:
- 14:2101ab5ee40f
--- a/arch/int/W7500x_toe.h Tue Nov 17 06:35:55 2015 +0000 +++ b/arch/int/W7500x_toe.h Tue Dec 19 12:49:35 2017 +0000 @@ -48,6 +48,12 @@ #define Sn_IR (0x0020) //--Sn_ISR #define Sn_SR (0x0030) #define Sn_PORT (0x0114) +// Geminate Changes +#define Sn_DHAR0 (0x0118) +#define Sn_DHAR1 (0x011C) +#define Sn_RCR (0x6044) +#define Sn_RTR (0x6040) +// end #define Sn_DIPR (0x0124) #define Sn_DPORT (0x0120) #define Sn_RXBUF_SIZE (0x0200) @@ -74,6 +80,7 @@ CLOSED = 0, TCP = 1, UDP = 2, + RAW = 4 }; enum Command { @@ -113,6 +120,11 @@ }; WIZnet_Chip(); + + // Geminate Changes. + int get_DHAR0(int socket); + int get_DHAR1(int socket); + // End Changes. /* * Set MAC Address to W7500x_TOE @@ -188,6 +200,7 @@ * @param len string length */ int send(int socket, const char * str, int len); + int sendRaw(int socket, const char * str, int len); int recv(int socket, char* buf, int len);