ZG2100 Network interface source

Embed: (wiki syntax)

« Back to documentation index

zg_if.h File Reference

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 zg_if.h.


Function Documentation

void zg_connect ( ZG_BSS_TYPE  type,
ZG_SECURITY  security 
)

Connects to network.

Definition at line 223 of file zg_if.c.

void zg_disconnect (  )

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.