-
Notifications
You must be signed in to change notification settings - Fork 32
/
process.h
52 lines (43 loc) · 967 Bytes
/
process.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef PROCESS_H
#define PROCESS_H
#include <stdint.h>
#include <sys/time.h>
#include "burst_desc.h"
#define RAT_GSM 0
#define RAT_UMTS 1
#define RAT_LTE 2
#define DOMAIN_CS 0
#define DOMAIN_PS 1
#define MSG_SDCCH 0x01
#define MSG_SACCH 0x02
#define MSG_FACCH 0x04
#define MSG_BCCH 0x08
#define MSG_CIPHERED 0x40
#define MSG_DECODED 0x80
struct burst_buf {
unsigned count;
unsigned errors;
unsigned snr[2*4];
unsigned rxl[2*4];
uint32_t fn[2*4];
uint16_t arfcn[2*4];
uint8_t data[2*4*114];
uint8_t sbit[2*4*2];
} __attribute__((packed));
struct radio_message {
uint32_t id;
uint8_t rat;
uint8_t domain;
uint8_t flags; /* MSG_* */
struct timeval timestamp;
char info[128];
uint8_t chan_nr;
uint8_t msg[256];
uint32_t msg_len;
struct burst_buf bb;
struct radio_message *next;
struct radio_message *prev;
} __attribute__((packed));
void process_init();
//int process_handle_burst(struct session_info *s, struct l1ctl_burst_ind *bi);
#endif