mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-17 13:50:35 -04:00
Improved data carrier detection
This commit is contained in:
parent
01c629a6fd
commit
b7ffba0e92
6 changed files with 35 additions and 7 deletions
|
@ -53,6 +53,7 @@ inline static uint8_t sinSample(uint16_t i) {
|
|||
#define PHASE_INC 1 // Nudge by an eigth of a sample each adjustment
|
||||
|
||||
#define DCD_MIN_COUNT 6
|
||||
#define DCD_TIMEOUT_SAMPLES 96
|
||||
|
||||
#if BITRATE == 960
|
||||
#define FILTER_CUTOFF 600
|
||||
|
@ -107,6 +108,8 @@ typedef struct Afsk
|
|||
uint16_t phaseAcc; // Phase accumulator
|
||||
uint16_t phaseInc; // Phase increment per sample
|
||||
|
||||
uint8_t silentSamples; // How many samples were completely silent
|
||||
|
||||
FIFOBuffer txFifo; // FIFO for transmit data
|
||||
uint8_t txBuf[CONFIG_AFSK_TX_BUFLEN]; // Actual data storage for said FIFO
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue