ZG2100 Network interface source
« Back to documentation index
zg_if.h File Reference
ZG2100 NetServices high-level interface : configuration & setup.
More...
Go to the source code of this file.
Detailed Description
ZG2100 NetServices high-level interface : configuration & setup.
Definition in file zg_if.h .
Function Documentation
Connects to network.
Definition at line 223 of file zg_if.c .
Disconnects from network.
Definition at line 251 of file zg_if.c .
zg_err zg_get_connection_result
(
)
Gets connection result.
Definition at line 246 of file zg_if.c .
void zg_on_connect
(
zg_err
result )
On connection result.
Definition at line 241 of file zg_if.c .
void zg_on_psk_key
(
byte *
buf ,
int
len
)
On completion of the passphrase computation.
Definition at line 187 of file zg_if.c .
void zg_on_scan_results
(
byte *
buf ,
int
len
)
Will be called on scan completion, for now it is just a debug dump.
Definition at line 90 of file zg_if.c .
void zg_scan
(
byte
channel )
Scans for available networks on given channel .
Definition at line 61 of file zg_if.c .
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 ).
Definition at line 207 of file zg_if.c .
void zg_set_ssid
(
const char *
ssid )
Sets the SSID of the network to be joined.
Definition at line 142 of file zg_if.c .
void zg_set_wep_key
(
const byte *
key ,
int
len
)
Sets WEP key.
Definition at line 147 of file zg_if.c .
void zg_set_wpa_pass
(
const char *
pass )
Sets WPA passphrase (will compute PSK key and set it).
Definition at line 167 of file zg_if.c .