2017-07-16 10:52:06 +00:00
|
|
|
/*
|
|
|
|
* enumerations for HopeRf rf69 radio module
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 Wolf-Entwicklungen
|
|
|
|
* Marcus Wolf <linux@wolf-entwicklungen.de>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RF69_ENUM_H
|
|
|
|
#define RF69_ENUM_H
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum mode {
|
2017-12-05 22:08:39 +00:00
|
|
|
mode_sleep,
|
|
|
|
standby,
|
|
|
|
synthesizer,
|
|
|
|
transmit,
|
|
|
|
receive
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum modulation {
|
2017-12-05 22:08:39 +00:00
|
|
|
OOK,
|
2017-12-08 15:31:28 +00:00
|
|
|
FSK,
|
|
|
|
UNDEF
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-12-05 22:08:43 +00:00
|
|
|
enum mod_shaping {
|
|
|
|
SHAPING_OFF,
|
|
|
|
SHAPING_1_0,
|
|
|
|
SHAPING_0_5,
|
|
|
|
SHAPING_0_3,
|
|
|
|
SHAPING_BR,
|
|
|
|
SHAPING_2BR
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum paRamp {
|
2017-12-05 22:08:39 +00:00
|
|
|
ramp3400,
|
|
|
|
ramp2000,
|
|
|
|
ramp1000,
|
|
|
|
ramp500,
|
|
|
|
ramp250,
|
|
|
|
ramp125,
|
|
|
|
ramp100,
|
|
|
|
ramp62,
|
|
|
|
ramp50,
|
|
|
|
ramp40,
|
|
|
|
ramp31,
|
|
|
|
ramp25,
|
|
|
|
ramp20,
|
|
|
|
ramp15,
|
|
|
|
ramp12,
|
|
|
|
ramp10
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2018-01-27 09:42:12 +00:00
|
|
|
enum antenna_impedance {
|
2018-01-27 09:42:13 +00:00
|
|
|
fifty_ohm,
|
|
|
|
two_hundred_ohm
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum lnaGain {
|
2017-12-05 22:08:39 +00:00
|
|
|
automatic,
|
|
|
|
max,
|
2017-12-22 08:36:59 +00:00
|
|
|
max_minus_6,
|
|
|
|
max_minus_12,
|
|
|
|
max_minus_24,
|
|
|
|
max_minus_36,
|
|
|
|
max_minus_48,
|
2017-12-05 22:08:39 +00:00
|
|
|
undefined
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum mantisse {
|
2017-12-05 22:08:39 +00:00
|
|
|
mantisse16,
|
|
|
|
mantisse20,
|
|
|
|
mantisse24
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2018-02-20 14:03:30 +00:00
|
|
|
enum threshold_decrement {
|
2017-12-05 22:08:39 +00:00
|
|
|
dec_every8th,
|
|
|
|
dec_every4th,
|
|
|
|
dec_every2nd,
|
|
|
|
dec_once,
|
|
|
|
dec_twice,
|
|
|
|
dec_4times,
|
|
|
|
dec_8times,
|
|
|
|
dec_16times
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum flag {
|
2017-12-05 22:08:39 +00:00
|
|
|
modeSwitchCompleted,
|
|
|
|
readyToReceive,
|
|
|
|
readyToSend,
|
|
|
|
pllLocked,
|
|
|
|
rssiExceededThreshold,
|
|
|
|
timeout,
|
|
|
|
automode,
|
|
|
|
syncAddressMatch,
|
2017-12-19 16:02:22 +00:00
|
|
|
fifo_full,
|
|
|
|
// fifo_not_empty, collision with next enum; replaced by following enum...
|
|
|
|
fifo_empty,
|
|
|
|
fifo_level_below_threshold,
|
|
|
|
fifo_overrun,
|
2017-12-05 22:08:39 +00:00
|
|
|
packetSent,
|
2017-12-25 18:20:56 +00:00
|
|
|
payload_ready,
|
2017-12-05 22:08:39 +00:00
|
|
|
crcOk,
|
|
|
|
batteryLow
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-12-19 16:02:22 +00:00
|
|
|
enum fifo_fill_condition {
|
2017-12-05 22:08:39 +00:00
|
|
|
afterSyncInterrupt,
|
|
|
|
always
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum packetFormat {
|
2017-12-05 22:08:39 +00:00
|
|
|
packetLengthFix,
|
|
|
|
packetLengthVar
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2018-02-20 13:56:45 +00:00
|
|
|
enum tx_start_condition {
|
2017-12-19 16:02:22 +00:00
|
|
|
fifo_level,
|
|
|
|
fifo_not_empty
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum addressFiltering {
|
2017-12-05 22:08:39 +00:00
|
|
|
filteringOff,
|
|
|
|
nodeAddress,
|
|
|
|
nodeOrBroadcastAddress
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:59:11 +00:00
|
|
|
enum dagc {
|
2017-12-05 22:08:39 +00:00
|
|
|
normalMode,
|
|
|
|
improve,
|
|
|
|
improve4LowModulationIndex
|
2017-07-16 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|