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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* enumerations for HopeRf rf69 radio module
*
* Copyright (C) 2016 Wolf-Entwicklungen
* Marcus Wolf <linux@wolf-entwicklungen.de>
*/
#ifndef RF69_ENUM_H
#define RF69_ENUM_H
enum mode {
mode_sleep,
standby,
synthesizer,
transmit,
receive
};
enum modulation {
OOK,
FSK,
UNDEF
};
enum mod_shaping {
SHAPING_OFF,
SHAPING_1_0,
SHAPING_0_5,
SHAPING_0_3,
SHAPING_BR,
SHAPING_2BR
};
enum pa_ramp {
ramp3400,
ramp2000,
ramp1000,
ramp500,
ramp250,
ramp125,
ramp100,
ramp62,
ramp50,
ramp40,
ramp31,
ramp25,
ramp20,
ramp15,
ramp12,
ramp10
};
enum antenna_impedance {
fifty_ohm,
two_hundred_ohm
};
enum lna_gain {
automatic,
max,
max_minus_6,
max_minus_12,
max_minus_24,
max_minus_36,
max_minus_48,
undefined
};
enum mantisse {
mantisse16,
mantisse20,
mantisse24
};
enum threshold_decrement {
dec_every8th,
dec_every4th,
dec_every2nd,
dec_once,
dec_twice,
dec_4times,
dec_8times,
dec_16times
};
enum fifo_fill_condition {
after_sync_interrupt,
always
};
enum packet_format {
/*
* Used when the size of payload is fixed in advance. This mode of
* operation may be of interest to minimize RF overhead by 1 byte as
* no length byte field is required
*/
packet_length_fix,
/*
* Used when the size of payload isn't known in advance. It requires the
* transmitter to send the length byte in each packet so the receiver
* would know how to operate properly
*/
packet_length_var
};
enum tx_start_condition {
/* the number of bytes in the FIFO exceeds FIFO_THRESHOLD */
fifo_level,
/* at least one byte in the FIFO */
fifo_not_empty
};
enum address_filtering {
filtering_off,
node_address,
node_or_broadcast_address
};
enum dagc {
normal_mode,
improve,
improve_for_low_modulation_index
};
#endif
|