zg_if.h File Reference
ZG2100 NetServices high-level interface : configuration & setup. More...
Go to the source code of this file.
Functions | |
void | zg_scan (byte channel) |
Scans for available networks on given channel. | |
void | zg_on_scan_results (byte *buf, int len) |
Will be called on scan completion, for now it is just a debug dump. | |
void | zg_set_ssid (const char *ssid) |
Sets the SSID of the network to be joined. | |
void | zg_set_wep_key (const byte *key, int len) |
Sets WEP key. | |
void | zg_set_wpa_pass (const char *pass) |
Sets WPA passphrase (will compute PSK key and set it). | |
void | zg_on_psk_key (byte *buf, int len) |
On completion of the passphrase computation. | |
void | zg_set_psk_key (const byte *key, int len) |
Sets PSK key (preferred to be called directly than recomputing it every time using zg_set_wpa_pass). | |
void | zg_connect (ZG_BSS_TYPE type, ZG_SECURITY security) |
Connects to network. | |
void | zg_on_connect (zg_err result) |
On connection result. | |
zg_err | zg_get_connection_result () |
Gets connection result. | |
void | zg_disconnect () |
Disconnects from network. |
Detailed Description
ZG2100 NetServices high-level interface : configuration & setup.
Definition in file LPC2368/drv/zg2100/zg_if.h.
Function Documentation
void zg_connect | ( | ZG_BSS_TYPE | type, |
ZG_SECURITY | security | ||
) |
Connects to network.
void zg_disconnect | ( | ) |
Disconnects from network.
zg_err zg_get_connection_result | ( | ) |
Gets connection result.
void zg_on_connect | ( | zg_err | result ) |
On connection result.
void zg_on_psk_key | ( | byte * | buf, |
int | len | ||
) |
On completion of the passphrase computation.
void zg_on_scan_results | ( | byte * | buf, |
int | len | ||
) |
Will be called on scan completion, for now it is just a debug dump.
void zg_scan | ( | byte | channel ) |
Scans for available networks on given channel.
void zg_set_psk_key | ( | const byte * | key, |
int | len | ||
) |
Sets PSK key (preferred to be called directly than recomputing it every time using zg_set_wpa_pass).
void zg_set_ssid | ( | const char * | ssid ) |
Sets the SSID of the network to be joined.
void zg_set_wep_key | ( | const byte * | key, |
int | len | ||
) |
Sets WEP key.
void zg_set_wpa_pass | ( | const char * | pass ) |
Sets WPA passphrase (will compute PSK key and set it).
Generated on Tue Jul 12 2022 13:17:38 by 1.7.2