FSK is now mfsk, TODO make old FSK client change
This commit is contained in:
parent
e145125af6
commit
774ee36f16
1 changed files with 3 additions and 2 deletions
|
@ -17,6 +17,7 @@ This program is free software: you can redistribute it and/or modify
|
||||||
|
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
#include "fskburst.h"
|
#include "fskburst.h"
|
||||||
|
#include "util.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
fskburst::fskburst(uint64_t TuneFrequency,uint32_t SymbolRate,float Deviation,int Channel,uint32_t FifoSize):bufferdma(Channel,FifoSize+3,2,1),freqdeviation(Deviation)
|
fskburst::fskburst(uint64_t TuneFrequency,uint32_t SymbolRate,float Deviation,int Channel,uint32_t FifoSize):bufferdma(Channel,FifoSize+3,2,1),freqdeviation(Deviation)
|
||||||
|
@ -78,7 +79,7 @@ This program is free software: you can redistribute it and/or modify
|
||||||
|
|
||||||
|
|
||||||
// Write a frequency sample
|
// Write a frequency sample
|
||||||
SetEasyCB(cbp++,samplecnt*registerbysample,dma_pllc_frac,1);//Enable clk
|
SetEasyCB(cbp++,samplecnt*registerbysample,dma_pllc_frac,1);//FReq
|
||||||
|
|
||||||
// Delay
|
// Delay
|
||||||
SetEasyCB(cbp++,samplecnt*registerbysample,syncwithpwm?dma_pwm:dma_pcm,1);
|
SetEasyCB(cbp++,samplecnt*registerbysample,syncwithpwm?dma_pwm:dma_pcm,1);
|
||||||
|
@ -99,7 +100,7 @@ This program is free software: you can redistribute it and/or modify
|
||||||
cbp+=2; // Skip the first 2 CB (initialisation)
|
cbp+=2; // Skip the first 2 CB (initialisation)
|
||||||
for(unsigned int i=0;i<Size;i++)
|
for(unsigned int i=0;i<Size;i++)
|
||||||
{
|
{
|
||||||
sampletab[i]=(0x5A<<24)|GetMasterFrac((Symbols[i]==0)?-freqdeviation:freqdeviation);
|
sampletab[i]=(0x5A<<24)|GetMasterFrac(freqdeviation*Symbols[i]);
|
||||||
cbp++;//SKIP FREQ CB
|
cbp++;//SKIP FREQ CB
|
||||||
cbp->next = mem_virt_to_phys(cbp + 1);
|
cbp->next = mem_virt_to_phys(cbp + 1);
|
||||||
cbp++;
|
cbp++;
|
||||||
|
|
Loading…
Reference in a new issue