Socket APIs
|
These are functions to access socket registers. More...
Macros | |
#define | setSn_MR(sn, mr) WIZCHIP_WRITE(Sn_MR(sn),mr) |
Set Sn_MR register. More... | |
#define | getSn_MR(sn) WIZCHIP_READ(Sn_MR(sn)) |
Get Sn_MR register. More... | |
#define | setSn_CR(sn, cr) WIZCHIP_WRITE(Sn_CR(sn), cr) |
Set Sn_CR register. More... | |
#define | getSn_CR(sn) WIZCHIP_READ(Sn_CR(sn)) |
Get Sn_CR register. More... | |
#define | setSn_IR(sn, ir) WIZCHIP_WRITE(Sn_IR(sn), ir) |
Set Sn_IR register. More... | |
#define | getSn_IR(sn) WIZCHIP_READ(Sn_IR(sn)) |
Get Sn_IR register. More... | |
#define | setSn_IMR(sn, imr) WIZCHIP_WRITE(Sn_IMR(sn), imr) |
Set Sn_IMR register. More... | |
#define | setSn_IMR(sn, imr) WIZCHIP_WRITE(Sn_IMR(sn), imr) |
Set Sn_IMR register. More... | |
#define | getSn_IMR(sn) WIZCHIP_READ(Sn_IMR(sn)) |
Get Sn_IMR register. More... | |
#define | getSn_IMR(sn) WIZCHIP_READ(Sn_IMR(sn)) |
Get Sn_IMR register. More... | |
#define | getSn_SR(sn) WIZCHIP_READ(Sn_SR(sn)) |
Get Sn_SR register. More... | |
#define | setSn_PORT(sn, port) |
Set Sn_PORT register. More... | |
#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. More... | |
#define | setSn_DHAR(sn, dhar) WIZCHIP_WRITE_BUF(Sn_DHAR(sn), dhar, 6) |
Set Sn_DHAR register. More... | |
#define | getSn_DHAR(sn, dhar) WIZCHIP_READ_BUF(Sn_DHAR(sn), dhar, 6) |
Get Sn_DHAR register. More... | |
#define | setSn_DIPR(sn, dipr) WIZCHIP_WRITE_BUF(Sn_DIPR(sn), dipr, 4) |
Set Sn_DIPR register. More... | |
#define | getSn_DIPR(sn, dipr) WIZCHIP_READ_BUF(Sn_DIPR(sn), dipr, 4) |
Get Sn_DIPR register. More... | |
#define | setSn_DPORT(sn, dport) |
Set Sn_DPORT register. More... | |
#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. More... | |
#define | setSn_MSSR(sn, mss) |
Set Sn_MSSR register. More... | |
#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. More... | |
#define | setSn_PROTO(sn, proto) WIZCHIP_WRITE(Sn_PROTO(sn), proto) |
Set Sn_PROTO register. More... | |
#define | getSn_PROTO(sn) WIZCHIP_READ(Sn_PROTO(sn)) |
Get Sn_PROTO register. More... | |
#define | setSn_TOS(sn, tos) WIZCHIP_WRITE(Sn_TOS(sn), tos) |
Set Sn_TOS register. More... | |
#define | getSn_TOS(sn) WIZCHIP_READ(Sn_TOS(sn)) |
Get Sn_TOS register. More... | |
#define | setSn_TTL(sn, ttl) WIZCHIP_WRITE(Sn_TTL(sn), ttl) |
Set Sn_TTL register. More... | |
#define | getSn_TTL(sn) WIZCHIP_READ(Sn_TTL(sn)) |
Get Sn_TTL register. More... | |
#define | setSn_RXMEM_SIZE(sn, rxmemsize) WIZCHIP_WRITE(Sn_RXMEM_SIZE(sn),rxmemsize) |
Set Sn_RXMEM_SIZE register. More... | |
#define | getSn_RXMEM_SIZE(sn) WIZCHIP_READ(Sn_RXMEM_SIZE(sn)) |
Get Sn_RXMEM_SIZE register. More... | |
#define | setSn_TXMEM_SIZE(sn, txmemsize) WIZCHIP_WRITE(Sn_TXMEM_SIZE(sn), txmemsize) |
Set Sn_TXMEM_SIZE register. More... | |
#define | getSn_TXMEM_SIZE(sn) WIZCHIP_READ(Sn_TXMEM_SIZE(sn)) |
Get Sn_TXMEM_SIZE register. More... | |
#define | getSn_TX_RD(sn) (((uint16_t)WIZCHIP_READ(Sn_TX_RD(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_TX_RD(sn),1))) |
Get Sn_TX_RD register. More... | |
#define | setSn_TX_WR(sn, txwr) |
Set Sn_TX_WR register. More... | |
#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. More... | |
#define | setSn_RX_RD(sn, rxrd) |
Set Sn_RX_RD register. More... | |
#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. More... | |
#define | setSn_RX_WR(sn, rxwr) |
Set Sn_RX_WR register. More... | |
#define | getSn_RX_WR(sn) (((uint16_t)WIZCHIP_READ(Sn_RX_WR(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_RX_WR(sn),1))) |
Get Sn_RX_WR register. More... | |
#define | setSn_FRAG(sn, frag) |
Set Sn_FRAG register. More... | |
#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. More... | |
#define | getSn_RxMAX(sn) ((uint16_t)getSn_RXMEM_SIZE(sn) << 10) |
Get the max RX buffer size of socket sn. More... | |
#define | getSn_TxMAX(sn) ((uint16_t)getSn_TXMEM_SIZE(sn) << 10) |
Get the max TX buffer size of socket sn. More... | |
#define | getSn_RxMASK(sn) ((uint16_t)getSn_RxMAX(sn) - 1) |
Get the mask of socket sn RX buffer. More... | |
#define | getSn_TxMASK(sn) ((uint16_t)getSn_TxMAX(sn) - 1) |
Get the mask of socket sn TX buffer. 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... | |
uint16_t | getSn_RxBASE (uint8_t sn) |
Get the base address of socket sn RX buffer. More... | |
uint16_t | getSn_TxBASE (uint8_t sn) |
Get the base address of socket sn TX buffer. 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
-
sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_ expect bit 4. mr Value to set Sn_MR
- See also
- getSn_MR()
#define getSn_MR | ( | sn | ) | WIZCHIP_READ(Sn_MR(sn)) |
Get Sn_MR register.
- Parameters
-
sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_ expect bit 4.
- Returns
- 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 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint8_t. Value of Sn_CR.
- See also
- setSn_CR()
#define setSn_IR | ( | sn, | |
ir | |||
) | WIZCHIP_WRITE(Sn_IR(sn), ir) |
Set Sn_IR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint8_t)ir Value to set Sn_IR
- See also
- getSn_IR()
#define getSn_IR | ( | sn | ) | WIZCHIP_READ(Sn_IR(sn)) |
Get Sn_IR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint8_t. Value of Sn_IR.
- See also
- setSn_IR()
#define setSn_IMR | ( | sn, | |
imr | |||
) | WIZCHIP_WRITE(Sn_IMR(sn), imr) |
Set Sn_IMR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint8_t)imr Value to set Sn_IMR
- See also
- getSn_IMR()
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint8_t)imr Value to set Sn_IMR
- See also
- getSn_IMR()
Definition at line 1963 of file w5200.h.
Referenced by ctlsocket().
#define setSn_IMR | ( | sn, | |
imr | |||
) | WIZCHIP_WRITE(Sn_IMR(sn), imr) |
Set Sn_IMR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint8_t)imr Value to set Sn_IMR
- See also
- getSn_IMR()
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint8_t)imr Value to set Sn_IMR
- See also
- getSn_IMR()
#define getSn_IMR | ( | sn | ) | WIZCHIP_READ(Sn_IMR(sn)) |
Get Sn_IMR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint8_t. Value of Sn_IMR.
- See also
- setSn_IMR()
Definition at line 1973 of file w5200.h.
Referenced by ctlsocket().
#define getSn_IMR | ( | sn | ) | WIZCHIP_READ(Sn_IMR(sn)) |
Get Sn_IMR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint8_t. Value of Sn_IMR.
- See also
- setSn_IMR()
#define getSn_SR | ( | sn | ) | WIZCHIP_READ(Sn_SR(sn)) |
Get Sn_SR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint8_t. Value of Sn_SR.
#define setSn_PORT | ( | sn, | |
port | |||
) |
Set Sn_PORT register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_.
- 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 ~ _WIZCHIP_SOCK_NUM_. (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_DHAR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_.
- 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 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Sn_MSSR.
- See also
- setSn_MSSR()
#define setSn_PROTO | ( | sn, | |
proto | |||
) | WIZCHIP_WRITE(Sn_PROTO(sn), proto) |
Set Sn_PROTO register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint8_t)proto Value to set Sn_PROTO
- See also
- getSn_PROTO()
#define getSn_PROTO | ( | sn | ) | WIZCHIP_READ(Sn_PROTO(sn)) |
Get Sn_PROTO register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint8_t. Value of Sn_PROTO.
- See also
- setSn_PROTO()
#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 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_ .
- 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 ~ _WIZCHIP_SOCK_NUM_ . (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 ~ _WIZCHIP_SOCK_NUM_ .
- Returns
- uint8_t. Value of Sn_TTL.
- See also
- setSn_TTL()
#define setSn_RXMEM_SIZE | ( | sn, | |
rxmemsize | |||
) | WIZCHIP_WRITE(Sn_RXMEM_SIZE(sn),rxmemsize) |
Set Sn_RXMEM_SIZE register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_ . (uint8_t)rxmemsize Value to set Sn_RXMEM_SIZE
- See also
- getSn_RXMEM_SIZE()
#define getSn_RXMEM_SIZE | ( | sn | ) | WIZCHIP_READ(Sn_RXMEM_SIZE(sn)) |
Get Sn_RXMEM_SIZE register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint8_t. Value of Sn_RXMEM.
- See also
- setSn_RXMEM_SIZE()
#define setSn_TXMEM_SIZE | ( | sn, | |
txmemsize | |||
) | WIZCHIP_WRITE(Sn_TXMEM_SIZE(sn), txmemsize) |
Set Sn_TXMEM_SIZE register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint8_t)txmemsize Value to set Sn_TXMEM_SIZE
- See also
- getSn_TXMEM_SIZE()
#define getSn_TXMEM_SIZE | ( | sn | ) | WIZCHIP_READ(Sn_TXMEM_SIZE(sn)) |
Get Sn_TXMEM_SIZE register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint8_t. Value of Sn_TXMEM_SIZE.
- See also
- setSn_TXMEM_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))) |
Get Sn_TX_RD register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Sn_TX_RD.
#define setSn_TX_WR | ( | sn, | |
txwr | |||
) |
Set Sn_TX_WR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_.
- 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 ~ _WIZCHIP_SOCK_NUM_. (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 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Sn_RX_RD.
- See also
- setSn_RX_RD()
#define setSn_RX_WR | ( | sn, | |
rxwr | |||
) |
Set Sn_RX_WR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint16_t)rxwr Value to set Sn_RX_WR
- See also
- getSn_RX_WR()
#define getSn_RX_WR | ( | sn | ) | (((uint16_t)WIZCHIP_READ(Sn_RX_WR(sn)) << 8) + WIZCHIP_READ(WIZCHIP_OFFSET_INC(Sn_RX_WR(sn),1))) |
Get Sn_RX_WR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Sn_RX_WR.
#define setSn_FRAG | ( | sn, | |
frag | |||
) |
Set Sn_FRAG register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_. (uint16_t)frag Value to set Sn_FRAG
- See also
- getSn_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 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Sn_FRAG.
- See also
- setSn_FRAG()
#define getSn_RxMAX | ( | sn | ) | ((uint16_t)getSn_RXMEM_SIZE(sn) << 10) |
Get the max RX buffer size of socket sn.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Max buffer size
#define getSn_TxMAX | ( | sn | ) | ((uint16_t)getSn_TXMEM_SIZE(sn) << 10) |
Get the max TX buffer size of socket sn.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Max buffer size
#define getSn_RxMASK | ( | sn | ) | ((uint16_t)getSn_RxMAX(sn) - 1) |
Get the mask of socket sn RX buffer.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Mask value
#define getSn_TxMASK | ( | sn | ) | ((uint16_t)getSn_TxMAX(sn) - 1) |
Get the mask of socket sn TX buffer.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Mask value
Function Documentation
uint16_t getSn_TX_FSR | ( | uint8_t | sn | ) |
Get Sn_TX_FSR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Sn_TX_FSR.
uint16_t getSn_RX_RSR | ( | uint8_t | sn | ) |
Get Sn_RX_RSR register.
- Parameters
-
(uint8_t)sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Sn_RX_RSR.
uint16_t getSn_RxBASE | ( | uint8_t | sn | ) |
Get the base address of socket sn RX buffer.
- Parameters
-
sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Socket n RX buffer base address.
uint16_t getSn_TxBASE | ( | uint8_t | sn | ) |
Get the base address of socket sn TX buffer.
- Parameters
-
sn Socket number. It should be 0 ~ _WIZCHIP_SOCK_NUM_.
- Returns
- uint16_t. Value of Socket n TX buffer base address.
Generated on Wed May 4 2016 16:44:00 for Socket APIs by 1.8.9.1