aboutsummaryrefslogtreecommitdiff
path: root/libqcdm/src/commands.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-03-30 00:32:05 -0700
committerDan Williams <dcbw@redhat.com>2010-03-30 00:32:27 -0700
commit0ae176c63c8686cd3a86b7933be5ae3546782475 (patch)
tree33486efe86bf3469fbff80283621423c0b37dd6e /libqcdm/src/commands.h
parentcff40ac4724780e73f47af4f17cba952ab1ed680 (diff)
qcdm: add Pilot Set retrieval for signal strength calculations
Determined from various sources including RTManager and "Technical Introduction to CDMA" (Course RF100 Chapter 7).
Diffstat (limited to 'libqcdm/src/commands.h')
-rw-r--r--libqcdm/src/commands.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libqcdm/src/commands.h b/libqcdm/src/commands.h
index 0878fe33..38aec359 100644
--- a/libqcdm/src/commands.h
+++ b/libqcdm/src/commands.h
@@ -110,6 +110,34 @@ QCDMResult *qcdm_cmd_sw_version_result (const char *buf,
/**********************************************************************/
+enum {
+ QCDM_CMD_PILOT_SETS_TYPE_UNKNOWN = 0,
+ QCDM_CMD_PILOT_SETS_TYPE_ACTIVE = 1,
+ QCDM_CMD_PILOT_SETS_TYPE_CANDIDATE = 2,
+ QCDM_CMD_PILOT_SETS_TYPE_NEIGHBOR = 3,
+};
+
+gsize qcdm_cmd_pilot_sets_new (char *buf,
+ gsize len,
+ GError **error);
+
+QCDMResult *qcdm_cmd_pilot_sets_result (const char *buf,
+ gsize len,
+ GError **error);
+
+gboolean qcdm_cmd_pilot_sets_result_get_num (QCDMResult *result,
+ guint32 set_type,
+ guint32 *out_num);
+
+gboolean qcdm_cmd_pilot_sets_result_get_pilot (QCDMResult *result,
+ guint32 set_type,
+ guint32 num,
+ guint32 *out_pn_offset,
+ guint32 *out_ecio,
+ float *out_db);
+
+/**********************************************************************/
+
#define QCDM_CMD_NV_GET_MDN_ITEM_PROFILE "profile"
#define QCDM_CMD_NV_GET_MDN_ITEM_MDN "mdn"