结构体 | |
struct | netmgr_ifconfig_info |
this struct defines netmgr ifconfig info 更多... | |
struct | netmgr_wifi_ap_info_t |
this struct defines wifi ap info 更多... | |
struct | netmgr_wifi_ap_config_t |
this struct defines wifi ap config 更多... | |
struct | netmgr_config |
netmgr config struct 更多... | |
struct | netmgr_del_config |
netmgr delete config 更多... | |
struct | netmgr_wifi_params |
netmgr wifi params 更多... | |
struct | netmgr_wifi_ap_params |
netmgr wifi ap params 更多... | |
struct | netmgr_wifi_sta_connect_params |
netmgr wifi sta connect params 更多... | |
struct | netmgr_connect_params |
netmgr connect params 更多... | |
struct | netmgr_wifi_network_status_change_t |
this struct defines netmgr wifi status change info 更多... | |
struct | netmgr_msg_t |
this struct defines netmgr message 更多... | |
struct | netmgr_wifi_ap_list_t |
this struct defines netmgr message callback function 更多... | |
宏定义 | |
#define | IPADDR_STR_LEN 16 |
#define | NETMGR_SSID_MAX_LEN (32) |
#define | NETMGR_PWD_MAX_LEN (64) |
#define | NETMGR_BSSID_MAX_LEN (6) |
#define | MAX_AP_CONFIG_NUM (3) |
#define | NETMGR_WIFI_METHOD_MAX_LENGTH (32) |
#define | NETMGR_WIFI_STATUS_MAX_LENGTH (32) |
#define | NETMGR_WIFI_SSID_MAX_LENGTH (32) |
#define | NETMGR_WIFI_PASSWORD_MAX_LENGTH (64) |
类型定义 | |
typedef struct netmgr_ifconfig_info | netmgr_ifconfig_info_t |
this struct defines netmgr ifconfig info 更多... | |
typedef struct netmgr_wifi_ap_config_t | netmgr_wifi_config_t |
typedef struct netmgr_config | netmgr_config_t |
netmgr config struct 更多... | |
typedef struct netmgr_del_config | netmgr_del_config_t |
netmgr delete config 更多... | |
typedef struct netmgr_wifi_params | netmgr_wifi_params_t |
netmgr wifi params 更多... | |
typedef struct netmgr_wifi_ap_params | netmgr_wifi_ap_params_t |
netmgr wifi ap params 更多... | |
typedef struct netmgr_wifi_sta_connect_params | netmgr_wifi_sta_params_t |
netmgr wifi sta connect params 更多... | |
typedef struct netmgr_connect_params | netmgr_connect_params_t |
netmgr connect params 更多... | |
typedef void(* | netmgr_msg_cb_t) (netmgr_msg_t *msg) |
this struct defines netmgr message callback function 更多... | |
typedef int | netmgr_hdl_t |
typedef enum netmgr_conn_state | netmgr_conn_state_t |
netmgr connection state 更多... | |
typedef struct netmgr_config netmgr_config_t |
netmgr config struct
typedef enum netmgr_conn_state netmgr_conn_state_t |
netmgr connection state
typedef struct netmgr_connect_params netmgr_connect_params_t |
netmgr connect params
typedef struct netmgr_del_config netmgr_del_config_t |
netmgr delete config
typedef int netmgr_hdl_t |
typedef struct netmgr_ifconfig_info netmgr_ifconfig_info_t |
this struct defines netmgr ifconfig info
typedef void(* netmgr_msg_cb_t) (netmgr_msg_t *msg) |
typedef struct netmgr_wifi_ap_params netmgr_wifi_ap_params_t |
netmgr wifi ap params
typedef struct netmgr_wifi_ap_config_t netmgr_wifi_config_t |
typedef struct netmgr_wifi_params netmgr_wifi_params_t |
netmgr wifi params
typedef struct netmgr_wifi_sta_connect_params netmgr_wifi_sta_params_t |
netmgr wifi sta connect params
enum eth_mac_duplex_e |
enum eth_mac_speed_e |
enum netmgr_conn_state |
enum netmgr_msgid_t |
enum netmgr_ssid_format_e |
enum netmgr_type_t |
enum netmgr_wifi_mode_t |
netmgr_type_t get_hdl_type | ( | netmgr_hdl_t | hdl | ) |
get netmgr dev type
[in] | hdl | netmgr handle |
int netmgr_add_dev | ( | const char * | name | ) |
add netmgr dev
[in] | name | name of netmgr dev |
int netmgr_connect | ( | netmgr_hdl_t | hdl, |
netmgr_connect_params_t * | params | ||
) |
netmgr connect network
[in] | hdl | netmgr handle |
[in] | params | netmgr connect params |
int netmgr_del_config | ( | netmgr_hdl_t | , |
netmgr_del_config_t * | config | ||
) |
delete config information
[in] | hdl | netmgr handle |
[in] | config | netmgr config information |
int netmgr_del_msg_cb | ( | netmgr_hdl_t | hdl, |
netmgr_msg_cb_t | cb | ||
) |
netmgr delete message callback
[in] | hdl | netmgr handle |
[in] | cb | netmgr msg callback |
int netmgr_disconnect | ( | netmgr_hdl_t | hdl | ) |
netmgr disconnect network
[in] | hdl | netmgr handle |
int netmgr_get_config | ( | netmgr_hdl_t | hdl, |
netmgr_config_t * | config | ||
) |
get config information
[in] | hdl | netmgr handle |
[out] | config | netmgr config information |
netmgr_hdl_t netmgr_get_dev | ( | const char * | name | ) |
get netmgr handler
[in] | name | name of netmgr dev |
int netmgr_get_ifconfig | ( | netmgr_hdl_t | hdl, |
netmgr_ifconfig_info_t * | info | ||
) |
get if config information
[in] | hdl | netmgr handle |
[out] | info | config information |
netmgr_conn_state_t netmgr_get_state | ( | netmgr_hdl_t | hdl | ) |
int netmgr_save_config | ( | netmgr_hdl_t | hdl | ) |
netmgr save config
[in] | hdl | netmgr handle |
void netmgr_service_deinit | ( | ) |
net manager deinit
int netmgr_service_init | ( | utask_t * | task | ) |
net manager init.
[in] | task | NULL for current realize. |
void netmgr_set_auto_reconnect | ( | netmgr_hdl_t | hdl, |
bool | enable | ||
) |
set auto reconnect flag
[in] | hdl | netmgr handle |
[in] | enable | enable auto reconnect |
int netmgr_set_ifconfig | ( | netmgr_hdl_t | hdl, |
netmgr_ifconfig_info_t * | info | ||
) |
set if config information
[in] | hdl | netmgr handle |
[in] | info | config information |
int netmgr_set_msg_cb | ( | netmgr_hdl_t | hdl, |
netmgr_msg_cb_t | cb | ||
) |
netmgr set message callback
[in] | hdl | netmgr handle |
[in] | cb | netmgr msg callback |