ioLibrary for Cortex M series
Functions
netctrl.c File Reference

Network Control Driver Source File - For w5500. More...

#include "common/common.h"
Include dependency graph for netctrl.c:

Go to the source code of this file.

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 Source File - For w5500.

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.c.

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().