mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-20 20:55:40 -05:00
Some much needed organization
This commit is contained in:
34
src/p25p1_tdu.c
Normal file
34
src/p25p1_tdu.c
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
#include "dsd.h"
|
||||
|
||||
#include "p25p1_hdu.h"
|
||||
#include "p25p1_heuristics.h"
|
||||
|
||||
|
||||
void
|
||||
processTDU (dsd_opts* opts, dsd_state* state)
|
||||
{
|
||||
AnalogSignal analog_signal_array[14];
|
||||
int status_count;
|
||||
|
||||
// we skip the status dibits that occur every 36 symbols
|
||||
// the first IMBE frame starts 14 symbols before next status
|
||||
// so we start counter at 36-14-1 = 21
|
||||
status_count = 21;
|
||||
|
||||
// Next 14 dibits should be zeros
|
||||
read_zeros(opts, state, analog_signal_array, 28, &status_count, 1);
|
||||
|
||||
// Next we should find an status dibit
|
||||
if (status_count != 35) {
|
||||
printf("*** SYNC ERROR\n");
|
||||
}
|
||||
|
||||
// trailing status symbol
|
||||
{
|
||||
int status;
|
||||
status = getDibit (opts, state) + '0';
|
||||
// TODO: do something useful with the status bits...
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user