PER Firmware
Loading...
Searching...
No Matches
wizchip_conf.h
Go to the documentation of this file.
1//*****************************************************************************
2//
43//
44//*****************************************************************************
45
54#ifndef _WIZCHIP_CONF_H_
55#define _WIZCHIP_CONF_H_
56
57#ifdef __cplusplus
58extern "C" {
59#endif
60
61#include <stdint.h>
68#define W5100 5100
69#define W5100S 5100 + 5
70#define W5200 5200
71#define W5300 5300
72#define W5500 5500
73
74#ifndef _WIZCHIP_
75#define _WIZCHIP_ W5500 // W5100, W5100S, W5200, W5300, W5500
76#endif
77
78#define _WIZCHIP_IO_MODE_NONE_ 0x0000
79#define _WIZCHIP_IO_MODE_BUS_ 0x0100
80#define _WIZCHIP_IO_MODE_SPI_ 0x0200
81//#define _WIZCHIP_IO_MODE_IIC_ 0x0400
82//#define _WIZCHIP_IO_MODE_SDIO_ 0x0800
83// Add to
84//
85
86#define _WIZCHIP_IO_MODE_BUS_DIR_ (_WIZCHIP_IO_MODE_BUS_ + 1)
87#define _WIZCHIP_IO_MODE_BUS_INDIR_ (_WIZCHIP_IO_MODE_BUS_ + 2)
89#define _WIZCHIP_IO_MODE_SPI_VDM_ (_WIZCHIP_IO_MODE_SPI_ + 1)
90#define _WIZCHIP_IO_MODE_SPI_FDM_ (_WIZCHIP_IO_MODE_SPI_ + 2)
91#define _WIZCHIP_IO_MODE_SPI_5500_ (_WIZCHIP_IO_MODE_SPI_ + 3)
93#if (_WIZCHIP_ == W5100)
94#define _WIZCHIP_ID_ "W5100\0"
99// #define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_BUS_DIR_
100// #define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_BUS_INDIR_
101#define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_SPI_
102
103//A20150601 : Define the unit of IO DATA.
104typedef uint8_t iodata_t;
105//A20150401 : Indclude W5100.h file
106#include "W5100/w5100.h"
107
108#elif (_WIZCHIP_ == W5100S)
109#define _WIZCHIP_ID_ "W5100S\0"
114// #define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_BUS_INDIR_
115//#define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_SPI_5500_
116#define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_SPI_
117
118//A20150601 : Define the unit of IO DATA.
119typedef uint8_t iodata_t;
120//A20150401 : Indclude W5100.h file
121#include "W5100S/w5100s.h"
122#elif (_WIZCHIP_ == W5200)
123#define _WIZCHIP_ID_ "W5200\0"
128#ifndef _WIZCHIP_IO_MODE_
129// #define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_BUS_INDIR_
130#define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_SPI_
131#endif
132//A20150601 : Define the unit of IO DATA.
133typedef uint8_t iodata_t;
134#include "W5200/w5200.h"
135#elif (_WIZCHIP_ == W5500)
136#define _WIZCHIP_ID_ "W5500\0"
137
151#ifndef _WIZCHIP_IO_MODE_
152//#define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_SPI_FDM_
153#define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_SPI_VDM_
154#endif
155//A20150601 : Define the unit of IO DATA.
156typedef uint8_t iodata_t;
157#include "w5500.h"
158#elif (_WIZCHIP_ == W5300)
159#define _WIZCHIP_ID_ "W5300\0"
164#ifndef _WIZCHIP_IO_MODE_
165#define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_BUS_DIR_
166// #define _WIZCHIP_IO_MODE_ _WIZCHIP_IO_MODE_BUS_INDIR_
167#endif
168
169//A20150601 : Define the unit and bus width of IO DATA.
174#ifndef _WIZCHIP_IO_BUS_WIDTH_
175#define _WIZCHIP_IO_BUS_WIDTH_ 16 // 8
176#endif
177#if _WIZCHIP_IO_BUS_WIDTH_ == 8
178typedef uint8_t iodata_t;
179#elif _WIZCHIP_IO_BUS_WIDTH_ == 16
180typedef uint16_t iodata_t;
181#else
182#error "Unknown _WIZCHIP_IO_BUS_WIDTH_. It should be 8 or 16."
183#endif
184//
185#include "W5300/w5300.h"
186#else
187#error "Unknown defined _WIZCHIP_. You should define one of 5100, 5200, and 5500 !!!"
188#endif
189
190#ifndef _WIZCHIP_IO_MODE_
191#error "Undefined _WIZCHIP_IO_MODE_. You should define it !!!"
192#endif
193
200#if _WIZCHIP_IO_MODE_ & _WIZCHIP_IO_MODE_BUS_
201// #define _WIZCHIP_IO_BASE_ 0x60000000 // for 5100S IND
202#define _WIZCHIP_IO_BASE_ 0x68000000 // for W5300
203#elif _WIZCHIP_IO_MODE_ & _WIZCHIP_IO_MODE_SPI_
204#define _WIZCHIP_IO_BASE_ 0x00000000 // for 5100S SPI
205#endif
206
207#ifndef _WIZCHIP_IO_BASE_
208#define _WIZCHIP_IO_BASE_ 0x00000000 // 0x8000
209#endif
210
211//M20150401 : Typing Error
212//#if _WIZCHIP_IO_MODE_ & _WIZCHIP_IO_MODE_BUS
213#if _WIZCHIP_IO_MODE_ & _WIZCHIP_IO_MODE_BUS_
214#ifndef _WIZCHIP_IO_BASE_
215#error "You should be define _WIZCHIP_IO_BASE to fit your system memory map."
216#endif
217#endif
218
219#if _WIZCHIP_ >= W5200
220#define _WIZCHIP_SOCK_NUM_ 8
221#else
222#define _WIZCHIP_SOCK_NUM_ 4
223#endif
224
225/********************************************************
226* WIZCHIP BASIC IF functions for SPI, SDIO, I2C , ETC.
227*********************************************************/
232typedef struct __WIZCHIP {
233 uint16_t if_mode;
234 uint8_t id[8];
235
239 struct _CRIS {
240 void (*_enter)(void);
241 void (*_exit)(void);
242 } CRIS;
243
247 struct _CS {
248 void (*_select)(void);
249 void (*_deselect)(void);
250 } CS;
251
255 union _IF {
259 //M20156501 : Modify the function name for integrating with W5300
260 //struct
261 //{
262 // uint8_t (*_read_byte) (uint32_t AddrSel);
263 // void (*_write_byte) (uint32_t AddrSel, uint8_t wb);
264 //}BUS;
265 struct
266 {
267 iodata_t (*_read_data)(uint32_t AddrSel);
268 void (*_write_data)(uint32_t AddrSel, iodata_t wb);
270
274 struct
275 {
276 uint8_t (*_read_byte)(uint32_t addr);
277 void (*_write_byte)(uint32_t addr, uint8_t wb);
278 void (*_read_burst)(uint32_t addr, uint8_t* pBuf, uint16_t len);
279 void (*_write_burst)(uint32_t addr, uint8_t* pBuf, uint16_t len);
281
282 // To be added
283 //
284 } IF;
286
287extern _WIZCHIP WIZCHIP;
288
293typedef enum {
303
304 //D20150601 : For no modification your application code
305 //#if _WIZCHIP_ == W5500
311 //#endif
312 //D20150601 : For no modification your application code
313 //#if _WIZCHIP_ == W5200 || _WIZCHIP_ == W5500
316 //#endif
318
331
338typedef enum {
339#if _WIZCHIP_ == W5500
340 IK_WOL = (1 << 4),
341#elif _WIZCHIP_ == W5300
342 IK_FMTU = (1 << 4),
343#endif
344
346
347#if _WIZCHIP_ != W5200
348 IK_DEST_UNREACH = (1 << 6),
349#endif
350
351 IK_IP_CONFLICT = (1 << 7),
352
353 IK_SOCK_0 = (1 << 8),
354 IK_SOCK_1 = (1 << 9),
355 IK_SOCK_2 = (1 << 10),
356 IK_SOCK_3 = (1 << 11),
357#if _WIZCHIP_ > W5100S
358 IK_SOCK_4 = (1 << 12),
359 IK_SOCK_5 = (1 << 13),
360 IK_SOCK_6 = (1 << 14),
361 IK_SOCK_7 = (1 << 15),
362#endif
363
364#if _WIZCHIP_ > W5100S
365 IK_SOCK_ALL = (0xFF << 8)
366#else
367 IK_SOCK_ALL = (0x0F << 8)
368#endif
370
371#define PHY_CONFBY_HW 0
372#define PHY_CONFBY_SW 1
373#define PHY_MODE_MANUAL 0
374#define PHY_MODE_AUTONEGO 1
375#define PHY_SPEED_10 0
376#define PHY_SPEED_100 1
377#define PHY_DUPLEX_HALF 0
378#define PHY_DUPLEX_FULL 1
379#define PHY_LINK_OFF 0
380#define PHY_LINK_ON 1
381#define PHY_POWER_NORM 0
382#define PHY_POWER_DOWN 1
383
384#if _WIZCHIP_ == W5100S || _WIZCHIP_ == W5500
391typedef struct wiz_PhyConf_t {
392 uint8_t by;
393 uint8_t mode;
394 uint8_t speed;
395 uint8_t duplex;
396 //uint8_t power; ///< set by @ref PHY_POWER_NORM or @ref PHY_POWER_DOWN
397 //uint8_t link; ///< Valid only in CW_GET_PHYSTATUS. set by @ref PHY_LINK_ON or PHY_DUPLEX_OFF
399#endif
400
409
414typedef struct wiz_NetInfo_t {
415 uint8_t mac[6];
416 uint8_t ip[4];
417 uint8_t sn[4];
418 uint8_t gw[4];
419 uint8_t dns[4];
422
427typedef enum {
428#if _WIZCHIP_ == W5500
429 NM_FORCEARP = (1 << 1),
430#endif
431 NM_WAKEONLAN = (1 << 5),
432 NM_PINGBLOCK = (1 << 4),
433 NM_PPPOE = (1 << 3),
435
444
453void reg_wizchip_cris_cbfunc(void (*cris_en)(void), void (*cris_ex)(void));
454
462void reg_wizchip_cs_cbfunc(void (*cs_sel)(void), void (*cs_desel)(void));
463
472//M20150601 : For integrating with W5300
473//void reg_wizchip_bus_cbfunc(uint8_t (*bus_rb)(uint32_t addr), void (*bus_wb)(uint32_t addr, uint8_t wb));
474void reg_wizchip_bus_cbfunc(iodata_t (*bus_rb)(uint32_t addr), void (*bus_wb)(uint32_t addr, iodata_t wb));
475
484void reg_wizchip_spi_cbfunc(uint8_t (*spi_rb)(uint32_t addr), void (*spi_wb)(uint32_t addr, uint8_t wb));
485
494void 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));
495
506int8_t ctlwizchip(ctlwizchip_type cwtype, void* arg);
507
517int8_t ctlnetwork(ctlnetwork_type cntype, void* arg);
518
519/*
520 * The following functions are implemented for internal use.
521 * but You can call these functions for code size reduction instead of ctlwizchip() and ctlnetwork().
522 */
523
528void wizchip_sw_reset(void);
529
538int8_t wizchip_init(uint8_t* txsize, uint8_t* rxsize);
539
546
553
560
567
568//todo
569#if _WIZCHIP_ > W5100
570int8_t wizphy_getphylink(void);
571int8_t wizphy_getphypmode(void);
572#endif
573
574#if _WIZCHIP_ == W5100S || _WIZCHIP_ == W5500
575void wizphy_reset(void);
581void wizphy_setphyconf(wiz_PhyConf* phyconf);
587void wizphy_getphyconf(wiz_PhyConf* phyconf);
593void wizphy_getphystat(wiz_PhyConf* phyconf);
599int8_t wizphy_setphypmode(uint8_t pmode);
600#endif
601
607void wizchip_setnetinfo(wiz_NetInfo* pnetinfo);
608
614void wizchip_getnetinfo(wiz_NetInfo* pnetinfo);
615
621int8_t wizchip_setnetmode(netmode_type netmode);
622
629
637
645#ifdef __cplusplus
646}
647#endif
648
649#endif // _WIZCHIP_CONF_H_
struct wiz_NetInfo_t wiz_NetInfo
struct wiz_NetTimeout_t wiz_NetTimeout
netmode_type
Definition wizchip_conf.h:427
dhcp_mode
Definition wizchip_conf.h:405
ctlnetwork_type
Definition wizchip_conf.h:323
struct wiz_PhyConf_t wiz_PhyConf
struct __WIZCHIP _WIZCHIP
The set of callback functions for W5500:WIZCHIP I/O functions W5200:WIZCHIP_IO_Functions_W5200.
intr_kind
Definition wizchip_conf.h:338
ctlwizchip_type
Definition wizchip_conf.h:293
@ NM_WAKEONLAN
Wake On Lan.
Definition wizchip_conf.h:431
@ NM_FORCEARP
Force to APP send whenever udp data is sent. Valid only in W5500.
Definition wizchip_conf.h:429
@ NM_PPPOE
PPPoE mode.
Definition wizchip_conf.h:433
@ NM_PINGBLOCK
Block ping-request.
Definition wizchip_conf.h:432
@ NETINFO_DHCP
Dynamic IP configruation from a DHCP sever.
Definition wizchip_conf.h:407
@ NETINFO_STATIC
Static IP configuration by manually.
Definition wizchip_conf.h:406
@ CN_GET_NETMODE
Get network mode as WOL, PPPoE, Ping Block, and Force ARP mode.
Definition wizchip_conf.h:327
@ CN_SET_NETMODE
Set network mode as WOL, PPPoE, Ping Block, and Force ARP mode.
Definition wizchip_conf.h:326
@ CN_GET_NETINFO
Get Network with wiz_NetInfo.
Definition wizchip_conf.h:325
@ CN_GET_TIMEOUT
Get network timeout as retry count and time.
Definition wizchip_conf.h:329
@ CN_SET_NETINFO
Set Network with wiz_NetInfo.
Definition wizchip_conf.h:324
@ CN_SET_TIMEOUT
Set network timeout as retry count and time.
Definition wizchip_conf.h:328
@ IK_WOL
Wake On Lan by receiving the magic packet. Valid in W500.
Definition wizchip_conf.h:340
@ IK_SOCK_2
Socket 2 interrupt.
Definition wizchip_conf.h:355
@ IK_SOCK_1
Socket 1 interrupt.
Definition wizchip_conf.h:354
@ IK_SOCK_0
Socket 0 interrupt.
Definition wizchip_conf.h:353
@ IK_SOCK_3
Socket 3 interrupt.
Definition wizchip_conf.h:356
@ IK_SOCK_4
Socket 4 interrupt, No use in 5100.
Definition wizchip_conf.h:358
@ IK_IP_CONFLICT
IP conflict occurred.
Definition wizchip_conf.h:351
@ IK_SOCK_ALL
All Socket interrupt.
Definition wizchip_conf.h:365
@ IK_DEST_UNREACH
Destination IP & Port Unreachable, No use in W5200.
Definition wizchip_conf.h:348
@ IK_PPPOE_TERMINATED
PPPoE Disconnected.
Definition wizchip_conf.h:345
@ IK_SOCK_5
Socket 5 interrupt, No use in 5100.
Definition wizchip_conf.h:359
@ IK_SOCK_7
Socket 7 interrupt, No use in 5100.
Definition wizchip_conf.h:361
@ IK_SOCK_6
Socket 6 interrupt, No use in 5100.
Definition wizchip_conf.h:360
@ CW_GET_INTERRUPT
Get Interrupt status of WIZCHIP.
Definition wizchip_conf.h:296
@ CW_GET_PHYLINK
Get PHY Link status, Valid Only W5100, W5200.
Definition wizchip_conf.h:315
@ CW_GET_INTRTIME
Set interval time between the current and next interrupt.
Definition wizchip_conf.h:301
@ CW_INIT_WIZCHIP
Initializes to WIZCHIP with SOCKET buffer size 2 or 1 dimension array typed uint8_t.
Definition wizchip_conf.h:295
@ CW_SET_PHYCONF
When PHY configured by internal register, PHY operation mode (Manual/Auto, 10/100,...
Definition wizchip_conf.h:307
@ CW_CLR_INTERRUPT
Clears interrupt.
Definition wizchip_conf.h:297
@ CW_GET_ID
Gets WIZCHIP name.
Definition wizchip_conf.h:302
@ CW_SET_INTRTIME
Set interval time between the current and next interrupt.
Definition wizchip_conf.h:300
@ CW_RESET_WIZCHIP
Resets WIZCHIP by softly.
Definition wizchip_conf.h:294
@ CW_RESET_PHY
Resets internal PHY. Valid Only W5500.
Definition wizchip_conf.h:306
@ CW_GET_PHYSTATUS
Get real PHY status on operating. Valid Only W5500.
Definition wizchip_conf.h:309
@ CW_SET_PHYPOWMODE
Set PHY power mode as normal and down when PHYSTATUS.OPMD == 1. Valid Only W5500.
Definition wizchip_conf.h:310
@ CW_SET_INTRMASK
Masks interrupt.
Definition wizchip_conf.h:298
@ CW_GET_PHYCONF
Get PHY operation mode in internal register. Valid Only W5500.
Definition wizchip_conf.h:308
@ CW_GET_INTRMASK
Get interrupt mask.
Definition wizchip_conf.h:299
@ CW_GET_PHYPOWMODE
Get PHY Power mode as down or normal, Valid Only W5100, W5200.
Definition wizchip_conf.h:314
netmode_type wizchip_getnetmode(void)
Get the network mode such WOL, PPPoE, Ping Block, and etc.
Definition wizchip_conf.c:841
void wizchip_gettimeout(wiz_NetTimeout *nettime)
Get retry time value(_RTR_) and retry count(_RCR_).
Definition wizchip_conf.c:850
int8_t ctlwizchip(ctlwizchip_type cwtype, void *arg)
Controls to the WIZCHIP.
Definition wizchip_conf.c:265
int8_t wizchip_init(uint8_t *txsize, uint8_t *rxsize)
Initializes WIZCHIP with socket buffer size.
Definition wizchip_conf.c:397
int8_t ctlnetwork(ctlnetwork_type cntype, void *arg)
Controls to network.
Definition wizchip_conf.c:346
void wizchip_sw_reset(void)
Reset WIZCHIP by softly.
Definition wizchip_conf.c:371
void wizchip_clrinterrupt(intr_kind intr)
Clear Interrupt of WIZCHIP.
Definition wizchip_conf.c:482
void wizphy_getphyconf(wiz_PhyConf *phyconf)
Get phy configuration information.
Definition wizchip_conf.c:737
intr_kind wizchip_getinterruptmask(void)
Get Interrupt mask of WIZCHIP.
Definition wizchip_conf.c:567
void wizphy_setphyconf(wiz_PhyConf *phyconf)
Set the phy information for WIZCHIP without power mode.
Definition wizchip_conf.c:712
int8_t wizphy_setphypmode(uint8_t pmode)
set the power mode of phy inside WIZCHIP. Refer to PHYCFGR in W5500, PHYSTATUS in W5200
Definition wizchip_conf.c:778
void wizphy_getphystat(wiz_PhyConf *phyconf)
Get phy status.
Definition wizchip_conf.c:772
void wizchip_getnetinfo(wiz_NetInfo *pnetinfo)
Get the network information for WIZCHIP.
Definition wizchip_conf.c:814
void wizchip_settimeout(wiz_NetTimeout *nettime)
Set retry time value(_RTR_) and retry count(_RCR_).
Definition wizchip_conf.c:845
int8_t wizchip_setnetmode(netmode_type netmode)
Set the network mode such WOL, PPPoE, Ping Block, and etc.
Definition wizchip_conf.c:826
intr_kind wizchip_getinterrupt(void)
Get Interrupt of WIZCHIP.
Definition wizchip_conf.c:514
void wizchip_setnetinfo(wiz_NetInfo *pnetinfo)
Set the network information for WIZCHIP.
Definition wizchip_conf.c:802
void wizchip_setinterruptmask(intr_kind intr)
Mask or Unmask Interrupt of WIZCHIP.
Definition wizchip_conf.c:544
Definition wizchip_conf.h:239
void(* _exit)(void)
critial section exit
Definition wizchip_conf.h:241
void(* _enter)(void)
crtical section enter
Definition wizchip_conf.h:240
Definition wizchip_conf.h:247
void(* _select)(void)
_WIZCHIP_ selected
Definition wizchip_conf.h:248
void(* _deselect)(void)
_WIZCHIP_ deselected
Definition wizchip_conf.h:249
The set of callback functions for W5500:WIZCHIP I/O functions W5200:WIZCHIP_IO_Functions_W5200.
Definition wizchip_conf.h:232
uint16_t if_mode
host interface mode
Definition wizchip_conf.h:233
Definition wizchip_conf.h:414
uint8_t dns[4]
DNS server IP Address.
Definition wizchip_conf.h:419
uint8_t gw[4]
Gateway IP Address.
Definition wizchip_conf.h:418
dhcp_mode dhcp
1 - Static, 2 - DHCP
Definition wizchip_conf.h:420
uint8_t ip[4]
Source IP Address.
Definition wizchip_conf.h:416
uint8_t sn[4]
Subnet Mask.
Definition wizchip_conf.h:417
uint8_t mac[6]
Source Mac Address.
Definition wizchip_conf.h:415
Definition wizchip_conf.h:440
uint8_t retry_cnt
retry count
Definition wizchip_conf.h:441
uint16_t time_100us
time unit 100us
Definition wizchip_conf.h:442
Definition wizchip_conf.h:391
uint8_t mode
set by PHY_MODE_MANUAL or PHY_MODE_AUTONEGO
Definition wizchip_conf.h:393
uint8_t duplex
set by PHY_DUPLEX_HALF PHY_DUPLEX_FULL
Definition wizchip_conf.h:395
uint8_t by
set by PHY_CONFBY_HW or PHY_CONFBY_SW
Definition wizchip_conf.h:392
uint8_t speed
set by PHY_SPEED_10 or PHY_SPEED_100
Definition wizchip_conf.h:394
Definition wizchip_conf.h:255
struct __WIZCHIP::_IF::@0 BUS
struct __WIZCHIP::_IF::@1 SPI
W5500 HAL Header File.
int8_t wizphy_getphypmode(void)
get the power mode of PHY in WIZCHIP. No use in W5100
Definition wizchip_conf.c:615
int8_t wizphy_getphylink(void)
get the link status of phy in WIZCHIP. No use in W5100
Definition wizchip_conf.c:595
void wizphy_reset(void)
Reset phy. Vailid only in W5500.
Definition wizchip_conf.c:703
void reg_wizchip_cs_cbfunc(void(*cs_sel)(void), void(*cs_desel)(void))
Registers call back function for WIZCHIP select & deselect.
Definition wizchip_conf.c:201
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,...
Definition wizchip_conf.c:191
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.
Definition wizchip_conf.c:238
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.
Definition wizchip_conf.c:213
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.
Definition wizchip_conf.c:252
_WIZCHIP WIZCHIP
Definition wizchip_conf.c:171