Socket APIs
Macros | Functions
w5500.c File Reference

W5500 HAL Interface. More...

#include "w5500.h"
Include dependency graph for w5500.c:

Go to the source code of this file.

Macros

#define _W5500_SPI_VDM_OP_   0x00
 
#define _W5500_SPI_FDM_OP_LEN1_   0x01
 
#define _W5500_SPI_FDM_OP_LEN2_   0x02
 
#define _W5500_SPI_FDM_OP_LEN4_   0x03
 

Functions

uint8_t WIZCHIP_READ (uint32_t AddrSel)
 It reads 1 byte value from a register. More...
 
void WIZCHIP_WRITE (uint32_t AddrSel, uint8_t wb)
 It writes 1 byte value to a register. More...
 
void WIZCHIP_READ_BUF (uint32_t AddrSel, uint8_t *pBuf, uint16_t len)
 It reads sequence data from registers. More...
 
void WIZCHIP_WRITE_BUF (uint32_t AddrSel, uint8_t *pBuf, uint16_t len)
 It writes sequence data to registers. More...
 
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...
 
void wiz_send_data (uint8_t sn, uint8_t *wizdata, uint16_t len)
 It copies data to internal TX memory. More...
 
void wiz_recv_data (uint8_t sn, uint8_t *wizdata, uint16_t len)
 It copies data to your buffer from internal RX memory. More...
 
void wiz_recv_ignore (uint8_t sn, uint16_t len)
 It discard the received data in RX memory. More...
 

Detailed Description

W5500 HAL Interface.

Version
1.0.2
Date
2013/10/21
Revision history
<2014/05/01> V1.0.2
  1. Implicit type casting -> Explicit type casting. Refer to M20140501 Fixed the problem on porting into under 32bit MCU Issued by Mathias ClauBen, wizwiki forum ID Think01 and bobh Thank for your interesting and serious advices. <2013/12/20> V1.0.1
  1. Remove warning
  2. WIZCHIP_READ_BUF WIZCHIP_WRITE_BUF in case WIZCHIP_IO_MODE_SPI_FDM for loop optimized(removed). refer to M20131220 <2013/10/21> 1st Release
Author
MidnightCow

Copyright (c) 2013, WIZnet Co., LTD. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright 

notice, this list of conditions and the following disclaimer.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file w5500.c.

Macro Definition Documentation

#define _W5500_SPI_VDM_OP_   0x00

Definition at line 54 of file w5500.c.

Referenced by WIZCHIP_READ(), WIZCHIP_READ_BUF(), WIZCHIP_WRITE(), and WIZCHIP_WRITE_BUF().

#define _W5500_SPI_FDM_OP_LEN1_   0x01

Definition at line 55 of file w5500.c.

Referenced by WIZCHIP_READ(), and WIZCHIP_WRITE().

#define _W5500_SPI_FDM_OP_LEN2_   0x02

Definition at line 56 of file w5500.c.

#define _W5500_SPI_FDM_OP_LEN4_   0x03

Definition at line 57 of file w5500.c.

Referenced by WIZCHIP_READ_BUF(), and WIZCHIP_WRITE_BUF().