summaryrefslogtreecommitdiff
path: root/gr-pager/src/pageri_flex_modes.cc
diff options
context:
space:
mode:
authorjcorgan2006-09-28 16:43:53 +0000
committerjcorgan2006-09-28 16:43:53 +0000
commitf003cdd04924da69049d332e897dd6eaea55f297 (patch)
treee4ed1b20e17484933c1adf9befcf6cdcd82c4f38 /gr-pager/src/pageri_flex_modes.cc
parenta986c0681c44d3788299f5bdcf025248edf02845 (diff)
downloadgnuradio-f003cdd04924da69049d332e897dd6eaea55f297.tar.gz
gnuradio-f003cdd04924da69049d332e897dd6eaea55f297.tar.bz2
gnuradio-f003cdd04924da69049d332e897dd6eaea55f297.zip
Merged jcorgan/pager developer branch into trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3685 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-pager/src/pageri_flex_modes.cc')
-rw-r--r--gr-pager/src/pageri_flex_modes.cc22
1 files changed, 16 insertions, 6 deletions
diff --git a/gr-pager/src/pageri_flex_modes.cc b/gr-pager/src/pageri_flex_modes.cc
index a846643a7..5988da4a7 100644
--- a/gr-pager/src/pageri_flex_modes.cc
+++ b/gr-pager/src/pageri_flex_modes.cc
@@ -23,11 +23,21 @@
const flex_mode_t flex_modes[] =
{
- { 0x870C78F3, 1600, 2, true, false, false, false, 1 },
- { 0xB0684F97, 1600, 4, true, true, false, false, 2 },
-// { 0xUNKNOWN, 3200, 2, true, false, true, false, 2 },
- { 0xDEA0215F, 3200, 4, true, true, true, true, 4 },
- { 0x4C7CB383, 3200, 4, true, true, true, true, 4 }
+ { 0x870C78F3, 1600, 2 },
+ { 0xB0684F97, 1600, 4 },
+// { 0xUNKNOWN, 3200, 2 },
+ { 0xDEA0215F, 3200, 4 },
+ { 0x4C7CB383, 3200, 4 }
};
-const int num_flex_modes = sizeof(flex_modes);
+const int num_flex_modes = sizeof(flex_modes)/sizeof(flex_modes[0]);
+
+int find_flex_mode(gr_int32 sync_code)
+{
+ for (int i = 0; i < num_flex_modes; i++)
+ if (flex_modes[i].sync == sync_code)
+ return i;
+
+ // Not found
+ return -1;
+}