Files | |
file | wifi.h |
Definitions for netdev common Wi-Fi code. | |
Data Structures | |
struct | wifi_scan_request |
A Wi-Fi scan request. More... | |
struct | wifi_scan_result |
A Wi-Fi scan result. More... | |
struct | wifi_scan_list_node |
Node type in a wifi scan list wifi_scan_list_t. More... | |
struct | wifi_connect_request |
A Wi-Fi connect request. More... | |
struct | wifi_connect_result |
A Wi-Fi connect result. More... | |
struct | wifi_disconnect_request |
A Wi-Fi disconnect request. More... | |
struct | wifi_disconnect_result |
A Wi-Fi disconnect result. More... | |
Macros | |
#define | WIFI_SCAN_REQUEST_INITIALIZER(ch, cb, ms) |
Static initializer for a wifi_scan_request_t. | |
#define | WIFI_SCAN_RESULT_INITIALIZER(ch, str, sec) |
Static initializer for a wifi_scan_result_t. | |
#define | WIFI_SCAN_LIST_INITIALIZER(list) |
Static initializer for a wifi_scan_list_t. | |
#define | WIFI_CONNECT_REQUEST_INITIALIZER(ch, ccb, dcb, cr) |
Static initializer for a wifi_connect_request_t. | |
#define | WIFI_CONNECT_RESULT_INITIALIZER(ch, p_ssid) |
Static initializer for a wifi_connect_result_t. | |
#define | WIFI_DISCONNECT_REQUEST_INITIALIZER(dcb) |
Static initializer for a wifi_disconnect_request_t. | |
#define | WIFI_DISCONNECT_RESULT_INITIALIZER(ch, p_ssid) |
Static initializer for a wifi_disconnect_result_t. | |
Typedefs | |
typedef struct wifi_scan_request | wifi_scan_request_t |
A Wi-Fi scan request. | |
typedef struct wifi_scan_result | wifi_scan_result_t |
A Wi-Fi scan result. | |
typedef l2scan_list_t | wifi_scan_list_t |
A Wi-Fi scan list. | |
typedef struct wifi_scan_list_node | wifi_scan_list_node_t |
Node type in a wifi scan list wifi_scan_list_t. | |
typedef void(* | wifi_on_scan_result_t) (void *netif, const wifi_scan_list_t *res) |
Wi-Fi scan result callback prototype. | |
typedef struct wifi_connect_request | wifi_connect_request_t |
A Wi-Fi connect request. | |
typedef struct wifi_connect_result | wifi_connect_result_t |
A Wi-Fi connect result. | |
typedef void(* | wifi_on_connect_result_t) (void *netif, const wifi_connect_result_t *res) |
Wi-Fi connect result callback prototype. | |
typedef struct wifi_disconnect_request | wifi_disconnect_request_t |
A Wi-Fi disconnect request. | |
typedef struct wifi_disconnect_result | wifi_disconnect_result_t |
A Wi-Fi disconnect result. | |
typedef void(* | wifi_on_disconnect_result_t) (void *netif, const wifi_disconnect_result_t *res) |
Wi-Fi disconnect result callback prototype. | |
#define WIFI_CONNECT_REQUEST_INITIALIZER | ( | ch, | |
ccb, | |||
dcb, | |||
cr | |||
) |
Static initializer for a wifi_connect_request_t.
ch | Channel to connect to |
ccb | On connect callback |
dcb | On disconnect callback |
cr | Pointer to credentials |
#define WIFI_CONNECT_RESULT_INITIALIZER | ( | ch, | |
p_ssid | |||
) |
Static initializer for a wifi_connect_result_t.
ch | Channel of the connected AP |
p_ssid | SSID of connected AP |
#define WIFI_DISCONNECT_REQUEST_INITIALIZER | ( | dcb | ) |
Static initializer for a wifi_disconnect_request_t.
dcb | On disconnect callback |
#define WIFI_DISCONNECT_RESULT_INITIALIZER | ( | ch, | |
p_ssid | |||
) |
Static initializer for a wifi_disconnect_result_t.
ch | Channel of no longer connected AP |
p_ssid | SSID of no longer connected AP |
#define WIFI_SCAN_LIST_INITIALIZER | ( | list | ) |
Static initializer for a wifi_scan_list_t.
list | Pointer to first list node |
#define WIFI_SCAN_REQUEST_INITIALIZER | ( | ch, | |
cb, | |||
ms | |||
) |
Static initializer for a wifi_scan_request_t.
ch | Channel to scan or NETOPT_SCAN_REQ_ALL_CH |
cb | Callback on scan result wifi_on_scan_result_t |
ms | Timeout for each channel to scan |
#define WIFI_SCAN_RESULT_INITIALIZER | ( | ch, | |
str, | |||
sec | |||
) |
Static initializer for a wifi_scan_result_t.
ch | Channel that was scanned |
str | Received signal strength |
sec | AP security mode |
typedef void(* wifi_on_connect_result_t) (void *netif, const wifi_connect_result_t *res) |
typedef void(* wifi_on_disconnect_result_t) (void *netif, const wifi_disconnect_result_t *res) |
typedef void(* wifi_on_scan_result_t) (void *netif, const wifi_scan_list_t *res) |
typedef l2scan_list_t wifi_scan_list_t |