Socket APIs
|
These are functions to access socket registers. More...
Functions | |
uint16_t | getSn_TX_FSR (uint8_t sn) |
Get Sn_TX_FSR register. More... | |
uint16_t | getSn_RX_RSR (uint8_t sn) |
Get Sn_RX_RSR register. More... | |
Detailed Description
These are functions to access socket registers.
Macro Definition Documentation
#define setSn_MR | ( | sn, | |
mr | |||
) | WIZCHIP_WRITE(Sn_MR(sn),mr) |
Set Sn_MR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)mr Value to set Sn_MR
- See also
- getSn_MR()
#define getSn_MR | ( | sn | ) | WIZCHIP_READ(Sn_MR(sn)) |
Get Sn_MR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_MR.
- See also
- setSn_MR()
#define setSn_CR | ( | sn, | |
cr | |||
) | WIZCHIP_WRITE(Sn_CR(sn), cr) |
Set Sn_CR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)cr Value to set Sn_CR
- See also
- getSn_CR()
#define getSn_CR | ( | sn | ) | WIZCHIP_READ(Sn_CR(sn)) |
Get Sn_CR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_CR.
- See also
- setSn_CR()
#define setSn_IR | ( | sn, | |
ir | |||
) | WIZCHIP_WRITE(Sn_IR(sn), (ir & 0x1F)) |
Set Sn_IR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)ir Value to set Sn_IR
- See also
- getSn_IR()
#define getSn_IR | ( | sn | ) | (WIZCHIP_READ(Sn_IR(sn)) & 0x1F) |
Get Sn_IR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_IR.
- See also
- setSn_IR()
#define setSn_IMR | ( | sn, | |
imr | |||
) | WIZCHIP_WRITE(Sn_IMR(sn), (imr & 0x1F)) |
Set Sn_IMR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)imr Value to set Sn_IMR
- See also
- getSn_IMR()
#define getSn_IMR | ( | sn | ) | (WIZCHIP_READ(Sn_IMR(sn)) & 0x1F) |
Get Sn_IMR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_IMR.
- See also
- setSn_IMR()
#define getSn_SR | ( | sn | ) | WIZCHIP_READ(Sn_SR(sn)) |
#define setSn_PORT | ( | sn, | |
port | |||
) |
Set Sn_PORT register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint16_t)port Value to set Sn_PORT.
- See also
- getSn_PORT()
#define getSn_PORT | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_PORT(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_PORT(sn),1))) |
Get Sn_PORT register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint16_t. Value of Sn_PORT.
- See also
- setSn_PORT()
#define setSn_DHAR | ( | sn, | |
dhar | |||
) | WIZCHIP_WRITE_BUF(Sn_DHAR(sn), dhar, 6) |
Set Sn_DHAR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t*)dhar Pointer variable to set socket n destination hardware address. It should be allocated 6 bytes.
- See also
- getSn_DHAR()
#define getSn_DHAR | ( | sn, | |
dhar | |||
) | WIZCHIP_READ_BUF(Sn_DHAR(sn), dhar, 6) |
Get Sn_MR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t*)dhar Pointer variable to get socket n destination hardware address. It should be allocated 6 bytes.
- See also
- setSn_DHAR()
#define setSn_DIPR | ( | sn, | |
dipr | |||
) | WIZCHIP_WRITE_BUF(Sn_DIPR(sn), dipr, 4) |
Set Sn_DIPR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t*)dipr Pointer variable to set socket n destination IP address. It should be allocated 4 bytes.
- See also
- getSn_DIPR()
#define getSn_DIPR | ( | sn, | |
dipr | |||
) | WIZCHIP_READ_BUF(Sn_DIPR(sn), dipr, 4) |
Get Sn_DIPR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t*)dipr Pointer variable to get socket n destination IP address. It should be allocated 4 bytes.
- See also
- setSn_DIPR()
#define setSn_DPORT | ( | sn, | |
dport | |||
) |
Set Sn_DPORT register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint16_t)dport Value to set Sn_DPORT
- See also
- getSn_DPORT()
#define getSn_DPORT | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_DPORT(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_DPORT(sn),1))) |
Get Sn_DPORT register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint16_t. Value of Sn_DPORT.
- See also
- setSn_DPORT()
#define setSn_MSSR | ( | sn, | |
mss | |||
) |
Set Sn_MSSR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint16_t)mss Value to set Sn_MSSR
- See also
- setSn_MSSR()
#define getSn_MSSR | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_MSSR(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_MSSR(sn),1))) |
Get Sn_MSSR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint16_t. Value of Sn_MSSR.
- See also
- setSn_MSSR()
#define setSn_TOS | ( | sn, | |
tos | |||
) | WIZCHIP_WRITE(Sn_TOS(sn), tos) |
Set Sn_TOS register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)tos Value to set Sn_TOS
- See also
- getSn_TOS()
#define getSn_TOS | ( | sn | ) | WIZCHIP_READ(Sn_TOS(sn)) |
Get Sn_TOS register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_TOS.
- See also
- setSn_TOS()
#define setSn_TTL | ( | sn, | |
ttl | |||
) | WIZCHIP_WRITE(Sn_TTL(sn), ttl) |
Set Sn_TTL register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)ttl Value to set Sn_TTL
- See also
- getSn_TTL()
#define getSn_TTL | ( | sn | ) | WIZCHIP_READ(Sn_TTL(sn)) |
Get Sn_TTL register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_TTL.
- See also
- setSn_TTL()
#define setSn_RXBUF_SIZE | ( | sn, | |
rxbufsize | |||
) | WIZCHIP_WRITE(Sn_RXBUF_SIZE(sn),rxbufsize) |
Set Sn_RXBUF_SIZE register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)rxbufsize Value to set Sn_RXBUF_SIZE
- See also
- getSn_RXBUF_SIZE()
#define getSn_RXBUF_SIZE | ( | sn | ) | WIZCHIP_READ(Sn_RXBUF_SIZE(sn)) |
Get Sn_RXBUF_SIZE register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_RXBUF_SIZE.
- See also
- setSn_RXBUF_SIZE()
#define setSn_TXBUF_SIZE | ( | sn, | |
txbufsize | |||
) | WIZCHIP_WRITE(Sn_TXBUF_SIZE(sn), txbufsize) |
Set Sn_TXBUF_SIZE register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)txbufsize Value to set Sn_TXBUF_SIZE
- See also
- getSn_TXBUF_SIZE()
#define getSn_TXBUF_SIZE | ( | sn | ) | WIZCHIP_READ(Sn_TXBUF_SIZE(sn)) |
Get Sn_TXBUF_SIZE register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_TXBUF_SIZE.
- See also
- setSn_TXBUF_SIZE()
#define getSn_TX_RD | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_TX_RD(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_TX_RD(sn),1))) |
#define setSn_TX_WR | ( | sn, | |
txwr | |||
) |
Set Sn_TX_WR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint16_t)txwr Value to set Sn_TX_WR
- See also
- GetSn_TX_WR()
#define getSn_TX_WR | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_TX_WR(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_TX_WR(sn),1))) |
Get Sn_TX_WR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint16_t. Value of Sn_TX_WR.
- See also
- setSn_TX_WR()
#define setSn_RX_RD | ( | sn, | |
rxrd | |||
) |
Set Sn_RX_RD register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint16_t)rxrd Value to set Sn_RX_RD
- See also
- getSn_RX_RD()
#define getSn_RX_RD | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_RX_RD(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_RX_RD(sn),1))) |
Get Sn_RX_RD register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint16_t. Value of Sn_RX_RD.
- See also
- setSn_RX_RD()
#define getSn_RX_WR | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_RX_WR(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_RX_WR(sn),1))) |
#define setSn_FRAG | ( | sn, | |
frag | |||
) |
#define getSn_FRAG | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_FRAG(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_FRAG(sn),1))) |
Get Sn_FRAG register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint16_t. Value of Sn_FRAG.
- See also
- setSn_FRAG()
#define setSn_KPALVTR | ( | sn, | |
kpalvt | |||
) | WIZCHIP_WRITE(Sn_KPALVTR(sn), kpalvt) |
Set Sn_KPALVTR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7. (uint8_t)kpalvt Value to set Sn_KPALVTR
- See also
- getSn_KPALVTR()
#define getSn_KPALVTR | ( | sn | ) | WIZCHIP_READ(Sn_KPALVTR(sn)) |
Get Sn_KPALVTR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ 7.
- Returns
- uint8_t. Value of Sn_KPALVTR.
- See also
- setSn_KPALVTR()
Function Documentation
uint16_t getSn_TX_FSR | ( | uint8_t | sn | ) |
Generated on Wed May 4 2016 16:44:01 for Socket APIs by 1.8.9.1