W5500
|
These are functions to access socket registers. More...
![]() |
Functions | |
void | setSn_MR (uint8_t sn, uint8_t mr) |
Set Sn_MR register. More... | |
uint8_t | getSn_MR (uint8_t sn) |
Get Sn_MR register. More... | |
void | setSn_CR (uint8_t sn, uint8_t cr) |
Set Sn_CR register. More... | |
uint8_t | getSn_CR (uint8_t sn) |
Get Sn_CR register. More... | |
void | setSn_IR (uint8_t sn, uint8_t ir) |
Set Sn_IR register. More... | |
uint8_t | getSn_IR (uint8_t sn) |
Get Sn_IR register. More... | |
void | setSn_IMR (uint8_t sn, uint8_t imr) |
Set Sn_IMR register. More... | |
uint8_t | getSn_IMR (uint8_t sn) |
Get Sn_IMR register. More... | |
uint8_t | getSn_SR (uint8_t sn) |
Get Sn_SR register. More... | |
void | setSn_PORT (uint8_t sn, uint16_t port) |
Set Sn_PORT register. More... | |
uint16_t | getSn_PORT (uint8_t sn) |
Get Sn_PORT register. More... | |
void | setSn_DHAR (uint8_t sn, uint8_t *dhar) |
Set Sn_DHAR register. More... | |
void | getSn_DHAR (uint8_t sn, uint8_t *dhar) |
Get Sn_MR register. More... | |
void | setSn_DIPR (uint8_t sn, uint8_t *dipr) |
Set Sn_DIPR register. More... | |
void | getSn_DIPR (uint8_t sn, uint8_t *dipr) |
Get Sn_DIPR register. More... | |
void | setSn_DPORT (uint8_t sn, uint16_t dport) |
Set Sn_DPORT register. More... | |
uint16_t | getSn_DPORT (uint8_t sn) |
Get Sn_DPORT register. More... | |
void | setSn_MSSR (uint8_t sn, uint16_t mss) |
Set Sn_MSSR register. More... | |
uint16_t | getSn_MSSR (uint8_t sn) |
Get Sn_MSSR register. More... | |
void | setSn_TOS (uint8_t sn, uint8_t tos) |
Set Sn_TOS register. More... | |
uint8_t | getSn_TOS (uint8_t sn) |
Get Sn_TOS register. More... | |
void | setSn_TTL (uint8_t sn, uint8_t ttl) |
Set Sn_TTL register. More... | |
uint8_t | getSn_TTL (uint8_t sn) |
Get Sn_TTL register. More... | |
void | setSn_RXBUF_SIZE (uint8_t sn, uint8_t rxbufsize) |
Set Sn_RXBUF_SIZE register. More... | |
uint8_t | getSn_RXBUF_SIZE (uint8_t sn) |
Get Sn_RXBUF_SIZE register. More... | |
void | setSn_TXBUF_SIZE (uint8_t sn, uint8_t txbufsize) |
Set Sn_TXBUF_SIZE register. More... | |
uint8_t | getSn_TXBUF_SIZE (uint8_t sn) |
Get Sn_TXBUF_SIZE register. More... | |
uint16_t | getSn_TX_FSR (uint8_t sn) |
Get Sn_TX_FSR register. More... | |
uint16_t | getSn_TX_RD (uint8_t sn) |
Get Sn_TX_RD register. More... | |
void | setSn_TX_WR (uint8_t sn, uint16_t txwr) |
Set Sn_TX_WR register. More... | |
uint16_t | getSn_TX_WR (uint8_t sn) |
Get Sn_TX_WR register. More... | |
uint16_t | getSn_RX_RSR (uint8_t sn) |
Get Sn_RX_RSR register. More... | |
void | setSn_RX_RD (uint8_t sn, uint16_t rxrd) |
Set Sn_RX_RD register. More... | |
uint16_t | getSn_RX_RD (uint8_t sn) |
Get Sn_RX_RD register. More... | |
uint16_t | getSn_RX_WR (uint8_t sn) |
Get Sn_RX_WR register. More... | |
void | setSn_FRAG (uint8_t sn, uint16_t frag) |
Set Sn_FRAG register. More... | |
uint16_t | getSn_FRAG (uint8_t sn) |
Get Sn_FRAG register. More... | |
void | setSn_KPALVTR (uint8_t sn, uint8_t kpalvt) |
Set Sn_KPALVTR register. More... | |
uint8_t | getSn_KPALVTR (uint8_t sn) |
Get Sn_KPALVTR register. More... | |
These are functions to access socket registers.
void setSn_MR | ( | uint8_t | sn, |
uint8_t | mr | ||
) |
Set Sn_MR register.
sn | Socket number. It should be 0 ~ 7. |
mr | Value to set Sn_MR |
Definition at line 514 of file w5500.c.
References Sn_MR, and WIZCHIP_WRITE().
Referenced by socket().
uint8_t getSn_MR | ( | uint8_t | sn) |
Get Sn_MR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 519 of file w5500.c.
References Sn_MR, and WIZCHIP_READ().
Referenced by recvfrom(), and sendto().
void setSn_CR | ( | uint8_t | sn, |
uint8_t | cr | ||
) |
Set Sn_CR register.
sn | Socket number. It should be 0 ~ 7. |
cr | Value to set Sn_CR |
Definition at line 524 of file w5500.c.
References Sn_CR, and WIZCHIP_WRITE().
Referenced by close(), connect(), disconnect(), listen(), recv(), recvfrom(), send(), sendto(), and socket().
uint8_t getSn_CR | ( | uint8_t | sn) |
Get Sn_CR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 529 of file w5500.c.
References Sn_CR, and WIZCHIP_READ().
Referenced by close(), connect(), disconnect(), listen(), recv(), recvfrom(), send(), sendto(), and socket().
void setSn_IR | ( | uint8_t | sn, |
uint8_t | ir | ||
) |
Set Sn_IR register.
sn | Socket number. It should be 0 ~ 7. |
ir | Value to set Sn_IR |
Definition at line 534 of file w5500.c.
References Sn_IR, and WIZCHIP_WRITE().
uint8_t getSn_IR | ( | uint8_t | sn) |
Get Sn_IR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 539 of file w5500.c.
References Sn_IR, and WIZCHIP_READ().
Referenced by connect(), disconnect(), send(), and sendto().
void setSn_IMR | ( | uint8_t | sn, |
uint8_t | imr | ||
) |
Set Sn_IMR register.
sn | Socket number. It should be 0 ~ 7. |
imr | Value to set Sn_IMR |
Definition at line 544 of file w5500.c.
References Sn_IMR, and WIZCHIP_WRITE().
uint8_t getSn_IMR | ( | uint8_t | sn) |
Get Sn_IMR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 549 of file w5500.c.
References Sn_IMR, and WIZCHIP_READ().
uint8_t getSn_SR | ( | uint8_t | sn) |
Get Sn_SR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 555 of file w5500.c.
References Sn_SR, and WIZCHIP_READ().
Referenced by connect(), disconnect(), listen(), recv(), recvfrom(), send(), and sendto().
void setSn_PORT | ( | uint8_t | sn, |
uint16_t | port | ||
) |
Set Sn_PORT register.
sn | Socket number. It should be 0 ~ 7. |
port | Value to set Sn_PORT |
Definition at line 560 of file w5500.c.
References Sn_PORT, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
Referenced by socket().
uint16_t getSn_PORT | ( | uint8_t | sn) |
Get Sn_PORT register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 566 of file w5500.c.
References Sn_PORT, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setSn_DHAR | ( | uint8_t | sn, |
uint8_t * | dhar | ||
) |
Set Sn_DHAR register.
sn | Socket number. It should be 0 ~ 7. |
dhar | Pointer variable to set socket n destination hardware address. It should be allocated 6 bytes. |
Definition at line 574 of file w5500.c.
References Sn_DHAR, and WIZCHIP_WRITE_BUF().
void getSn_DHAR | ( | uint8_t | sn, |
uint8_t * | dhar | ||
) |
Get Sn_MR register.
sn | Socket number. It should be 0 ~ 7. |
dhar | Pointer variable to get socket n destination hardware address. It should be allocated 6 bytes. |
Definition at line 579 of file w5500.c.
References Sn_DHAR, and WIZCHIP_READ_BUF().
void setSn_DIPR | ( | uint8_t | sn, |
uint8_t * | dipr | ||
) |
Set Sn_DIPR register.
sn | Socket number. It should be 0 ~ 7. |
dipr | Pointer variable to set socket n destination IP address. It should be allocated 4 bytes. |
Definition at line 584 of file w5500.c.
References Sn_DIPR, and WIZCHIP_WRITE_BUF().
void getSn_DIPR | ( | uint8_t | sn, |
uint8_t * | dipr | ||
) |
Get Sn_DIPR register.
sn | Socket number. It should be 0 ~ 7. |
dipr | Pointer variable to get socket n destination IP address. It should be allocated 4 bytes. |
Definition at line 589 of file w5500.c.
References Sn_DIPR, and WIZCHIP_READ_BUF().
void setSn_DPORT | ( | uint8_t | sn, |
uint16_t | dport | ||
) |
Set Sn_DPORT register.
sn | Socket number. It should be 0 ~ 7. |
dport | Value to set Sn_DPORT |
Definition at line 594 of file w5500.c.
References Sn_DPORT, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
uint16_t getSn_DPORT | ( | uint8_t | sn) |
Get Sn_DPORT register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 600 of file w5500.c.
References Sn_DPORT, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setSn_MSSR | ( | uint8_t | sn, |
uint16_t | mss | ||
) |
Set Sn_MSSR register.
sn | Socket number. It should be 0 ~ 7. |
mss | Value to set Sn_MSSR |
Definition at line 608 of file w5500.c.
References Sn_MSSR, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
uint16_t getSn_MSSR | ( | uint8_t | sn) |
Get Sn_MSSR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 614 of file w5500.c.
References Sn_MSSR, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setSn_TOS | ( | uint8_t | sn, |
uint8_t | tos | ||
) |
Set Sn_TOS register.
sn | Socket number. It should be 0 ~ 7. |
tos | Value to set Sn_TOS |
Definition at line 622 of file w5500.c.
References Sn_TOS, and WIZCHIP_WRITE().
uint8_t getSn_TOS | ( | uint8_t | sn) |
Get Sn_TOS register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 627 of file w5500.c.
References Sn_TOS, and WIZCHIP_READ().
void setSn_TTL | ( | uint8_t | sn, |
uint8_t | ttl | ||
) |
Set Sn_TTL register.
sn | Socket number. It should be 0 ~ 7. |
ttl | Value to set Sn_TTL |
Definition at line 633 of file w5500.c.
References Sn_TTL, and WIZCHIP_WRITE().
uint8_t getSn_TTL | ( | uint8_t | sn) |
Get Sn_TTL register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 638 of file w5500.c.
References Sn_TTL, and WIZCHIP_READ().
void setSn_RXBUF_SIZE | ( | uint8_t | sn, |
uint8_t | rxbufsize | ||
) |
Set Sn_RXBUF_SIZE register.
sn | Socket number. It should be 0 ~ 7. |
rxbufsize | Value to set Sn_RXBUF_SIZE |
Definition at line 643 of file w5500.c.
References Sn_RXBUF_SIZE, and WIZCHIP_WRITE().
uint8_t getSn_RXBUF_SIZE | ( | uint8_t | sn) |
Get Sn_RXBUF_SIZE register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 648 of file w5500.c.
References Sn_RXBUF_SIZE, and WIZCHIP_READ().
Referenced by recv().
void setSn_TXBUF_SIZE | ( | uint8_t | sn, |
uint8_t | txbufsize | ||
) |
Set Sn_TXBUF_SIZE register.
sn | Socket number. It should be 0 ~ 7. |
txbufsize | Value to set Sn_TXBUF_SIZE |
Definition at line 653 of file w5500.c.
References Sn_TXBUF_SIZE, and WIZCHIP_WRITE().
uint8_t getSn_TXBUF_SIZE | ( | uint8_t | sn) |
Get Sn_TXBUF_SIZE register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 658 of file w5500.c.
References Sn_TXBUF_SIZE, and WIZCHIP_READ().
uint16_t getSn_TX_FSR | ( | uint8_t | sn) |
Get Sn_TX_FSR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 664 of file w5500.c.
References Sn_TX_FSR, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
uint16_t getSn_TX_RD | ( | uint8_t | sn) |
Get Sn_TX_RD register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 681 of file w5500.c.
References Sn_TX_RD, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setSn_TX_WR | ( | uint8_t | sn, |
uint16_t | txwr | ||
) |
Set Sn_TX_WR register.
sn | Socket number. It should be 0 ~ 7. |
txwr | Value to set Sn_TX_WR |
Definition at line 689 of file w5500.c.
References Sn_TX_WR, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
Referenced by wiz_send_data().
uint16_t getSn_TX_WR | ( | uint8_t | sn) |
Get Sn_TX_WR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 695 of file w5500.c.
References Sn_TX_WR, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
Referenced by wiz_send_data().
uint16_t getSn_RX_RSR | ( | uint8_t | sn) |
Get Sn_RX_RSR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 704 of file w5500.c.
References Sn_RX_RSR, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
Referenced by recv(), and recvfrom().
void setSn_RX_RD | ( | uint8_t | sn, |
uint16_t | rxrd | ||
) |
Set Sn_RX_RD register.
sn | Socket number. It should be 0 ~ 7. |
rxrd | Value to set Sn_RX_RD |
Definition at line 720 of file w5500.c.
References Sn_RX_RD, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
Referenced by wiz_recv_data(), and wiz_recv_ignore().
uint16_t getSn_RX_RD | ( | uint8_t | sn) |
Get Sn_RX_RD register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 726 of file w5500.c.
References Sn_RX_RD, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
Referenced by wiz_recv_data(), and wiz_recv_ignore().
uint16_t getSn_RX_WR | ( | uint8_t | sn) |
Get Sn_RX_WR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 735 of file w5500.c.
References Sn_RX_WR, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setSn_FRAG | ( | uint8_t | sn, |
uint16_t | frag | ||
) |
Set Sn_FRAG register.
sn | Socket number. It should be 0 ~ 7. |
frag | Value to set Sn_FRAG |
Definition at line 744 of file w5500.c.
References Sn_FRAG, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
uint16_t getSn_FRAG | ( | uint8_t | sn) |
Get Sn_FRAG register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 751 of file w5500.c.
References Sn_FRAG, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setSn_KPALVTR | ( | uint8_t | sn, |
uint8_t | kpalvt | ||
) |
Set Sn_KPALVTR register.
sn | Socket number. It should be 0 ~ 7. |
kpalvt | Value to set Sn_KPALVTR |
Definition at line 759 of file w5500.c.
References Sn_KPALVTR, and WIZCHIP_WRITE().
uint8_t getSn_KPALVTR | ( | uint8_t | sn) |
Get Sn_KPALVTR register.
sn | Socket number. It should be 0 ~ 7. |
Definition at line 765 of file w5500.c.
References Sn_KPALVTR, and WIZCHIP_READ().