aboutsummaryrefslogtreecommitdiffstats
path: root/src/bnetz/bnetz.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-03-05 09:57:11 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2016-03-13 09:12:19 +0100
commit287b914b56d67760f6a056d065754dab0911574e (patch)
tree6727f8df4c6eefe57fcebb5a0282908174c3f6b6 /src/bnetz/bnetz.h
parentd21be383a6515760a38f403100a9d142633bf616 (diff)
bnetz: Simplifying 'telegramm' handling
Diffstat (limited to 'src/bnetz/bnetz.h')
-rw-r--r--src/bnetz/bnetz.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bnetz/bnetz.h b/src/bnetz/bnetz.h
index 2064e63..3eed7c8 100644
--- a/src/bnetz/bnetz.h
+++ b/src/bnetz/bnetz.h
@@ -70,7 +70,7 @@ typedef struct bnetz {
int fsk_filter_pos; /* current sample position in filter_spl */
int fsk_filter_step; /* number of samples for each analyzation */
int fsk_filter_bit; /* last bit, so we detect a bit change */
- int fsk_filter_sample; /* sample counter for shifting receive bits */
+ int fsk_filter_sample; /* count until it is time to sample bit */
uint16_t fsk_filter_telegramm; /* rx shift register for receiveing telegramm */
double fsk_filter_quality[16]; /* quality of each bit in telegramm */
double fsk_filter_level[16]; /* level of each bit in telegramm */
@@ -79,7 +79,7 @@ typedef struct bnetz {
int tone_count; /* how long has that tone been detected */
double phaseshift256[2]; /* how much the phase of sine wave changes per sample */
double phase256; /* current phase */
- const char *telegramm; /* current telegramm sequence */
+ int telegramm; /* set, if there is a valid telegram */
int16_t *telegramm_spl; /* 16 * samples_per_bit */
int telegramm_pos; /* current sample position in telegramm_spl */