|
572 | 572 |
|
573 | 573 | /**
|
574 | 574 | * @def MY_RADIO_RFM69
|
575 |
| - * @brief Define this to use RFM69 based radios for sensor network communication. |
| 575 | + * @brief Define this to use %RFM69 based radios for sensor network communication. |
576 | 576 | */
|
577 | 577 | //#define MY_RADIO_RFM69
|
578 | 578 |
|
|
641 | 641 |
|
642 | 642 | /**
|
643 | 643 | * @def MY_RFM69_ATC_TARGET_RSSI_DBM
|
644 |
| - * @brief Target RSSI level (in dBm) for RFM69 ATC mode. |
| 644 | + * @brief Target RSSI level (in dBm) for %RFM69 ATC mode. |
645 | 645 | */
|
646 | 646 | #ifndef MY_RFM69_ATC_TARGET_RSSI_DBM
|
647 | 647 | #define MY_RFM69_ATC_TARGET_RSSI_DBM (-80)
|
648 | 648 | #endif
|
649 | 649 |
|
650 | 650 | /**
|
651 | 651 | * @def MY_RFM69_ATC_MODE_DISABLED
|
652 |
| - * @brief Define to disable ATC mode of RFM69 driver. |
| 652 | + * @brief Define to disable ATC mode of %RFM69 driver. |
653 | 653 | */
|
654 | 654 | //#define MY_RFM69_ATC_MODE_DISABLED
|
655 | 655 |
|
|
668 | 668 |
|
669 | 669 | /**
|
670 | 670 | * @def MY_RFM69_NETWORKID
|
671 |
| - * @brief RFM69 Network ID. Use the same for all nodes that will talk to each other. |
| 671 | + * @brief %RFM69 Network ID. Use the same for all nodes that will talk to each other. |
672 | 672 | */
|
673 | 673 | #ifndef MY_RFM69_NETWORKID
|
674 | 674 | #define MY_RFM69_NETWORKID (100)
|
|
682 | 682 |
|
683 | 683 | #ifdef MY_RF69_RESET
|
684 | 684 | // legacy, older board files
|
| 685 | +// not enabled now: #warning MY_RF69_RESET is depreciated, please use MY_RFM69_RST_PIN instead. |
685 | 686 | #define MY_RFM69_RST_PIN MY_RF69_RESET
|
686 | 687 | #endif
|
687 | 688 |
|
|
693 | 694 |
|
694 | 695 | /**
|
695 | 696 | * @def MY_RFM69_IRQ_PIN
|
696 |
| - * @brief Define this to use the %RFM69 IRQ pin (optional). |
| 697 | + * @brief Define this to override the default %RFM69 IRQ pin assignment. |
697 | 698 | */
|
698 | 699 | #ifndef MY_RFM69_IRQ_PIN
|
699 | 700 | #ifdef MY_RF69_IRQ_PIN
|
700 | 701 | // legacy, older board files
|
| 702 | +// not enabled now: #warning MY_RF69_IRQ_PIN is depreciated, please use MY_RFM69_IRQ_PIN instead. |
701 | 703 | #define MY_RFM69_IRQ_PIN MY_RF69_IRQ_PIN
|
702 | 704 | #else
|
703 | 705 | #define MY_RFM69_IRQ_PIN DEFAULT_RFM69_IRQ_PIN
|
|
711 | 713 | #ifndef MY_RFM69_IRQ_NUM
|
712 | 714 | #ifdef MY_RF69_IRQ_NUM
|
713 | 715 | // legacy, older board files
|
| 716 | +// not enabled now: #warning MY_RF69_IRQ_NUM is depreciated, please use MY_RFM69_IRQ_NUM instead. |
714 | 717 | #define MY_RFM69_IRQ_NUM MY_RF69_IRQ_NUM
|
715 | 718 | #else
|
716 |
| -#define MY_RFM69_IRQ_NUM DEFAULT_RFM69_IRQ_NUM |
| 719 | +#define MY_RFM69_IRQ_NUM digitalPinToInterrupt(MY_RFM69_IRQ_PIN) |
717 | 720 | #endif
|
718 | 721 | #endif
|
719 | 722 |
|
720 | 723 | /**
|
721 | 724 | * @def MY_RFM69_CS_PIN
|
722 |
| - * @brief RFM69 SPI chip select pin. |
| 725 | + * @brief %RFM69 SPI chip select pin. |
723 | 726 | */
|
724 | 727 | #ifndef MY_RFM69_CS_PIN
|
725 | 728 | #ifdef MY_RF69_SPI_CS
|
726 | 729 | // legacy, older board files
|
| 730 | +// not enabled now: #warning MY_RF69_SPI_CS is depreciated, please use MY_RFM69_CS_PIN instead. |
727 | 731 | #define MY_RFM69_CS_PIN MY_RF69_SPI_CS
|
728 | 732 | #else
|
729 | 733 | #define MY_RFM69_CS_PIN DEFAULT_RFM69_CS_PIN
|
|
764 | 768 | #define MY_RFM69_DEFAULT_LISTEN_IDLE_US (1*1000000ul)
|
765 | 769 | #endif
|
766 | 770 |
|
767 |
| -#if !defined(MY_RFM69_BITRATE_MSB) && !defined(MY_RFM69_BITRATE_LSB) |
768 | 771 | /**
|
769 |
| - * @def MY_RFM69_BITRATE_MSB |
770 |
| - * @brief %RFM69 bit rate (most significant bits) |
| 772 | + * @def MY_RFM69_MODEM_CONFIGURATION |
| 773 | + * @brief %RFM69 modem configuration, default is %RFM69_FSK_BR55_5_FD50 |
771 | 774 | *
|
772 |
| - * Bitrate between the transmitter and the receiver must be better than 6.5. |
773 |
| - * Refer to RFM69registers_old.h (L.153) or RFM69registers_new.h (L.154) for settings or |
774 |
| - * http://www.semtech.com/apps/filedown/down.php?file=sx1231.pdf |
775 |
| - * @note RFM69_FOSC(Hz)/MSB_LSBVALUE = Bitrate in kbits |
| 775 | + * | Configuration | Modulation (xxx) | Bit rate | FD | RXBW | Additional settings |
| 776 | + * |-------------------------|------------------|----------|--------|----------|--------------------------- |
| 777 | + * | RFM69_xxx_BR2_FD5 | FSK/GFSK/OOK | 2000 | 5000 | 111_24_4 | Whitening |
| 778 | + * | RFM69_xxx_BR2_4_FD4_8 | FSK/GFSK/OOK | 2400 | 4800 | 111_24_4 | Whitening |
| 779 | + * | RFM69_xxx_BR4_8_FD9_6 | FSK/GFSK/OOK | 4800 | 9600 | 111_24_4 | Whitening |
| 780 | + * | RFM69_xxx_BR9_6_FD19_2 | FSK/GFSK/OOK | 9600 | 19200 | 111_24_4 | Whitening |
| 781 | + * | RFM69_xxx_BR19_2_FD38_4 | FSK/GFSK/OOK | 19200 | 38400 | 111_24_3 | Whitening |
| 782 | + * | RFM69_xxx_BR38_4_FD76_8 | FSK/GFSK/OOK | 38400 | 76800 | 111_24_2 | Whitening |
| 783 | + * | RFM69_xxx_BR55_5_FD50 | FSK/GFSK/OOK | 55555 | 50000 | 111_16_2 | Whitening |
| 784 | + * | RFM69_xxx_BR57_6_FD120 | FSK/GFSK/OOK | 57600 | 120000 | 111_16_1 | Whitening |
| 785 | + * | RFM69_xxx_BR125_FD125 | FSK/GFSK/OOK | 125000 | 125000 | 010_16_2 | Whitening |
| 786 | + * | RFM69_xxx_BR250_FD250 | FSK/GFSK/OOK | 250000 | 250000 | 111_16_0 | Whitening |
776 | 787 | *
|
777 |
| - */ |
778 |
| -#define MY_RFM69_BITRATE_MSB (RFM69_BITRATEMSB_55555) |
779 |
| -/** |
780 |
| - * @def MY_RFM69_BITRATE_LSB |
781 |
| - * @brief %RFM69 bit rate (least significant bits) |
| 788 | + * https://www.semtech.com/uploads/documents/sx1231.pdf |
782 | 789 | *
|
783 |
| - * Bitrate between the transmitter and the receiver must be better than 6.5. |
784 |
| - * Refer to RFM69registers_old.h (L.153) or RFM69registers_new.h (L.154) for settings or |
785 |
| - * http://www.semtech.com/apps/filedown/down.php?file=sx1231.pdf |
786 |
| - * @note RFM69_FOSC(Hz)/MSB_LSBVALUE = Bitrate in kbits |
787 | 790 | */
|
788 |
| -#define MY_RFM69_BITRATE_LSB (RFM69_BITRATELSB_55555) |
789 |
| -#endif |
| 791 | +//#define MY_RFM69_MODEM_CONFIGURATION (RFM69_FSK_BR55_5_FD50) |
| 792 | + |
| 793 | + |
790 | 794 | /** @}*/ // End of RFM69SettingGrpPub group
|
791 | 795 |
|
792 | 796 | /**
|
|
2073 | 2077 | #define MY_IS_RFM69HW
|
2074 | 2078 | #define MY_RFM69_NEW_DRIVER
|
2075 | 2079 | #define MY_RFM69_POWER_PIN
|
| 2080 | +#define MY_RFM69_MODEM_CONFIGURATION |
2076 | 2081 | #define MY_RFM69_ENABLE_ENCRYPTION
|
2077 | 2082 | #define MY_RFM69_ATC_MODE_DISABLED
|
2078 | 2083 | #define MY_RFM69_MAX_POWER_LEVEL_DBM
|
|
0 commit comments