WIZlib Library API  ver 1.0
WIZlib Library API User Menual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
Netdev Control

Network Device Control. More...

Collaboration diagram for Netdev Control:

Macros

#define DEVICE_INIT_WITH_MEMCHK(tx_size_v, rx_size_v)
 Call device_init after array param check.
 

Functions

void device_init (uint8 *tx_size, uint8 *rx_size)
 Initialize the w5200 device. More...
 
void device_SW_reset (void)
 Reset w5200 device. More...
 
void device_mem_init (uint8 *tx_size, uint8 *rx_size)
 Initialize the Tx, Rx buffer size as per the channels. More...
 
void SetNetInfo (wiz_NetInfo *netinfo)
 This function set the network information. More...
 
void ClsNetInfo (netinfo_member member)
 Clear specific device address to zero. More...
 
void GetNetInfo (wiz_NetInfo *netinfo)
 This function get the network information. More...
 
void device_HW_reset (void)
 Reset the Network Device.
 

Detailed Description

Network Device Control.

Function Documentation

void ClsNetInfo ( netinfo_member  member)

Clear specific device address to zero.

Parameters
memberthe member variable of netinfo_member.

Definition at line 119 of file w5200/socket.c.

void device_init ( uint8 *  tx_size,
uint8 *  rx_size 
)

Initialize the w5200 device.

Parameters
tx_sizeTx socket buffer size array
rx_sizeRx socket buffer size array
Returns

Definition at line 34 of file w5200/socket.c.

void device_mem_init ( uint8 *  tx_size,
uint8 *  rx_size 
)

Initialize the Tx, Rx buffer size as per the channels.

This is called by device_init function.
but after network device reset by user, this may be necessary.

Parameters
tx_sizeTx socket buffer size array
rx_sizeRx socket buffer size array

Definition at line 46 of file w5200/socket.c.

Here is the caller graph for this function:

void device_SW_reset ( void  )

Reset w5200 device.

Be careful to use this because after reset the device, all register will return to reset value.

Definition at line 40 of file w5200/socket.c.

Here is the caller graph for this function:

void GetNetInfo ( wiz_NetInfo netinfo)

This function get the network information.

Parameters
netinfoNetwork address struct wiz_NetInfo

Definition at line 145 of file w5200/socket.c.

Here is the caller graph for this function:

void SetNetInfo ( wiz_NetInfo netinfo)

This function set the network information.

You can set network addresses through this.
If zero address is set in variable, it will be ignored.

Parameters
netinfoNetwork address struct wiz_NetInfo
See Also
ClsNetInfo, GetNetInfo

Definition at line 97 of file w5200/socket.c.

Here is the caller graph for this function: