acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

LLCC68.h (1999B)

      1 #if !defined(_RADIOLIB_LLCC68_H)
      2 #define _RADIOLIB_LLCC68_H
      3 
      4 #include "../../TypeDef.h"
      5 
      6 #if !defined(RADIOLIB_EXCLUDE_SX126X)
      7 
      8 #include "../../Module.h"
      9 #include "../SX126x/SX1262.h"
     10 
     11 /*!
     12   \class LLCC68
     13 
     14   \brief Derived class for %LLCC68 modules.
     15 */
     16 class LLCC68: public SX1262 {
     17   public:
     18     /*!
     19       \brief Default constructor.
     20 
     21       \param mod Instance of Module that will be used to communicate with the radio.
     22     */
     23     LLCC68(Module* mod);
     24 
     25     /*!
     26       \brief Initialization method for LoRa modem.
     27 
     28       \param freq Carrier frequency in MHz. Defaults to 434.0 MHz.
     29 
     30       \param bw LoRa bandwidth in kHz. Defaults to 125.0 kHz.
     31 
     32       \param sf LoRa spreading factor. Defaults to 9.
     33 
     34       \param cr LoRa coding rate denominator. Defaults to 7 (coding rate 4/7).
     35 
     36       \param syncWord 2-byte LoRa sync word. Defaults to RADIOLIB_SX126X_SYNC_WORD_PRIVATE (0x12).
     37 
     38       \param power Output power in dBm. Defaults to 10 dBm.
     39 
     40       \param preambleLength LoRa preamble length in symbols. Defaults to 8 symbols.
     41 
     42       \param tcxoVoltage TCXO reference voltage to be set on DIO3. Defaults to 1.6 V, set to 0 to skip.
     43 
     44       \returns \ref status_codes
     45     */
     46     int16_t begin(float freq = 434.0, float bw = 125.0, uint8_t sf = 9, uint8_t cr = 7, uint8_t syncWord = RADIOLIB_SX126X_SYNC_WORD_PRIVATE, int8_t power = 10, uint16_t preambleLength = 8, float tcxoVoltage = 1.6, bool useRegulatorLDO = false);
     47 
     48     // configuration methods
     49 
     50     /*!
     51       \brief Sets LoRa bandwidth. Allowed values are 125.0, 250.0 and 500.0 kHz.
     52 
     53       \param bw LoRa bandwidth to be set in kHz.
     54 
     55       \returns \ref status_codes
     56     */
     57     int16_t setBandwidth(float bw);
     58 
     59     /*!
     60       \brief Sets LoRa spreading factor. Allowed values range from 5 to 11, depending on currently set spreading factor.
     61 
     62       \param sf LoRa spreading factor to be set.
     63 
     64       \returns \ref status_codes
     65     */
     66     int16_t setSpreadingFactor(uint8_t sf);
     67 
     68 #if !defined(RADIOLIB_GODMODE)
     69   private:
     70 #endif
     71 
     72 };
     73 
     74 #endif
     75 
     76 #endif