WE310F5  39.00.000
m2mb_nwif.h File Reference

Network Interface. More...

#include <stdint.h>
#include <string.h>
#include "m2mb_types.h"

Go to the source code of this file.

Data Structures

struct  M2MB_NWIF_IPV4_CONFIG
 IPV4 configuration. More...
 
struct  M2MB_NWIF_IPV6_CONFIG
 IPV6 configuration. More...
 
struct  M2MB_NWIF_DHCPV4_CLIENT
 DHCP client configuration in case of DHCP server. More...
 
struct  M2MB_NWIF_DNS_SERVER_LIST
 For use with m2mb_nwif_cfgget() to get IP addresses of DNS servers. More...
 
union  M2MB_NWIF_CFG_T
 NWIF configuration. More...
 
#define M2MB_NWIF_HOSTNAME_SIZE   (32)
 
enum  M2MB_NWIF_EVENT_E {
  M2MB_NWIF_IPV4CFG_GET_IP_E =(1 << 0),
  M2MB_NWIF_IPV4CFG_STATIC_IP_E =(1 << 1),
  M2MB_NWIF_IPV4CFG_DHCPC_IP_E =(1 << 2),
  M2MB_NWIF_IPV4CFG_DHCPS_CLIENT_IP_E =(1 << 3),
  M2MB_NWIF_IPV4CFG_AUTO_IP_E =(1 << 4),
  M2MB_NWIF_IPV6CFG_GET_IP_E =(1 << 5),
  M2MB_NWIF_IPV6CFG_DHCPC_IP_E =(1 << 6),
  M2MB_NWIF_IPV6CFG_AUTO_IP_E =(1 << 7),
  M2MB_NWIF_DNS_SERVER_LIST_E =(1 << 8)
}
 Commands for NWIF API's.
More...
 
enum  M2MB_NWIF_STATUS {
  M2MB_NWIF_STATUS_NOT_INITIALIZED_E,
  M2MB_NWIF_STATUS_INITIALIZED_E,
  M2MB_NWIF_STATUS_OPEN_IN_PROGRESS_E,
  M2MB_NWIF_STATUS_OPEN_DONE_E
}
 NWIF status enumeration. More...
 
typedef enum M2MB_NWIF_STATUS M2MB_NWIF_STATUS_E
 NWIF status enumeration. More...
 
typedef struct M2MB_NWIF_IPV4_CONFIG M2MB_NWIF_IPV4_CONFIG_T
 IPV4 configuration. More...
 
typedef struct M2MB_NWIF_IPV6_CONFIG M2MB_NWIF_IPV6_CONFIG_T
 IPV6 configuration. More...
 
typedef struct M2MB_NWIF_DHCPV4_CLIENT M2MB_NWIF_DHCPV4_CLIENT_T
 DHCP client configuration in case of DHCP server. More...
 
typedef struct M2MB_NWIF_DNS_SERVER_LIST M2MB_NWIF_DNS_SERVER_LIST_T
 For use with m2mb_nwif_cfgget() to get IP addresses of DNS servers. More...
 
typedef VOID(* M2MB_NWIF_IPCONFIG_CB) (UINT8 deviceId, VOID *cbctx, M2MB_NWIF_EVENT_E eventid, M2MB_NWIF_CFG_T *data)
 NWIF call back prototype. More...
 
M2MB_BOOL_T m2mb_nwif_wlan_devname_get (UINT8 deviceId, CHAR **pWifname)
 WLAN device name. More...
 
INT32 m2mb_nwif_init (UINT8 deviceId, M2MB_NWIF_IPCONFIG_CB cb, VOID *cbctx)
 Network interface initialization. More...
 
INT32 m2mb_nwif_open (UINT8 deviceId, M2MB_NWIF_EVENT_E ip_flag)
 Network interface open. More...
 
INT32 m2mb_nwif_cfgget (UINT8 deviceId, M2MB_NWIF_EVENT_E cfgflag, M2MB_NWIF_CFG_T *pCfg)
 Network interface configuration. More...
 
INT32 m2mb_nwif_cfgset (UINT8 deviceId, M2MB_NWIF_EVENT_E cfgflag, M2MB_NWIF_CFG_T *pCfg)
 Network interface configuration. More...
 
INT32 m2mb_nwif_close (UINT8 deviceId)
 Network interface close. More...
 
INT32 m2mb_nwif_Set_Hostname (const char *hostname)
 Set hostname. More...
 
INT32 m2mb_nwif_deinit (UINT8 deviceId)
 Network interface de-initialization. More...
 
INT32 m2mb_nwif_dhcpv4s (UINT8 deviceId, char *start_ip_addr_string, char *end_ip_addr_string, int leasetime)
 Network interface close. More...
 
INT32 m2mb_nwif_check_ip_addr_valid (INT32 ipaddress)
 
VOID m2mb_nwif_lwip_init (VOID)
 

Detailed Description

Network Interface.

we866e4/epl/inc/nwk/m2mb_nwif.h

Network interface provides APIs to configure IPv4 and IPv6 on WLAN Interface.

Note
Dependencies:
"#include <m2mb_types.h>"
"#include <m2mb_socket.h>"
Author
Prasad Reddy
Date
03/10/2017

Definition in file m2mb_nwif.h.