-
Notifications
You must be signed in to change notification settings - Fork 39
/
burst_catcher.h
37 lines (30 loc) · 813 Bytes
/
burst_catcher.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Copyright 2022 ICE9 Consulting LLC
*/
#ifndef __BURST_CATCHER_H__
#define __BURST_CATCHER_H__
#include <time.h>
#include "fsk.h"
// burst processing, one per channel
typedef struct _burst_catcher_t {
unsigned freq;
agc_crcf agc;
float complex *burst;
unsigned burst_len;
unsigned burst_buf_size;
unsigned burst_num;
struct timespec timestamp;
} burst_catcher_t;
typedef struct _burst_t {
float complex *burst;
unsigned len;
unsigned freq;
packet_t packet;
unsigned num;
struct timespec timestamp;
} burst_t;
void burst_catcher_create(burst_catcher_t *c, unsigned freq);
void burst_catcher_destroy(burst_catcher_t *c);
int burst_catcher_execute(burst_catcher_t *c, float complex *sample, burst_t *burst_out);
void burst_destroy(burst_t *b);
#endif