|
PER Firmware
|
WIZCHIP Config Header File. More...
Functions | |
| void | wizchip_cris_enter (void) |
| Default function to enable interrupt. | |
| void | wizchip_cris_exit (void) |
| Default function to disable interrupt. | |
| void | wizchip_cs_select (void) |
| Default function to select chip. | |
| void | wizchip_cs_deselect (void) |
| Default function to deselect chip. | |
| iodata_t | wizchip_bus_readdata (uint32_t AddrSel) |
| Default function to read in direct or indirect interface. | |
| void | wizchip_bus_writedata (uint32_t AddrSel, iodata_t wb) |
| Default function to write in direct or indirect interface. | |
| uint8_t | wizchip_spi_readbyte (uint32_t addr) |
| Default function to read in SPI interface. | |
| void | wizchip_spi_writebyte (uint32_t addr, uint8_t wb) |
| Default function to write in SPI interface. | |
| void | wizchip_spi_readburst (uint32_t addr, uint8_t *pBuf, uint16_t len) |
| Default function to burst read in SPI interface. | |
| void | wizchip_spi_writeburst (uint32_t addr, uint8_t *pBuf, uint16_t len) |
| Default function to burst write in SPI interface. | |
| void | reg_wizchip_cris_cbfunc (void(*cris_en)(void), void(*cris_ex)(void)) |
| Registers call back function for critical section of I/O functions such as WIZCHIP_READ, WIZCHIP_WRITE, WIZCHIP_READ_BUF and WIZCHIP_WRITE_BUF. | |
| void | reg_wizchip_cs_cbfunc (void(*cs_sel)(void), void(*cs_desel)(void)) |
| Registers call back function for WIZCHIP select & deselect. | |
| void | reg_wizchip_bus_cbfunc (iodata_t(*bus_rb)(uint32_t addr), void(*bus_wb)(uint32_t addr, iodata_t wb)) |
| Registers call back function for bus interface. | |
| void | reg_wizchip_spi_cbfunc (uint8_t(*spi_rb)(uint32_t AddrSel), void(*spi_wb)(uint32_t AddrSel, uint8_t wb)) |
| Registers call back function for SPI interface. | |
| void | reg_wizchip_spiburst_cbfunc (void(*spi_rb)(uint32_t AddrSel, uint8_t *pBuf, uint16_t len), void(*spi_wb)(uint32_t AddrSel, uint8_t *pBuf, uint16_t len)) |
| Registers call back function for SPI interface. | |
| int8_t | ctlwizchip (ctlwizchip_type cwtype, void *arg) |
| Controls to the WIZCHIP. | |
| int8_t | ctlnetwork (ctlnetwork_type cntype, void *arg) |
| Controls to network. | |
| void | wizchip_sw_reset (void) |
| Reset WIZCHIP by softly. | |
| int8_t | wizchip_init (uint8_t *txsize, uint8_t *rxsize) |
| Initializes WIZCHIP with socket buffer size. | |
| void | wizchip_clrinterrupt (intr_kind intr) |
| Clear Interrupt of WIZCHIP. | |
| intr_kind | wizchip_getinterrupt (void) |
| Get Interrupt of WIZCHIP. | |
| void | wizchip_setinterruptmask (intr_kind intr) |
| Mask or Unmask Interrupt of WIZCHIP. | |
| intr_kind | wizchip_getinterruptmask (void) |
| Get Interrupt mask of WIZCHIP. | |
| int8_t | wizphy_getphylink (void) |
| get the link status of phy in WIZCHIP. No use in W5100 | |
| int8_t | wizphy_getphypmode (void) |
| get the power mode of PHY in WIZCHIP. No use in W5100 | |
| void | wizphy_reset (void) |
| Reset phy. Vailid only in W5500. | |
| void | wizphy_setphyconf (wiz_PhyConf *phyconf) |
| Set the phy information for WIZCHIP without power mode. | |
| void | wizphy_getphyconf (wiz_PhyConf *phyconf) |
| Get phy configuration information. | |
| void | wizphy_getphystat (wiz_PhyConf *phyconf) |
| Get phy status. | |
| int8_t | wizphy_setphypmode (uint8_t pmode) |
| set the power mode of phy inside WIZCHIP. Refer to PHYCFGR in W5500, PHYSTATUS in W5200 | |
| void | wizchip_setnetinfo (wiz_NetInfo *pnetinfo) |
| Set the network information for WIZCHIP. | |
| void | wizchip_getnetinfo (wiz_NetInfo *pnetinfo) |
| Get the network information for WIZCHIP. | |
| int8_t | wizchip_setnetmode (netmode_type netmode) |
| Set the network mode such WOL, PPPoE, Ping Block, and etc. | |
| netmode_type | wizchip_getnetmode (void) |
| Get the network mode such WOL, PPPoE, Ping Block, and etc. | |
| void | wizchip_settimeout (wiz_NetTimeout *nettime) |
| Set retry time value(_RTR_) and retry count(_RCR_). | |
| void | wizchip_gettimeout (wiz_NetTimeout *nettime) |
| Get retry time value(_RTR_) and retry count(_RCR_). | |
Variables | |
| _WIZCHIP | WIZCHIP |
WIZCHIP Config Header File.
| void reg_wizchip_bus_cbfunc | ( | iodata_t(* | bus_rb )(uint32_t addr), |
| void(* | bus_wb )(uint32_t addr, iodata_t wb) ) |
Registers call back function for bus interface.
| bus_rb | : callback function to read byte data using system bus |
| bus_wb | : callback function to write byte data using system bus |
| void reg_wizchip_cris_cbfunc | ( | void(* | cris_en )(void), |
| void(* | cris_ex )(void) ) |
Registers call back function for critical section of I/O functions such as WIZCHIP_READ, WIZCHIP_WRITE, WIZCHIP_READ_BUF and WIZCHIP_WRITE_BUF.
| cris_en | : callback function for critical section enter. |
| cris_ex | : callback function for critical section exit. |
| void reg_wizchip_cs_cbfunc | ( | void(* | cs_sel )(void), |
| void(* | cs_desel )(void) ) |
Registers call back function for WIZCHIP select & deselect.
| cs_sel | : callback function for WIZCHIP select |
| cs_desel | : callback fucntion for WIZCHIP deselect |
| void reg_wizchip_spi_cbfunc | ( | uint8_t(* | spi_rb )(uint32_t addr), |
| void(* | spi_wb )(uint32_t addr, uint8_t wb) ) |
Registers call back function for SPI interface.
| spi_rb | : callback function to read byte using SPI |
| spi_wb | : callback function to write byte using SPI |
| void reg_wizchip_spiburst_cbfunc | ( | void(* | spi_rb )(uint32_t addr, uint8_t *pBuf, uint16_t len), |
| void(* | spi_wb )(uint32_t addr, uint8_t *pBuf, uint16_t len) ) |
Registers call back function for SPI interface.
| spi_rb | : callback function to burst read using SPI |
| spi_wb | : callback function to burst write using SPI |
| iodata_t wizchip_bus_readdata | ( | uint32_t | AddrSel | ) |
Default function to read in direct or indirect interface.
| void wizchip_bus_writedata | ( | uint32_t | AddrSel, |
| iodata_t | wb ) |
Default function to write in direct or indirect interface.
| void wizchip_cris_enter | ( | void | ) |
Default function to enable interrupt.
uint32_t type converts into ptrdiff_t first. And then recoverting it into uint8_t* For remove the warning when pointer type size is not 32bit. If ptrdiff_t doesn't support in your complier, You should must replace ptrdiff_t into your suitable pointer type. <2013/10/21> 1st Release
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.
| void wizchip_cris_exit | ( | void | ) |
Default function to disable interrupt.
| void wizchip_cs_deselect | ( | void | ) |
Default function to deselect chip.
| void wizchip_cs_select | ( | void | ) |
Default function to select chip.
| void wizchip_spi_readburst | ( | uint32_t | addr, |
| uint8_t * | pBuf, | ||
| uint16_t | len ) |
Default function to burst read in SPI interface.
| uint8_t wizchip_spi_readbyte | ( | uint32_t | addr | ) |
Default function to read in SPI interface.
| void wizchip_spi_writeburst | ( | uint32_t | addr, |
| uint8_t * | pBuf, | ||
| uint16_t | len ) |
Default function to burst write in SPI interface.
| void wizchip_spi_writebyte | ( | uint32_t | addr, |
| uint8_t | wb ) |
Default function to write in SPI interface.
| _WIZCHIP WIZCHIP |
\ref _WIZCHIP instance