mirror of https://github.com/wb2osz/direwolf.git
22 lines
405 B
C
22 lines
405 B
C
|
|
|
|
/* demod_9600.h */
|
|
|
|
void demod_9600_init (int samples_per_sec, int baud, struct demodulator_state_s *D);
|
|
|
|
void demod_9600_process_sample (int chan, int sam, struct demodulator_state_s *D);
|
|
|
|
|
|
|
|
|
|
/* Undo data scrambling for 9600 baud. */
|
|
|
|
static inline int descramble (int in, int *state)
|
|
{
|
|
int out;
|
|
|
|
out = (in ^ (*state >> 16) ^ (*state >> 11)) & 1;
|
|
*state = (*state << 1) | (in & 1);
|
|
return (out);
|
|
}
|