ioLibrary for Cortex M series
Classes | Typedefs | Enumerations | Functions
netctrl.h File Reference

Network Control Driver Header File - Common. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wiz_NetInfo_t
 

Typedefs

typedef struct wiz_NetInfo_t wiz_NetInfo
 

Enumerations

enum  dhcp_mode { NETINFO_STATIC = 1, NETINFO_DHCP }
 
enum  netinfo_member { NI_IP_ADDR, NI_SN_MASK, NI_GW_ADDR, NI_DNS_ADDR }
 

Functions

void SetNetInfo (wiz_NetInfo *netinfo)
 
void ClsNetInfo (netinfo_member member)
 
void GetNetInfo (wiz_NetInfo *netinfo)
 
void GetDstInfo (uint8_t s, uint8_t *dstip, uint16_t *dstport)
 
void SetSocketOption (uint8_t option_type, uint16_t option_value)
 
int8_t GetTCPSocketStatus (uint8_t s)
 
int8_t GetUDPSocketStatus (uint8_t s)
 
uint16_t GetSocketTxFreeBufferSize (uint8_t s)
 
uint16_t GetSocketRxRecvBufferSize (uint8_t s)
 

Detailed Description

Network Control Driver Header File - Common.

Version
1.0
Date
2013/07/09
Revision
2013/07/09 - 1.0 Release (devided from socket)
Author
modified by Mike Jeong

Copyright (C) 2013 WIZnet. All rights reserved.

Definition in file netctrl.h.

Typedef Documentation

typedef struct wiz_NetInfo_t wiz_NetInfo

Common Network Information Structure. This is used for everywhere related with network config

Enumeration Type Documentation

enum dhcp_mode

DHCP mode value of wiz_NetInfo. 'dhcp' member variable of wiz_NetInfo struct can have one of these value

Enumerator
NETINFO_STATIC 

Indicate DHCP is disabled.

NETINFO_DHCP 

Indicate DHCP is working.

Definition at line 22 of file netctrl.h.

Indicate the member variable of wiz_NetInfo. This is used as a param of ClsNetInfo function.

Enumerator
NI_IP_ADDR 

Indicate IP Address.

NI_SN_MASK 

Indicate Subnet Mask.

NI_GW_ADDR 

Indicate Gateway Address.

NI_DNS_ADDR 

Indicate DNS Address.

Definition at line 31 of file netctrl.h.

Function Documentation

void SetNetInfo ( wiz_NetInfo netinfo)
void ClsNetInfo ( netinfo_member  member)

Definition at line 31 of file netctrl.c.

References DBGA, ERRA, NI_GW_ADDR, NI_IP_ADDR, NI_SN_MASK, setGAR(), setSIPR(), and setSUBR().

void GetNetInfo ( wiz_NetInfo netinfo)
void GetDstInfo ( uint8_t  s,
uint8_t *  dstip,
uint16_t *  dstport 
)

Definition at line 62 of file netctrl.c.

References getSn_DIPR(), and getSn_DPORT().

void SetSocketOption ( uint8_t  option_type,
uint16_t  option_value 
)

Definition at line 72 of file netctrl.c.

References setIMR(), setRCR(), and setRTR().

int8_t GetTCPSocketStatus ( uint8_t  s)
int8_t GetUDPSocketStatus ( uint8_t  s)
uint16_t GetSocketTxFreeBufferSize ( uint8_t  s)

Definition at line 136 of file netctrl.c.

References getSn_TX_FSR().

Referenced by TCPSendNB().

uint16_t GetSocketRxRecvBufferSize ( uint8_t  s)

Definition at line 141 of file netctrl.c.

References getSn_RX_RSR().

Referenced by sockwatch_run(), TCPRecv(), and UDPRecv().