New common FSK implementation, replaces all individual implementations
This commit is contained in:
@@ -24,11 +24,10 @@ struct dms_state {
|
||||
|
||||
typedef struct dms {
|
||||
/* DMS transmission */
|
||||
int frame_valid; /* set, if there is a valid frame in sample buffer */
|
||||
sample_t *frame_spl; /* 127 * fsk_bit_length */
|
||||
int frame_size; /* total size of buffer */
|
||||
int frame_pos; /* current sample position in frame_spl */
|
||||
int frame_length; /* number of samples currently in frame_spl */
|
||||
int tx_frame_valid; /* do we have or had a valid frame? */
|
||||
char tx_frame[127]; /* carries bits of one frame to transmit */
|
||||
int tx_frame_length;
|
||||
int tx_frame_pos;
|
||||
uint16_t rx_sync; /* shift register to detect sync */
|
||||
double rx_sync_level[256]; /* level infos */
|
||||
double rx_sync_quality[256]; /* quality infos */
|
||||
@@ -52,7 +51,7 @@ typedef struct dms {
|
||||
|
||||
int dms_init_sender(nmt_t *nmt);
|
||||
void dms_cleanup_sender(nmt_t *nmt);
|
||||
int fsk_dms_frame(nmt_t *nmt, sample_t *samples, int length);
|
||||
int dms_send_bit(nmt_t *nmt);
|
||||
void fsk_receive_bit_dms(nmt_t *nmt, int bit, double quality, double level);
|
||||
void dms_reset(nmt_t *nmt);
|
||||
|
||||
@@ -60,5 +59,5 @@ void dms_send(nmt_t *nmt, const uint8_t *data, int length, int eight_bits);
|
||||
void dms_all_sent(nmt_t *nmt);
|
||||
void dms_receive(nmt_t *nmt, const uint8_t *data, int length, int eight_bits);
|
||||
|
||||
void test_dms_frame(const char *frame, int length);
|
||||
void trigger_frame_transmission(nmt_t *nmt);
|
||||
|
||||
|
Reference in New Issue
Block a user