Fix DMO mode for CS700 as well as PD365.

This commit is contained in:
Jonathan Naylor 2016-09-01 19:59:37 +01:00
parent cffe692055
commit 0edb4e1c43
5 changed files with 29 additions and 246 deletions

View file

@ -30,11 +30,6 @@ enum DMORX_STATE {
DMORXS_DATA
};
struct EMBList {
uint8_t part1;
uint8_t part2;
};
class CDMRDMORX {
public:
CDMRDMORX();
@ -65,11 +60,9 @@ private:
uint8_t m_type;
uint16_t m_rssiCount;
uint16_t m_rssi;
EMBList m_embs[5U];
bool processSample(q15_t sample);
void correlateSync(bool first);
void correlateEMB();
void samplesToBits(uint16_t start, uint8_t count, uint8_t* buffer, uint16_t offset, q15_t centre, q15_t threshold);
};