From f003cdd04924da69049d332e897dd6eaea55f297 Mon Sep 17 00:00:00 2001 From: jcorgan Date: Thu, 28 Sep 2006 16:43:53 +0000 Subject: Merged jcorgan/pager developer branch into trunk. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3685 221aa14e-8319-0410-a670-987f0aec2ac5 --- gr-pager/src/pageri_flex_modes.cc | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'gr-pager/src/pageri_flex_modes.cc') 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; +} -- cgit