Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SX1276GenericLib by
Diff: sx1276/sx1276-mbed-hal.h
- Revision:
- 112:3357f97db844
- Parent:
- 109:528f37db941f
--- a/sx1276/sx1276-mbed-hal.h Fri Jun 01 21:37:06 2018 +0000 +++ b/sx1276/sx1276-mbed-hal.h Mon Oct 12 21:54:55 2020 +0000 @@ -42,46 +42,46 @@ */ class SX1276Generic : public SX1276 { -protected: +protected: // can be accessible by derived class or inheritance /*! * Antenna switch GPIO pins objects */ - DigitalOut *_antSwitch; - DigitalOut *_antSwitchTX; - DigitalOut *_antSwitchTXBoost; + DigitalOut *_antSwitch; // declaration of _antSwitch pin + DigitalOut *_antSwitchTX; // declaration of _antSwitchTX pin + DigitalOut *_antSwitchTXBoost; // declaration of _antSwitchTXBoost pin /*! * SX1276 Reset pin */ - DigitalInOut *_reset; + DigitalInOut *_reset; // declaration of _reset pin /*! * TCXO being used with the Murata Module */ - DigitalOut *_tcxo; + DigitalOut *_tcxo; // declaration of _tcxo pin, only for Murata module /*! * SPI Interface */ - XSPI *_spi; // mosi, miso, sclk - DigitalOut *_nss; + XSPI *_spi; // mosi, miso, sclk // declaration of SPI pins + DigitalOut *_nss; // declaration of _nss pin /*! * SX1276 DIO pins */ - InterruptIn *_dio0; - InterruptIn *_dio1; - InterruptIn *_dio2; - InterruptIn *_dio3; - InterruptIn *_dio4; - DigitalIn *_dio5; + InterruptIn *_dio0; // declaration of interrupt in _dio0 + InterruptIn *_dio1; // declaration of interrupt in _dio1 + InterruptIn *_dio2; // declaration of interrupt in _dio2 + InterruptIn *_dio3; // declaration of interrupt in _dio3 + InterruptIn *_dio4; // declaration of interrupt in _dio4 + DigitalIn *_dio5; // declaration of digital input _dio5 /*! * Tx and Rx timers */ - MyTimeout txTimeoutTimer; - MyTimeout rxTimeoutTimer; - MyTimeout rxTimeoutSyncWord; + MyTimeout txTimeoutTimer; // declaration of txTimeoutTimer + MyTimeout rxTimeoutTimer; // declaration of rxTimeoutTimer + MyTimeout rxTimeoutSyncWord; // declaration of rxTimeoutSyncWord private: