AMPS: Add option to be more tollerant to sync detection
Also it detects more false syncs, but this is ignored if decoding fails.
This commit is contained in:
@@ -77,6 +77,7 @@ typedef struct amps {
|
||||
double fsk_rx_elapsed; /* bit duration since last level change */
|
||||
enum fsk_rx_sync fsk_rx_sync; /* sync state */
|
||||
uint16_t fsk_rx_sync_register; /* shift register to detect sync word */
|
||||
int fsk_rx_sync_tolerant; /* be more tolerant to sync */
|
||||
/* the dotting buffer stores the elapsed samples, so we can calculate
|
||||
* an average time of zero-crossings during dotting sequence.
|
||||
* this buffer wrapps every 256 values */
|
||||
@@ -160,7 +161,7 @@ const char *amps_min12number(uint32_t min1);
|
||||
void amps_number2min(const char *number, uint32_t *min1, uint16_t *min2);
|
||||
const char *amps_min2number(uint32_t min1, uint16_t min2);
|
||||
const char *amps_scm(uint8_t scm);
|
||||
int amps_create(int channel, enum amps_chan_type chan_type, const char *sounddev, int samplerate, int cross_channels, double rx_gain, int pre_emphasis, int de_emphasis, const char *write_wave, const char *read_wave, amps_si *si, uint16_t sid, uint8_t sat, int polarity, int loopback);
|
||||
int amps_create(int channel, enum amps_chan_type chan_type, const char *sounddev, int samplerate, int cross_channels, double rx_gain, int pre_emphasis, int de_emphasis, const char *write_wave, const char *read_wave, amps_si *si, uint16_t sid, uint8_t sat, int polarity, int tolerant, int loopback);
|
||||
void amps_destroy(sender_t *sender);
|
||||
void amps_rx_signaling_tone(amps_t *amps, int tone, double quality);
|
||||
void amps_rx_sat(amps_t *amps, int tone, double quality);
|
||||
|
Reference in New Issue
Block a user