This is the Interface library for WIZnet W5500 chip which forked of EthernetInterfaceW5500, WIZnetInterface and WIZ550ioInterface. This library has simple name as "W5500Interface". and can be used for Wiz550io users also.

Dependents:   EvrythngApi Websocket_Ethernet_HelloWorld_W5500 Websocket_Ethernet_W5500 CurrentWeatherData_W5500 ... more

Embed: (wiki syntax)

« Back to documentation index

EthernetInterface Class Reference

EthernetInterface Class Reference

Interface using Wiznet W5500 chip to connect to an IP-based network. More...

#include <EthernetInterface.h>

Inherits WIZnet_Chip.

Public Member Functions

 EthernetInterface (PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset)
 Constructor.
int init ()
 Initialize the interface with DHCP w/o MAC address Initialize the interface and configure it to use DHCP (no connection at this point).
int init (uint8_t *mac)
 Initialize the interface with DHCP.
int init (const char *ip, const char *mask, const char *gateway)
 Initialize the interface with a static IP address without MAC.
int init (uint8_t *mac, const char *ip, const char *mask, const char *gateway)
 Initialize the interface with a static IP address.
int connect ()
 Connect Bring the interface up, start DHCP if needed.
int disconnect ()
 Disconnect Bring the interface down.
char * getIPAddress ()
 Get IP address.
void setMR (uint8_t mr)
 Set Mode Register.
uint8_t getMR ()
 Get Mode Register.
void setGAR (uint8_t *gar)
 Set gateway IP address.
void getGAR (uint8_t *gar)
 Get gateway IP address.
void setSUBR (uint8_t *subr)
 Set subnet mask address.
void getSUBR (uint8_t *subr)
 Get subnet mask address.
void setSHAR (uint8_t *shar)
 Set local MAC address.
void getSHAR (uint8_t *shar)
 Get local MAC address.
void setSIPR (uint8_t *sipr)
 Set local IP address.
void getSIPR (uint8_t *sipr)
 Get local IP address.
void setINTLEVEL (uint16_t intlevel)
 Set INTLEVEL register.
uint16_t getINTLEVEL ()
 Get INTLEVEL register.
void setIR (uint8_t ir)
 Set IR register.
uint8_t getIR ()
 Get IR register.
void setIMR (uint8_t imr)
 Set IMR register.
uint8_t getIMR ()
 Get IMR register.
void setSIR (uint8_t sir)
 Set SIR register.
uint8_t getSIR ()
 Get SIR register.
void setSIMR (uint8_t simr)
 Set SIMR register.
uint8_t getSIMR ()
 Get SIMR register.
void setRTR (uint16_t rtr)
 Set RTR register.
uint16_t getRTR ()
 Get RTR register.
void setRCR (uint8_t rcr)
 Set RCR register.
uint8_t getRCR ()
 Get RCR register.
void setPTIMER (uint8_t ptimer)
 Set PTIMER register.
uint8_t getPTIMER ()
 Get PTIMER register.
void setPMAGIC (uint8_t pmagic)
 Set PMAGIC register.
uint8_t getPMAGIC (uint8_t pmagic)
 Get PMAGIC register.
void setPHAR (uint8_t *phar)
 Set PHAR address.
void getPHAR (uint8_t *phar)
 Get local IP address.
void setPSID (uint16_t psid)
 Set PSID register.
uint16_t getPSID ()
 Get PSID register.
void setPMRU (uint16_t pmru)
 Set PMRU register.
uint16_t getPMRU ()
 Get PMRU register.
void getUIPR (uint8_t *uipr)
 Get unreachable IP address.
uint16_t getUPORTR ()
 Get UPORTR register.
void setPHYCFGR (uint8_t phycfgr)
 Set PHYCFGR register.
uint8_t getPHYCFGR ()
 Get PHYCFGR register.
uint8_t getVERSIONR ()
 Get VERSIONR register.
void setSn_MR (uint8_t sn, uint8_t mr)
 Set Sn_MR register.
uint8_t getSn_MR (uint8_t sn)
 Get Sn_MR register.
void setSn_CR (uint8_t sn, uint8_t cr)
 Set Sn_CR register.
uint8_t getSn_CR (uint8_t sn)
 Get Sn_CR register.
void setSn_IR (uint8_t sn, uint8_t ir)
 Set Sn_IR register.
uint8_t getSn_IR (uint8_t sn)
 Get Sn_IR register.
void setSn_IMR (uint8_t sn, uint8_t imr)
 Set Sn_IMR register.
uint8_t getSn_IMR (uint8_t sn)
 Get Sn_IMR register.
uint8_t getSn_SR (uint8_t sn)
 Get Sn_SR register.
void setSn_PORT (uint8_t sn, uint16_t port)
 Set Sn_PORT register.
uint16_t getSn_PORT (uint8_t sn)
 Get Sn_PORT register.
void setSn_DHAR (uint8_t sn, uint8_t *dhar)
 Set Sn_DHAR register.
void getSn_DHAR (uint8_t sn, uint8_t *dhar)
 Get Sn_MR register.
void setSn_DIPR (uint8_t sn, uint8_t *dipr)
 Set Sn_DIPR register.
void getSn_DIPR (uint8_t sn, uint8_t *dipr)
 Get Sn_DIPR register.
void setSn_DPORT (uint8_t sn, uint16_t dport)
 Set Sn_DPORT register.
uint16_t getSn_DPORT (uint8_t sn)
 Get Sn_DPORT register.
void setSn_MSSR (uint8_t sn, uint16_t mss)
 Set Sn_MSSR register.
uint16_t getSn_MSSR (uint16_t sn)
 Get Sn_MSSR register.
void setSn_TOS (uint8_t sn, uint8_t tos)
 Set Sn_TOS register.
uint8_t getSn_TOS (uint8_t sn)
 Get Sn_TOS register.
void setSn_TTL (uint8_t sn, uint8_t ttl)
 Set Sn_TTL register.
uint8_t getSn_TTL (uint8_t sn)
 Get Sn_TTL register.
void setSn_RXBUF_SIZE (uint8_t sn, uint8_t rxbufsize)
 Set Sn_RXBUF_SIZE register.
uint8_t getSn_RXBUF_SIZE (uint8_t sn)
 Get Sn_RXBUF_SIZE register.
void setSn_TXBUF_SIZE (uint8_t sn, uint8_t txbufsize)
 Set Sn_TXBUF_SIZE register.
uint8_t getSn_TXBUF_SIZE (uint8_t sn)
 Get Sn_TXBUF_SIZE register.
uint16_t getSn_TX_FSR (uint8_t sn)
 Get Sn_TX_FSR register.
uint16_t getSn_TX_RD (uint8_t sn)
 Get Sn_TX_RD register.
void setSn_TX_WR (uint8_t sn, uint16_t txwr)
 Set Sn_TX_WR register.
uint16_t getSn_TX_WR (uint8_t sn)
 Get Sn_TX_WR register.
uint16_t getSn_RX_RSR (uint8_t sn)
 Get Sn_RX_RSR register.
void setSn_RX_RD (uint8_t sn, uint16_t rxrd)
 Set Sn_RX_RD register.
uint16_t getSn_RX_RD (uint8_t sn)
 Get Sn_RX_RD register.
uint16_t getSn_RX_WR (uint8_t sn)
 Get Sn_RX_WR register.
void setSn_FRAG (uint8_t sn, uint16_t frag)
 Set Sn_FRAG register.
uint16_t getSn_FRAG (uint8_t sn)
 Get Sn_FRAG register.
void setSn_KPALVTR (uint8_t sn, uint8_t kpalvt)
 Set Sn_KPALVTR register.
uint8_t getSn_KPALVTR (uint8_t sn)
 Get Sn_KPALVTR register.
uint16_t getSn_RxMAX (uint8_t sn)
 Gets the max buffer size of socket sn passed as parameter.
uint16_t getSn_TxMAX (uint8_t sn)
 Gets the max buffer size of socket sn passed as parameters.

Detailed Description

Interface using Wiznet W5500 chip to connect to an IP-based network.

Definition at line 11 of file EthernetInterface.h.


Constructor & Destructor Documentation

EthernetInterface ( PinName  mosi,
PinName  miso,
PinName  sclk,
PinName  cs,
PinName  reset 
)

Constructor.

Parameters:
mosimbed pin to use for SPI
misombed pin to use for SPI
sclkmbed pin to use for SPI
cschip select of the WIZnet_Chip
resetreset pin of the WIZnet_Chip

Definition at line 33 of file EthernetInterface.cpp.


Member Function Documentation

int connect (  )

Connect Bring the interface up, start DHCP if needed.

Returns:
0 on success, a negative number on failure

Definition at line 108 of file EthernetInterface.cpp.

int disconnect (  )

Disconnect Bring the interface down.

Returns:
0 on success, a negative number on failure

Definition at line 122 of file EthernetInterface.cpp.

void getGAR ( uint8_t *  gar ) [inherited]

Get gateway IP address.

Parameters:
(uint8_t*)garPointer variable to get gateway IP address. It should be allocated 4 bytes.
See also:
setGAR()

Definition at line 423 of file W5500.h.

uint8_t getIMR (  ) [inherited]

Get IMR register.

Returns:
uint8_t. Value of IMR register.
See also:
setIMR()

Definition at line 545 of file W5500.h.

uint16_t getINTLEVEL (  ) [inherited]

Get INTLEVEL register.

Returns:
uint16_t. Value of INTLEVEL register.
See also:
setINTLEVEL()

Definition at line 505 of file W5500.h.

char * getIPAddress (  )

Get IP address.

@ returns ip address

Definition at line 136 of file EthernetInterface.cpp.

uint8_t getIR (  ) [inherited]

Get IR register.

Returns:
uint8_t. Value of IR register.
See also:
setIR()

Definition at line 525 of file W5500.h.

uint8_t getMR (  ) [inherited]

Get Mode Register.

Returns:
uint8_t. The value of Mode register.
See also:
setMR()

Definition at line 403 of file W5500.h.

void getPHAR ( uint8_t *  phar ) [inherited]

Get local IP address.

Parameters:
(uint8_t*)pharPointer variable to PPP destination MAC register address. It should be allocated 6 bytes.
See also:
setPHAR()

Definition at line 693 of file W5500.h.

uint8_t getPHYCFGR (  ) [inherited]

Get PHYCFGR register.

Returns:
uint8_t. Value of PHYCFGR register.
See also:
setPHYCFGR()

Definition at line 772 of file W5500.h.

uint8_t getPMAGIC ( uint8_t  pmagic ) [inherited]

Get PMAGIC register.

Returns:
uint8_t. Value of PMAGIC register.
See also:
setPMAGIC()

Definition at line 674 of file W5500.h.

uint16_t getPMRU (  ) [inherited]

Get PMRU register.

Returns:
uint16_t. Value of PMRU register.
See also:
setPMRU()

Definition at line 734 of file W5500.h.

uint16_t getPSID (  ) [inherited]

Get PSID register.

Returns:
uint16_t. Value of PSID register.
See also:
setPSID()

Definition at line 714 of file W5500.h.

uint8_t getPTIMER (  ) [inherited]

Get PTIMER register.

Returns:
uint8_t. Value of PTIMER register.
See also:
setPTIMER()

Definition at line 647 of file W5500.h.

uint8_t getRCR (  ) [inherited]

Get RCR register.

Returns:
uint8_t. Value of RCR register.
See also:
setRCR()

Definition at line 625 of file W5500.h.

uint16_t getRTR (  ) [inherited]

Get RTR register.

Returns:
uint16_t. Value of RTR register.
See also:
setRTR()

Definition at line 605 of file W5500.h.

void getSHAR ( uint8_t *  shar ) [inherited]

Get local MAC address.

Parameters:
(uint8_t*)sharPointer variable to get local MAC address. It should be allocated 6 bytes.
See also:
setSHAR()

Definition at line 464 of file W5500.h.

uint8_t getSIMR (  ) [inherited]

Get SIMR register.

Returns:
uint8_t. Value of SIMR register.
See also:
setSIMR()

Definition at line 585 of file W5500.h.

void getSIPR ( uint8_t *  sipr ) [inherited]

Get local IP address.

Parameters:
(uint8_t*)siprPointer variable to get local IP address. It should be allocated 4 bytes.
See also:
setSIPR()

Definition at line 484 of file W5500.h.

uint8_t getSIR (  ) [inherited]

Get SIR register.

Returns:
uint8_t. Value of SIR register.
See also:
setSIR()

Definition at line 566 of file W5500.h.

uint8_t getSn_CR ( uint8_t  sn ) [inherited]

Get Sn_CR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_CR.
See also:
setSn_CR()

Definition at line 830 of file W5500.h.

void getSn_DHAR ( uint8_t  sn,
uint8_t *  dhar 
) [inherited]

Get Sn_MR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t*)dharPointer variable to get socket n destination hardware address. It should be allocated 6 bytes.
See also:
setSn_DHAR()

Definition at line 928 of file W5500.h.

void getSn_DIPR ( uint8_t  sn,
uint8_t *  dipr 
) [inherited]

Get Sn_DIPR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t*)diprPointer variable to get socket n destination IP address. It should be allocated 4 bytes.
See also:
SetSn_DIPR()

Definition at line 950 of file W5500.h.

uint16_t getSn_DPORT ( uint8_t  sn ) [inherited]

Get Sn_DPORT register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_DPORT.
See also:
setSn_DPORT()

Definition at line 972 of file W5500.h.

uint16_t getSn_FRAG ( uint8_t  sn ) [inherited]

Get Sn_FRAG register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_FRAG.
See also:
setSn_FRAG()

Definition at line 1195 of file W5500.h.

uint8_t getSn_IMR ( uint8_t  sn ) [inherited]

Get Sn_IMR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_IMR.
See also:
setSn_IMR()

Definition at line 874 of file W5500.h.

uint8_t getSn_IR ( uint8_t  sn ) [inherited]

Get Sn_IR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_IR.
See also:
setSn_IR()

Definition at line 852 of file W5500.h.

uint8_t getSn_KPALVTR ( uint8_t  sn ) [inherited]

Get Sn_KPALVTR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_KPALVTR.
See also:
setSn_KPALVTR()

Definition at line 1217 of file W5500.h.

uint8_t getSn_MR ( uint8_t  sn ) [inherited]

Get Sn_MR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_MR.
See also:
setSn_MR()

Definition at line 808 of file W5500.h.

uint16_t getSn_MSSR ( uint16_t  sn ) [inherited]

Get Sn_MSSR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_MSSR.
See also:
setSn_MSSR()

Definition at line 994 of file W5500.h.

uint16_t getSn_PORT ( uint8_t  sn ) [inherited]

Get Sn_PORT register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_PORT.
See also:
setSn_PORT()

Definition at line 906 of file W5500.h.

uint16_t getSn_RX_RD ( uint8_t  sn ) [inherited]

Get Sn_RX_RD register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7. uint16_t. Value of Sn_RX_RD.
See also:
setSn_RX_RD()

Definition at line 1162 of file W5500.h.

uint16_t getSn_RX_RSR ( uint8_t  sn ) [inherited]

Get Sn_RX_RSR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_RX_RSR.

Definition at line 1139 of file W5500.h.

uint16_t getSn_RX_WR ( uint8_t  sn ) [inherited]

Get Sn_RX_WR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_RX_WR.

Definition at line 1172 of file W5500.h.

uint8_t getSn_RXBUF_SIZE ( uint8_t  sn ) [inherited]

Get Sn_RXBUF_SIZE register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_RXBUF_SIZE.
See also:
setSn_RXBUF_SIZE()

Definition at line 1063 of file W5500.h.

uint16_t getSn_RxMAX ( uint8_t  sn ) [inherited]

Gets the max buffer size of socket sn passed as parameter.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Socket n RX max buffer size.

Definition at line 1231 of file W5500.h.

uint8_t getSn_SR ( uint8_t  sn ) [inherited]

Get Sn_SR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_SR.

Definition at line 884 of file W5500.h.

uint8_t getSn_TOS ( uint8_t  sn ) [inherited]

Get Sn_TOS register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_TOS.
See also:
setSn_TOS()

Definition at line 1016 of file W5500.h.

uint8_t getSn_TTL ( uint8_t  sn ) [inherited]

Get Sn_TTL register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_TTL.
See also:
setSn_TTL()

Definition at line 1039 of file W5500.h.

uint16_t getSn_TX_FSR ( uint8_t  sn ) [inherited]

Get Sn_TX_FSR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_TX_FSR.

Definition at line 1095 of file W5500.h.

uint16_t getSn_TX_RD ( uint8_t  sn ) [inherited]

Get Sn_TX_RD register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_TX_RD.

Definition at line 1106 of file W5500.h.

uint16_t getSn_TX_WR ( uint8_t  sn ) [inherited]

Get Sn_TX_WR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Sn_TX_WR.
See also:
setSn_TX_WR()

Definition at line 1128 of file W5500.h.

uint8_t getSn_TXBUF_SIZE ( uint8_t  sn ) [inherited]

Get Sn_TXBUF_SIZE register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint8_t. Value of Sn_TXBUF_SIZE.
See also:
setSn_TXBUF_SIZE()

Definition at line 1085 of file W5500.h.

uint16_t getSn_TxMAX ( uint8_t  sn ) [inherited]

Gets the max buffer size of socket sn passed as parameters.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
Returns:
uint16_t. Value of Socket n TX max buffer size.

Definition at line 1241 of file W5500.h.

void getSUBR ( uint8_t *  subr ) [inherited]

Get subnet mask address.

Parameters:
(uint8_t*)subrPointer variable to get subnet mask address. It should be allocated 4 bytes.
See also:
setSUBR()

Definition at line 444 of file W5500.h.

void getUIPR ( uint8_t *  uipr ) [inherited]

Get unreachable IP address.

Parameters:
(uint8_t*)uiprPointer variable to get unreachable IP address. It should be allocated 4 bytes.

Definition at line 743 of file W5500.h.

uint16_t getUPORTR (  ) [inherited]

Get UPORTR register.

Returns:
uint16_t. Value of UPORTR register.

Definition at line 752 of file W5500.h.

uint8_t getVERSIONR (  ) [inherited]

Get VERSIONR register.

Returns:
uint8_t. Value of VERSIONR register.

Definition at line 781 of file W5500.h.

int init ( uint8_t *  mac,
const char *  ip,
const char *  mask,
const char *  gateway 
)

Initialize the interface with a static IP address.

Initialize the interface and configure it with the following static configuration (no connection at this point).

Parameters:
macthe MAC address to use
ipthe IP address to use
maskthe IP address mask
gatewaythe gateway to use
Returns:
0 on success, a negative number on failure

Definition at line 87 of file EthernetInterface.cpp.

int init (  )

Initialize the interface with DHCP w/o MAC address Initialize the interface and configure it to use DHCP (no connection at this point).

Returns:
0 on success, a negative number on failure

Definition at line 46 of file EthernetInterface.cpp.

int init ( const char *  ip,
const char *  mask,
const char *  gateway 
)

Initialize the interface with a static IP address without MAC.

Initialize the interface and configure it with the following static configuration (no connection at this point).

Parameters:
ipthe IP address to use
maskthe IP address mask
gatewaythe gateway to use
Returns:
0 on success, a negative number on failure

Definition at line 68 of file EthernetInterface.cpp.

int init ( uint8_t *  mac )

Initialize the interface with DHCP.

Initialize the interface and configure it to use DHCP (no connection at this point).

Parameters:
macthe MAC address to use
Returns:
0 on success, a negative number on failure

Definition at line 56 of file EthernetInterface.cpp.

void setGAR ( uint8_t *  gar ) [inherited]

Set gateway IP address.

Parameters:
(uint8_t*)garPointer variable to set gateway IP address. It should be allocated 4 bytes.
See also:
getGAR()

Definition at line 413 of file W5500.h.

void setIMR ( uint8_t  imr ) [inherited]

Set IMR register.

Parameters:
(uint8_t)imrValue to set IMR register.
See also:
getIMR()

Definition at line 535 of file W5500.h.

void setINTLEVEL ( uint16_t  intlevel ) [inherited]

Set INTLEVEL register.

Parameters:
(uint16_t)intlevelValue to set INTLEVEL register.
See also:
getINTLEVEL()

Definition at line 494 of file W5500.h.

void setIR ( uint8_t  ir ) [inherited]

Set IR register.

Parameters:
(uint8_t)irValue to set IR register.
See also:
getIR()

Definition at line 515 of file W5500.h.

void setMR ( uint8_t  mr ) [inherited]

Set Mode Register.

Parameters:
(uint8_t)mrThe value to be set.
See also:
getMR()

Definition at line 392 of file W5500.h.

void setPHAR ( uint8_t *  phar ) [inherited]

Set PHAR address.

Parameters:
(uint8_t*)pharPointer variable to set PPP destination MAC register address. It should be allocated 6 bytes.
See also:
getPHAR()

Definition at line 683 of file W5500.h.

void setPHYCFGR ( uint8_t  phycfgr ) [inherited]

Set PHYCFGR register.

Parameters:
(uint8_t)phycfgrValue to set PHYCFGR register.
See also:
getPHYCFGR()

Definition at line 762 of file W5500.h.

void setPMAGIC ( uint8_t  pmagic ) [inherited]

Set PMAGIC register.

Parameters:
(uint8_t)pmagicValue to set PMAGIC register.
See also:
getPMAGIC()

Definition at line 661 of file W5500.h.

void setPMRU ( uint16_t  pmru ) [inherited]

Set PMRU register.

Parameters:
(uint16_t)pmruValue to set PMRU register.
See also:
getPMRU()

Definition at line 724 of file W5500.h.

void setPSID ( uint16_t  psid ) [inherited]

Set PSID register.

Parameters:
(uint16_t)psidValue to set PSID register.
See also:
getPSID()

Definition at line 703 of file W5500.h.

void setPTIMER ( uint8_t  ptimer ) [inherited]

Set PTIMER register.

Parameters:
(uint8_t)ptimerValue to set PTIMER register.
See also:
getPTIMER()

Definition at line 637 of file W5500.h.

void setRCR ( uint8_t  rcr ) [inherited]

Set RCR register.

Parameters:
(uint8_t)rcrValue to set RCR register.
See also:
getRCR()

Definition at line 615 of file W5500.h.

void setRTR ( uint16_t  rtr ) [inherited]

Set RTR register.

Parameters:
(uint16_t)rtrValue to set RTR register.
See also:
getRTR()

Definition at line 595 of file W5500.h.

void setSHAR ( uint8_t *  shar ) [inherited]

Set local MAC address.

Parameters:
(uint8_t*)sharPointer variable to set local MAC address. It should be allocated 6 bytes.
See also:
getSHAR()

Definition at line 454 of file W5500.h.

void setSIMR ( uint8_t  simr ) [inherited]

Set SIMR register.

Parameters:
(uint8_t)simrValue to set SIMR register.
See also:
getSIMR()

Definition at line 575 of file W5500.h.

void setSIPR ( uint8_t *  sipr ) [inherited]

Set local IP address.

Parameters:
(uint8_t*)siprPointer variable to set local IP address. It should be allocated 4 bytes.
See also:
getSIPR()

Definition at line 474 of file W5500.h.

void setSIR ( uint8_t  sir ) [inherited]

Set SIR register.

Parameters:
(uint8_t)sirValue to set SIR register.
See also:
getSIR()

Definition at line 556 of file W5500.h.

void setSn_CR ( uint8_t  sn,
uint8_t  cr 
) [inherited]

Set Sn_CR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)crValue to set Sn_CR
See also:
getSn_CR()

Definition at line 819 of file W5500.h.

void setSn_DHAR ( uint8_t  sn,
uint8_t *  dhar 
) [inherited]

Set Sn_DHAR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t*)dharPointer variable to set socket n destination hardware address. It should be allocated 6 bytes.
See also:
getSn_DHAR()

Definition at line 917 of file W5500.h.

void setSn_DIPR ( uint8_t  sn,
uint8_t *  dipr 
) [inherited]

Set Sn_DIPR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t*)diprPointer variable to set socket n destination IP address. It should be allocated 4 bytes.
See also:
getSn_DIPR()

Definition at line 939 of file W5500.h.

void setSn_DPORT ( uint8_t  sn,
uint16_t  dport 
) [inherited]

Set Sn_DPORT register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint16_t)dportValue to set Sn_DPORT
See also:
getSn_DPORT()

Definition at line 961 of file W5500.h.

void setSn_FRAG ( uint8_t  sn,
uint16_t  frag 
) [inherited]

Set Sn_FRAG register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint16_t)fragValue to set Sn_FRAG
See also:
getSn_FRAD()

Definition at line 1184 of file W5500.h.

void setSn_IMR ( uint8_t  sn,
uint8_t  imr 
) [inherited]

Set Sn_IMR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)imrValue to set Sn_IMR
See also:
getSn_IMR()

Definition at line 863 of file W5500.h.

void setSn_IR ( uint8_t  sn,
uint8_t  ir 
) [inherited]

Set Sn_IR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)irValue to set Sn_IR
See also:
getSn_IR()

Definition at line 841 of file W5500.h.

void setSn_KPALVTR ( uint8_t  sn,
uint8_t  kpalvt 
) [inherited]

Set Sn_KPALVTR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)kpalvtValue to set Sn_KPALVTR
See also:
getSn_KPALVTR()

Definition at line 1206 of file W5500.h.

void setSn_MR ( uint8_t  sn,
uint8_t  mr 
) [inherited]

Set Sn_MR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)mrValue to set Sn_MR
See also:
getSn_MR()

Definition at line 797 of file W5500.h.

void setSn_MSSR ( uint8_t  sn,
uint16_t  mss 
) [inherited]

Set Sn_MSSR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint16_t)mssValue to set Sn_MSSR
See also:
setSn_MSSR()

Definition at line 983 of file W5500.h.

void setSn_PORT ( uint8_t  sn,
uint16_t  port 
) [inherited]

Set Sn_PORT register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint16_t)portValue to set Sn_PORT.
See also:
getSn_PORT()

Definition at line 895 of file W5500.h.

void setSn_RX_RD ( uint8_t  sn,
uint16_t  rxrd 
) [inherited]

Set Sn_RX_RD register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint16_t)rxrdValue to set Sn_RX_RD
See also:
getSn_RX_RD()

Definition at line 1151 of file W5500.h.

void setSn_RXBUF_SIZE ( uint8_t  sn,
uint8_t  rxbufsize 
) [inherited]

Set Sn_RXBUF_SIZE register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)rxbufsizeValue to set Sn_RXBUF_SIZE
See also:
getSn_RXBUF_SIZE()

Definition at line 1051 of file W5500.h.

void setSn_TOS ( uint8_t  sn,
uint8_t  tos 
) [inherited]

Set Sn_TOS register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)tosValue to set Sn_TOS
See also:
getSn_TOS()

Definition at line 1005 of file W5500.h.

void setSn_TTL ( uint8_t  sn,
uint8_t  ttl 
) [inherited]

Set Sn_TTL register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)ttlValue to set Sn_TTL
See also:
getSn_TTL()

Definition at line 1027 of file W5500.h.

void setSn_TX_WR ( uint8_t  sn,
uint16_t  txwr 
) [inherited]

Set Sn_TX_WR register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint16_t)txwrValue to set Sn_TX_WR
See also:
GetSn_TX_WR()

Definition at line 1117 of file W5500.h.

void setSn_TXBUF_SIZE ( uint8_t  sn,
uint8_t  txbufsize 
) [inherited]

Set Sn_TXBUF_SIZE register.

Parameters:
(uint8_t)snSocket number. It should be 0 ~ 7.
(uint8_t)txbufsizeValue to set Sn_TXBUF_SIZE
See also:
getSn_TXBUF_SIZE()

Definition at line 1074 of file W5500.h.

void setSUBR ( uint8_t *  subr ) [inherited]

Set subnet mask address.

Parameters:
(uint8_t*)subrPointer variable to set subnet mask address. It should be allocated 4 bytes.
See also:
getSUBR()

Definition at line 433 of file W5500.h.