Wiznet W5500 driver and TCP/UDP loopback
Basic I/O function
[WIZCHIP I/O functions]
These are basic input/output functions to read values from register or write values to register. More...
Functions | |
uint8_t | WIZCHIP_READ (uint32_t AddrSel) |
It reads 1 byte value from a register. | |
void | WIZCHIP_WRITE (uint32_t AddrSel, uint8_t wb) |
It writes 1 byte value to a register. | |
void | WIZCHIP_READ_BUF (uint32_t AddrSel, uint8_t *pBuf, uint16_t len) |
It reads sequence data from registers. | |
void | WIZCHIP_WRITE_BUF (uint32_t AddrSel, uint8_t *pBuf, uint16_t len) |
It writes sequence data to registers. | |
void | wiz_send_data (uint8_t sn, uint8_t *wizdata, uint16_t len) |
It copies data to internal TX memory. | |
void | wiz_recv_data (uint8_t sn, uint8_t *wizdata, uint16_t len) |
It copies data to your buffer from internal RX memory. | |
void | wiz_recv_ignore (uint8_t sn, uint16_t len) |
It discard the received data in RX memory. |
Detailed Description
These are basic input/output functions to read values from register or write values to register.
Function Documentation
void wiz_recv_data | ( | uint8_t | sn, |
uint8_t * | wizdata, | ||
uint16_t | len | ||
) |
It copies data to your buffer from internal RX memory.
This function read the Rx read pointer register and after that, it copies the received data from internal RX memory to wizdata(pointer variable) of the length of len(variable) bytes. This function is being called by recv() also.
- Note:
- User should read upper byte first and lower byte later to get proper value.
- Parameters:
-
(uint8_t)sn Socket number. It should be 0 ~ 7. wizdata Pointer buffer to read data len Data length
- See also:
- wiz_send_data()
void wiz_recv_ignore | ( | uint8_t | sn, |
uint16_t | len | ||
) |
void wiz_send_data | ( | uint8_t | sn, |
uint8_t * | wizdata, | ||
uint16_t | len | ||
) |
It copies data to internal TX memory.
This function reads the Tx write pointer register and after that, it copies the wizdata(pointer buffer) of the length of len(variable) bytes to internal TX memory and updates the Tx write pointer register. This function is being called by send() and sendto() function also.
- Note:
- User should read upper byte first and lower byte later to get proper value.
- Parameters:
-
(uint8_t)sn Socket number. It should be 0 ~ 7. wizdata Pointer buffer to write data len Data length
- See also:
- wiz_recv_data()
uint8_t WIZCHIP_READ | ( | uint32_t | AddrSel ) |
void WIZCHIP_READ_BUF | ( | uint32_t | AddrSel, |
uint8_t * | pBuf, | ||
uint16_t | len | ||
) |
void WIZCHIP_WRITE | ( | uint32_t | AddrSel, |
uint8_t | wb | ||
) |
Generated on Tue Jul 12 2022 18:48:22 by 1.7.2