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 LPC2368/drv/zg2100/zg_drv.h.


Function Documentation

zg_err zg_drv_init (  )

Initializes driver (zg_com_init must be called before).

void zg_int_process (  )

Processes interrupt. (Called by zg_process if needed)

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

Writes additional management data.

void zg_mgmt_get_param ( byte  param )

Gets parameter.

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_set_param ( byte  param,
byte *  buf,
int  len 
)

Sets parameter.

void zg_on_input ( byte *  buf,
int  len 
)

Data received.

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_process (  )

Must be called regularly to process interrupts.

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_send_start (  )

Sends Data (start)