![]() |
io6Library
WIZnet Dual Stack TCP/IP Ethernet Controller Driver
|
Data Structures | |
| struct | __WIZCHIP_T__ |
| Callback function set for _WIZCHIP_. More... | |
| struct | wiz_PhyConf_t |
| Ethernet PHY operation mode configuration. More... | |
| struct | wiz_NetInfo_t |
| Network Information for _WIZCHIP_. More... | |
| struct | wiz_NetTimeout_t |
| Network Timeout for _WIZCHIP_. More... | |
| struct | wiz_IPAddress_t |
| Destination Information for Network Service of _WIZCHIP_. More... | |
| struct | wiz_Prefix_t |
| Prefix Information. More... | |
| struct | wiz_ARP_t |
| Destination Information & Destination Hardware Address for CNS_ARP. More... | |
| struct | wiz_PING_t |
| Destination Information & Destination Hardware Address for CNS_ARP. More... | |
Typedefs | |
| typedef struct __WIZCHIP_T__ | _WIZCHIP_T_ |
| Callback function set for _WIZCHIP_. More... | |
| typedef struct wiz_PhyConf_t | wiz_PhyConf |
| Ethernet PHY operation mode configuration. More... | |
| typedef struct wiz_NetInfo_t | wiz_NetInfo |
| Network Information for _WIZCHIP_. More... | |
| typedef struct wiz_NetTimeout_t | wiz_NetTimeout |
| Network Timeout for _WIZCHIP_. More... | |
| typedef struct wiz_IPAddress_t | wiz_IPAddress |
| Destination Information for Network Service of _WIZCHIP_. More... | |
| typedef struct wiz_Prefix_t | wiz_Prefix |
| Prefix Information. More... | |
| typedef struct wiz_ARP_t | wiz_ARP |
| Destination Information & Destination Hardware Address for CNS_ARP. More... | |
| typedef struct wiz_PING_t | wiz_PING |
| Destination Information & Destination Hardware Address for CNS_ARP. More... | |
| typedef struct __WIZCHIP_T__ _WIZCHIP_T_ |
Callback function set for _WIZCHIP_.
__WIZCHIP_T__ is a structure type to provide the callback function set
* which is called instead of the default functions
in order to your HOST dependent functions can access to _WIZCHIP_.
| typedef struct wiz_PhyConf_t wiz_PhyConf |
Ethernet PHY operation mode configuration.
wiz_PhyConf is a structure type to configure or
indicate the PHY operation mode such as auto-negotiation, speed, and duplex.
| typedef struct wiz_NetInfo_t wiz_NetInfo |
Network Information for _WIZCHIP_.
wiz_NetInfo is a structure type to configure or indicate the network information of _WIZCHIP_.
| typedef struct wiz_NetTimeout_t wiz_NetTimeout |
Network Timeout for _WIZCHIP_.
wiz_NetInfo is a structure type to configure or indicate the network timeout of _WIZCHIP_.
| typedef struct wiz_IPAddress_t wiz_IPAddress |
Destination Information for Network Service of _WIZCHIP_.
wiz_NetInfo is a structure type to configure or indicate a destination information of network service.
| typedef struct wiz_Prefix_t wiz_Prefix |
Prefix Information.
wiz_Prefix is a structure type to indicate a prefix information(0x03) of received RA message from a router.
| typedef struct wiz_PING_t wiz_PING |
| enum sockint_kind |
The kind of SOCKET Interrupt.
| Enumerator | |
|---|---|
| SIK_CONNECTED | connected |
| SIK_DISCONNECTED | disconnected |
| SIK_RECEIVED | data received |
| SIK_TIMEOUT | timeout occurred |
| SIK_SENT | send ok |
| SIK_ALL | all interrupt |
| enum ctlsock_type |
The type of ctlsocket().
| Enumerator | |
|---|---|
| CS_SET_IOMODE | set SOCKET IO mode with SOCK_IO_BLOCK or SOCK_IO_NONBLOCK |
| CS_GET_IOMODE | get SOCKET IO mode |
| CS_GET_MAXTXBUF | get the size of SOCKET TX buffer allocated in TX memory |
| CS_GET_MAXRXBUF | get the size of SOCKET RX buffer allocated in RX memory |
| CS_CLR_INTERRUPT | clear the interrupt of SOCKET with sockint_kind. |
| CS_GET_INTERRUPT | get the SOCKET interrupt. refer to sockint_kind. |
| CS_SET_INTMASK | set the interrupt mask of SOCKET with sockint_kind. |
| CS_GET_INTMASK | get the masked interrupt of SOCKET. refer to sockint_kind. |
| CS_SET_PREFER | set the preferred source IPv6 address of transmission packet. |
| CS_GET_PREFER | get the preferred source IPv6 address of transmission packet. |
| enum sockopt_type |
The type of socket option in setsockopt() or getsockopt()
| Enumerator | |
|---|---|
| SO_FLAG | Valid only in getsockopt(), For set flag of socket refer to flag in socket(). |
| SO_TTL | Set/Get TTL. ( setSn_TTLR(), getSn_TTLR() ) |
| SO_TOS | Set/Get TOS. ( setSn_TOSR(), getSn_TOSR() ) |
| SO_MSS | Set/Get MSS. ( setSn_MSSR(), getSn_MSSR() ) |
| SO_DESTIP | Set/Get the destination IP address with argument wiz_IPAddress. To get it, SOCKETn should be TCP mode. |
| SO_DESTPORT | Set/Get the destination Port number. To get it, SOCKETn should be TCP mode. |
| SO_KEEPALIVESEND | Valid only in setsockopt(). Manually send keep-alive packet in TCP mode. |
| SO_KEEPALIVEAUTO | Set/Get keep-alive auto transmission timer in TCP mode. |
| SO_SENDBUF | Valid only in getsockopt(). Get the free data size of SOCKETn TX buffer. getSn_TX_FSR() |
| SO_RECVBUF | Valid only in getsockopt(). Get the received data size in SOCKETn RX buffer. getSn_RX_RSR() |
| SO_STATUS | Valid only in getsockopt(). Get the SOCKETn status. getSn_SR() |
| SO_EXTSTATUS | Valid only in getsockopt(). Get the extended TCP SOCKETn status. getSn_ESR() |
| SO_REMAINSIZE | Valid only in getsockopt(). Get the remained packet size in non-TCP mode. |
| SO_MODE | |
| SO_PACKINFO | Valid only in getsockopt(). Get the packet information as PACK_FIRST, PACK_REMAINED, and etc. |
| enum ctlwizchip_type |
_WIZCHIP_ Control Type Enumeration.
ctlwizchip_type includes a general control function for _WIZCHIP_ and the integrated Ethernet PHY.
| Enumerator | |
|---|---|
| CW_SYS_LOCK | Lock or Unlock _WIZCHIP_ with SYS_CHIP_LOCK, SYS_PHY_LOCK, and SYS_NET_LOCK. |
| CW_SYS_UNLOCK | Lock or Unlock _WIZCHIP_ with SYS_CHIP_LOCK, SYS_PHY_LOCK, and SYS_NET_LOCK. |
| CW_GET_SYSLOCK | Get the lock status of _WIZCHIP_ with SYS_CHIP_LOCK, SYS_PHY_LOCK, and SYS_NET_LOCK. |
| CW_RESET_WIZCHIP | Reset _WIZCHIP_ by software. |
| CW_INIT_WIZCHIP | Initialize to SOCKETn buffer size with n byte array typed uint8_t. |
| CW_GET_INTERRUPT | Get the interrupt status with intr_kind. |
| CW_CLR_INTERRUPT | Clear the interrupt with intr_kind. |
| CW_SET_INTRMASK | Set the interrupt mask with intr_kind. |
| CW_GET_INTRMASK | Get the interrupt mask with intr_kind. |
| CW_SET_INTRTIME | Set the interrupt pending time. |
| CW_GET_INTRTIME | Get the interrupt pending time. |
| CW_SET_IEN | Set the global interrupt enable only when SYS_CHIP_LOCK is not set. |
| CW_GET_IEN | Get the global interrupt enable. |
| CW_GET_ID | Get _WIZCHIP_ name. |
| CW_GET_VER | Get the version of TCP/IP TOE engine. |
| CW_SET_SYSCLK | Set the system clock with SYSCLK_100MHZ or SYSCLK_10MHZ only when SYS_CHIP_LOCK is unlock. |
| CW_GET_SYSCLK | Get the system clock with SYSCLK_100MHZ or SYSCLK_10MHZ. |
| CW_RESET_PHY | Reset PHY. |
| CW_SET_PHYCONF | Set PHY operation mode (Manual/Auto, 10/100, Half/Full) with wiz_PhyConf. |
| CW_GET_PHYCONF | Get PHY operation mode (Manual/Auto, 10/100, Half/Full) with wiz_PhyConf. |
| CW_GET_PHYSTATUS | Get real operation mode with wiz_PhyConf when PHY is linked up. |
| CW_SET_PHYPOWMODE | Set PHY power mode with PHY_POWER_NORM or PHY_POWER_DOWN. |
| CW_GET_PHYPOWMODE | Get PHY Power mode with PHY_POWER_NORM or PHY_POWER_DOWN. |
| CW_GET_PHYLINK | Get PHY Link status with PHY_LINK_ON or PHY_LINK_OFF. |
Definition at line 239 of file wizchip_conf.h.
| enum ctlnetwork_type |
Network control type enumeration.
ctlnetwork_type includes a general network configuration function for _WIZCHIP_.
| Enumerator | |
|---|---|
| CN_SET_NETINFO | Set Network with wiz_NetInfo. |
| CN_GET_NETINFO | Get Network with wiz_NetInfo. |
| CN_SET_NETMODE | Set network mode with netmode_type. |
| CN_GET_NETMODE | Get network mode with netmode_type. |
| CN_SET_TIMEOUT | Set network timeout with wiz_NetTimeout. |
| CN_GET_TIMEOUT | Get network timeout with wiz_NetTimeout. |
| CN_SET_PREFER | Set the preferred source IPv6 address of _SLCR_. |
| CN_GET_PREFER | Get the preferred source IPv6 address of _SLCR_. |
Definition at line 278 of file wizchip_conf.h.
| enum ctlnetservice_type |
Network Service Control Type enumeration.
ctlnetservice_type includes network management or monitor functions for _WIZCHIP_.
| Enumerator | |
|---|---|
| CNS_ARP | ARP process with wiz_IPAddress. |
| CNS_PING | PING process with wiz_IPAddress. |
| CNS_DAD | Duplicated IPv6 Address Detection. |
| CNS_SLAAC | Stateless Address Auto-configuration(SLAAC) with wiz_Prefix. CNS_SLAAC sends first RS message to all-router and then receives RA message from a router.
|
| CNS_UNSOL_NA | Unsolicited Neighbor Advertisement for update _WIZCHIP_ network information to neighbors. |
| CNS_GET_PREFIX | Get prefix information with wiz_Prefix. CNS_GET_PREFIX can get prefix information of RA message to be sent by a router without RS message.
|
Definition at line 296 of file wizchip_conf.h.
| enum intr_kind |
Interrupt Kind.
intr_kind can be used as the interrupt bits of _IR_, _SIR_, and _SLIR_,
It can be used as the interrupt mask bits of _IMR_, _SIMR_, and _SLIMR_,
and also, It can be used as the interrupt clear bits of _IRCLR_, _Sn_IRCLR_, and _SLIRCLR_.
| Enumerator | |
|---|---|
| IK_PPPOE_TERMINATED | PPPoE Termination Interrupt. |
| IK_DEST_UNREACH | ICMPv4 Destination Unreachable Interrupt. |
| IK_IP_CONFLICT | IPv4 Address Conflict Interrupt. |
| IK_DEST_UNREACH6 | ICMPv6 Destination Unreachable Interrupt. |
| IK_WOL | WOL magic packet Interrupt. |
| IK_NET_ALL | All Network Interrupt. |
| IK_SOCK_0 | Socket 0 Interrupt. |
| IK_SOCK_1 | Socket 1 Interrupt. |
| IK_SOCK_2 | Socket 2 Interrupt. |
| IK_SOCK_3 | Socket 3 Interrupt. |
| IK_SOCK_4 | Socket 4 Interrupt. |
| IK_SOCK_5 | Socket 5 Interrupt. |
| IK_SOCK_6 | Socket 6 Interrupt. |
| IK_SOCK_7 | Socket 7 Interrupt. |
| IK_SOCK_ALL | All Socket Interrupt. |
| IK_SOCKL_TOUT | _SLCR_ Timeout Interrupt. |
| IK_SOCKL_ARP4 | |
| IK_SOCKL_PING4 | |
| IK_SOCKL_ARP6 | |
| IK_SOCKL_PING6 | |
| IK_SOCKL_NS | |
| IK_SOCKL_RS | |
| IK_SOCKL_RA | _SLCR_ RA Interrupt. |
| IK_SOCKL_ALL | _SLCR_ All Interrupt |
| IK_INT_ALL | All Interrupt. |
Definition at line 332 of file wizchip_conf.h.
| enum ipconf_mode |
IP Address Configuration Mode.
ipconf_mode can be used to save the DHCP mode running on your system.
Definition at line 423 of file wizchip_conf.h.
| enum netmode_type |
Network mode Configuration.
netmode_type includes the network mode control function such as ping, TCP/RST block and etc.
| Enumerator | |
|---|---|
| NM_IPB_V4 | IPv4 Packet Block. |
| NM_IPB_V6 | IPv6 Packet Block. |
| NM_WOL | Wake On Lan(WOL) Mode. |
| NM_PB6_MULTI | PING6 request from multicasting group address Block. |
| NM_PB6_ALLNODE | PING6 request from all-node multicasting address Block. |
| NM_MR_MASK | _NETMR_ Mask value |
| NM_PPPoE | PPPoE Mode. |
| NM_DHA_SELECT | Destination Hardware Address Select. |
| NM_MR2_MASK | _NETMR2_ Mask value |
| NM_PB4_ALL | All PING4 request Block. |
| NM_TRSTB_V4 | TCP RST packet for IPv4 Send Block. |
| NM_PARP_V4 | ARP request for IPv4 before PINGv4 Replay. |
| NM_UNRB_V4 | Unreachable Destination for IPv4 Block. |
| NM_NET4_MASK | _NET4MR_ Mask value |
| NM_PB6_ALL | All PING6 request Block. |
| NM_TRSTB_V6 | TCP RST packet for IPv6 Send Block. |
| NM_PARP_V6 | ARP request for IPv6 before PINGv4 Replay. |
| NM_UNRB_V6 | Unreachable Destination for IPv6 Block. |
| NM_NET6_MASK | _NET6MR_ Mask value |
| NM_MASK_ALL | netmode_type all mask value |
Definition at line 463 of file wizchip_conf.h.
1.8.17