/alps/ufodecode

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ufodecode

« back to all changes in this revision

Viewing changes to src/ufodecode.c

  • Committer: Suren A. Chilingaryan
  • Date: 2012-07-24 21:10:01 UTC
  • Revision ID: csa@dside.dyndns.org-20120724211001-eohks1t591h88k3b
Read output_mode and adc_resolution from frame header

Show diffs side-by-side

added added

removed removed

Lines of Context:
561
561
            pos++;
562
562
 
563
563
            meta->frame_number = raw[pos++] & 0x1FFFFFF;
564
 
            CHECK_VALUE(raw[pos] >> 24, 0x50);
 
564
            CHECK_VALUE(raw[pos] >> 28, 0x5);
565
565
            meta->time_stamp = raw[pos++] & 0xFFFFFF;
 
566
            meta->output_mode = (raw[pos] >> 24) & 0x3;
 
567
            meta->adc_resolution = (raw[pos] >> 26) & 0x3
566
568
            break;
567
569
 
568
570
        default: