ZG2100 Network interface source

Embed: (wiki syntax)

« Back to documentation index

zg_drv.h File Reference

zg_drv.h File Reference

ZG2100 Low-level driver. More...

Go to the source code of this file.

Functions

zg_err zg_drv_init ()
 Initializes driver (zg_com_init must be called before).
void zg_process ()
 Must be called regularly to process interrupts.
void zg_int_process ()
 Processes interrupt. (Called by zg_process if needed)
bool zg_mgmt_is_busy ()
 Can a management request be sent?
void zg_mgmt_req (byte subtype, byte *buf, int len, bool close=true)
 Sends management request.
void zg_mgmt_data (byte *buf, int len, bool close=true)
 Writes additional management data.
void zg_mgmt_get_param (byte param)
 Gets parameter.
void zg_mgmt_set_param (byte param, byte *buf, int len)
 Sets parameter.
void zg_on_mgmt_avl (byte subtype, byte *buf, int len)
 Called on management request result.
void zg_on_mgmt_evt (byte subtype, byte *buf, int len)
 Called on management event.
void zg_on_mgmt_get_param (byte *buf, int len)
 Called when get parameter request completes.
void zg_send_start ()
 Sends Data (start)
void zg_send (byte *buf, int len)
 Sends Data (main)
void zg_send_end ()
 Sends Data (end)
bool zg_send_is_busy ()
 Can more data be sent?
void zg_on_input (byte *buf, int len)
 Data received.

Detailed Description

ZG2100 Low-level driver.

Definition in file zg_drv.h.


Function Documentation

zg_err zg_drv_init (  )

Initializes driver (zg_com_init must be called before).

Definition at line 47 of file zg_drv.c.

void zg_int_process (  )

Processes interrupt. (Called by zg_process if needed)

Definition at line 125 of file zg_drv.c.

void zg_mgmt_data ( byte *  buf,
int  len,
bool  close = true 
)

Writes additional management data.

Definition at line 197 of file zg_drv.c.

void zg_mgmt_get_param ( byte  param )

Gets parameter.

Definition at line 202 of file zg_drv.c.

bool zg_mgmt_is_busy (  )

Can a management request be sent?

Definition at line 186 of file zg_drv.c.

void zg_mgmt_req ( byte  subtype,
byte *  buf,
int  len,
bool  close = true 
)

Sends management request.

Definition at line 191 of file zg_drv.c.

void zg_mgmt_set_param ( byte  param,
byte *  buf,
int  len 
)

Sets parameter.

Definition at line 210 of file zg_drv.c.

void zg_on_input ( byte *  buf,
int  len 
)

Data received.

Definition at line 111 of file zg_net.c.

void zg_on_mgmt_avl ( byte  subtype,
byte *  buf,
int  len 
)

Called on management request result.

Definition at line 219 of file zg_drv.c.

void zg_on_mgmt_evt ( byte  subtype,
byte *  buf,
int  len 
)

Called on management event.

Definition at line 256 of file zg_drv.c.

void zg_on_mgmt_get_param ( byte *  buf,
int  len 
)

Called when get parameter request completes.

Definition at line 275 of file zg_drv.c.

void zg_process (  )

Must be called regularly to process interrupts.

Definition at line 114 of file zg_drv.c.

void zg_send ( byte *  buf,
int  len 
)

Sends Data (main)

Definition at line 321 of file zg_drv.c.

void zg_send_end (  )

Sends Data (end)

Definition at line 326 of file zg_drv.c.

bool zg_send_is_busy (  )

Can more data be sent?

Definition at line 331 of file zg_drv.c.

void zg_send_start (  )

Sends Data (start)

Definition at line 315 of file zg_drv.c.