Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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)
Generated on Tue Jul 12 2022 13:17:38 by
1.7.2