summaryrefslogtreecommitdiff
path: root/gsm-receiver/src/lib/decoder/openbtsstuff/VocoderFrame.h
blob: c0e51c0a62e9ad6e5bcf733e37deb066ce3af45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _VOCODERFRAME_H
#define _VOCODERFRAME_H

#include "BitVector.h" 
//#include "GSMCommon.h"

class VocoderFrame : public BitVector {

        public:

        VocoderFrame()
                :BitVector(264)
        { fillField(0,0x0d,4); }

        /** Construct by unpacking a char[33]. */
        VocoderFrame(const unsigned char *src)
                :BitVector(264)
        { unpack(src); }

        BitVector payload() { return tail(4); }
        const BitVector payload() const { return tail(4); }

};

#endif
personal git repositories of Harald Welte. Your mileage may vary