mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
b52a5b7936
Fixes checkpatch warning: CHECK: Avoid CamelCase: <thresholdDecrement> Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
143 lines
2.1 KiB
C
143 lines
2.1 KiB
C
/*
|
|
* 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
|
|
|
|
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 paRamp {
|
|
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 lnaGain {
|
|
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 flag {
|
|
modeSwitchCompleted,
|
|
readyToReceive,
|
|
readyToSend,
|
|
pllLocked,
|
|
rssiExceededThreshold,
|
|
timeout,
|
|
automode,
|
|
syncAddressMatch,
|
|
fifo_full,
|
|
// fifo_not_empty, collision with next enum; replaced by following enum...
|
|
fifo_empty,
|
|
fifo_level_below_threshold,
|
|
fifo_overrun,
|
|
packetSent,
|
|
payload_ready,
|
|
crcOk,
|
|
batteryLow
|
|
};
|
|
|
|
enum fifo_fill_condition {
|
|
afterSyncInterrupt,
|
|
always
|
|
};
|
|
|
|
enum packetFormat {
|
|
packetLengthFix,
|
|
packetLengthVar
|
|
};
|
|
|
|
enum tx_start_condition {
|
|
fifo_level,
|
|
fifo_not_empty
|
|
};
|
|
|
|
enum addressFiltering {
|
|
filteringOff,
|
|
nodeAddress,
|
|
nodeOrBroadcastAddress
|
|
};
|
|
|
|
enum dagc {
|
|
normalMode,
|
|
improve,
|
|
improve4LowModulationIndex
|
|
};
|
|
|
|
#endif
|