Int->float for deviation

This commit is contained in:
F5OEO 2018-03-23 12:15:24 +00:00
parent 2b1c4fc77e
commit e94e996db1
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ This program is free software: you can redistribute it and/or modify
#include "fskburst.h"
fskburst::fskburst(uint64_t TuneFrequency,uint32_t SymbolRate,uint32_t Deviation,int Channel,uint32_t FifoSize):bufferdma(Channel,FifoSize+2,2,1),freqdeviation(Deviation)
fskburst::fskburst(uint64_t TuneFrequency,uint32_t SymbolRate,float Deviation,int Channel,uint32_t FifoSize):bufferdma(Channel,FifoSize+2,2,1),freqdeviation(Deviation)
{
clkgpio::SetAdvancedPllMode(true);

View file

@ -8,12 +8,12 @@
class fskburst:public bufferdma,public clkgpio,public pwmgpio,public pcmgpio
{
protected:
uint32_t freqdeviation;
float freqdeviation;
uint32_t Originfsel;
bool syncwithpwm;
dma_cb_t *lastcbp;
public:
fskburst(uint64_t TuneFrequency,uint32_t SymbolRate,uint32_t Deviation,int Channel,uint32_t FifoSize);
fskburst(uint64_t TuneFrequency,uint32_t SymbolRate,float Deviation,int Channel,uint32_t FifoSize);
~fskburst();
void SetDmaAlgo();