GNU Radio's GR-AIR-MODES Package
types.h
Go to the documentation of this file.
1
/*
2
# Copyright 2010 Nick Foster
3
#
4
# This file is part of gr-air-modes
5
#
6
# gr-air-modes is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 3, or (at your option)
9
# any later version.
10
#
11
# gr-air-modes is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
15
#
16
# You should have received a copy of the GNU General Public License
17
# along with gr-air-modes; see the file COPYING. If not, write to
18
# the Free Software Foundation, Inc., 51 Franklin Street,
19
# Boston, MA 02110-1301, USA.
20
#
21
*/
22
23
#ifndef AIR_MODES_TYPES_H
24
#define AIR_MODES_TYPES_H
25
26
typedef
enum
{
No_Packet
= 0,
Short_Packet
= 1,
Fruited_Packet
= 2,
Long_Packet
= 3 }
framer_packet_type
;
27
typedef
enum
{
No_Error
= 0,
Solution_Found
,
Too_Many_LCBs
,
No_Solution
,
Multiple_Solutions
}
bruteResultTypeDef
;
28
29
struct
modes_packet
{
30
unsigned
char
data
[14];
31
// unsigned char confidence[14]; //112 bits of boolean high/low confidence data for each bit
32
unsigned
char
lowconfbits
[24];
//positions of low confidence bits within the packet
33
34
unsigned
long
crc
;
35
unsigned
int
numlowconf
;
36
framer_packet_type
type
;
//what length packet are we
37
unsigned
int
message_type
;
38
float
reference_level
;
39
double
timestamp
;
40
};
41
42
struct
slice_result_t
{
43
bool
decision
;
44
bool
confidence
;
45
};
46
47
#endif
No_Solution
@ No_Solution
Definition:
types.h:27
No_Error
@ No_Error
Definition:
types.h:27
framer_packet_type
framer_packet_type
Definition:
types.h:26
bruteResultTypeDef
bruteResultTypeDef
Definition:
types.h:27
Too_Many_LCBs
@ Too_Many_LCBs
Definition:
types.h:27
modes_packet::lowconfbits
unsigned char lowconfbits[24]
Definition:
types.h:32
Solution_Found
@ Solution_Found
Definition:
types.h:27
slice_result_t
Definition:
types.h:42
slice_result_t::confidence
bool confidence
Definition:
types.h:44
modes_packet::type
framer_packet_type type
Definition:
types.h:36
Multiple_Solutions
@ Multiple_Solutions
Definition:
types.h:27
modes_packet::data
unsigned char data[14]
Definition:
types.h:30
Long_Packet
@ Long_Packet
Definition:
types.h:26
modes_packet
Definition:
types.h:29
No_Packet
@ No_Packet
Definition:
types.h:26
modes_packet::message_type
unsigned int message_type
Definition:
types.h:37
modes_packet::reference_level
float reference_level
Definition:
types.h:38
Short_Packet
@ Short_Packet
Definition:
types.h:26
slice_result_t::decision
bool decision
Definition:
types.h:43
modes_packet::crc
unsigned long crc
Definition:
types.h:34
modes_packet::numlowconf
unsigned int numlowconf
Definition:
types.h:35
modes_packet::timestamp
double timestamp
Definition:
types.h:39
Fruited_Packet
@ Fruited_Packet
Definition:
types.h:26
include
gr_air_modes
types.h
Generated by
1.8.17