Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * enumerations for HopeRf rf69 radio module
0004  *
0005  * Copyright (C) 2016 Wolf-Entwicklungen
0006  *  Marcus Wolf <linux@wolf-entwicklungen.de>
0007  */
0008 
0009 #ifndef RF69_ENUM_H
0010 #define RF69_ENUM_H
0011 
0012 enum mode {
0013     mode_sleep,
0014     standby,
0015     synthesizer,
0016     transmit,
0017     receive
0018 };
0019 
0020 enum modulation {
0021     OOK,
0022     FSK,
0023     UNDEF
0024 };
0025 
0026 enum mod_shaping {
0027     SHAPING_OFF,
0028     SHAPING_1_0,
0029     SHAPING_0_5,
0030     SHAPING_0_3,
0031     SHAPING_BR,
0032     SHAPING_2BR
0033 };
0034 
0035 enum pa_ramp {
0036     ramp3400,
0037     ramp2000,
0038     ramp1000,
0039     ramp500,
0040     ramp250,
0041     ramp125,
0042     ramp100,
0043     ramp62,
0044     ramp50,
0045     ramp40,
0046     ramp31,
0047     ramp25,
0048     ramp20,
0049     ramp15,
0050     ramp12,
0051     ramp10
0052 };
0053 
0054 enum antenna_impedance {
0055     fifty_ohm,
0056     two_hundred_ohm
0057 };
0058 
0059 enum lna_gain {
0060     automatic,
0061     max,
0062     max_minus_6,
0063     max_minus_12,
0064     max_minus_24,
0065     max_minus_36,
0066     max_minus_48,
0067     undefined
0068 };
0069 
0070 enum mantisse {
0071     mantisse16,
0072     mantisse20,
0073     mantisse24
0074 };
0075 
0076 enum threshold_decrement {
0077     dec_every8th,
0078     dec_every4th,
0079     dec_every2nd,
0080     dec_once,
0081     dec_twice,
0082     dec_4times,
0083     dec_8times,
0084     dec_16times
0085 };
0086 
0087 enum fifo_fill_condition {
0088     after_sync_interrupt,
0089     always
0090 };
0091 
0092 enum packet_format {
0093     /*
0094      * Used when the size of payload is fixed in advance. This mode of
0095      * operation may be of interest to minimize RF overhead by 1 byte as
0096      * no length byte field is required
0097      */
0098     packet_length_fix,
0099     /*
0100      * Used when the size of payload isn't known in advance. It requires the
0101      * transmitter to send the length byte in each packet so the receiver
0102      * would know how to operate properly
0103      */
0104     packet_length_var
0105 };
0106 
0107 enum tx_start_condition {
0108     /* the number of bytes in the FIFO exceeds FIFO_THRESHOLD */
0109     fifo_level,
0110     /* at least one byte in the FIFO */
0111     fifo_not_empty
0112 };
0113 
0114 enum address_filtering {
0115     filtering_off,
0116     node_address,
0117     node_or_broadcast_address
0118 };
0119 
0120 enum dagc {
0121     normal_mode,
0122     improve,
0123     improve_for_low_modulation_index
0124 };
0125 
0126 #endif