|
443 | 443 | #define RADIOLIB_LR11X0_GFSK_WHITENING_ENABLED (0x01UL << 0) // 7 0 enabled |
444 | 444 |
|
445 | 445 | // RADIOLIB_LR11X0_CMD_SET_TX_PARAMS |
446 | | -#define RADIOLIB_LR11X0_PA_RAMP_48U (0x02UL << 0) // 7 0 PA ramp time: 48 us |
| 446 | +#define RADIOLIB_LR11X0_PA_RAMP_16U (0x00UL << 0) // 7 0 PA ramp time: 16 us |
| 447 | +#define RADIOLIB_LR11X0_PA_RAMP_32U (0x01UL << 0) // 7 0 32 us |
| 448 | +#define RADIOLIB_LR11X0_PA_RAMP_48U (0x02UL << 0) // 7 0 48 us |
| 449 | +#define RADIOLIB_LR11X0_PA_RAMP_64U (0x03UL << 0) // 7 0 64 us |
| 450 | +#define RADIOLIB_LR11X0_PA_RAMP_80U (0x04UL << 0) // 7 0 80 us |
| 451 | +#define RADIOLIB_LR11X0_PA_RAMP_96U (0x05UL << 0) // 7 0 96 us |
| 452 | +#define RADIOLIB_LR11X0_PA_RAMP_112U (0x06UL << 0) // 7 0 112 us |
| 453 | +#define RADIOLIB_LR11X0_PA_RAMP_128U (0x07UL << 0) // 7 0 128 us |
| 454 | +#define RADIOLIB_LR11X0_PA_RAMP_144U (0x08UL << 0) // 7 0 144 us |
| 455 | +#define RADIOLIB_LR11X0_PA_RAMP_160U (0x09UL << 0) // 7 0 160 us |
| 456 | +#define RADIOLIB_LR11X0_PA_RAMP_176U (0x0AUL << 0) // 7 0 176 us |
| 457 | +#define RADIOLIB_LR11X0_PA_RAMP_192U (0x0BUL << 0) // 7 0 192 us |
| 458 | +#define RADIOLIB_LR11X0_PA_RAMP_208U (0x0CUL << 0) // 7 0 208 us |
| 459 | +#define RADIOLIB_LR11X0_PA_RAMP_240U (0x0DUL << 0) // 7 0 240 us |
| 460 | +#define RADIOLIB_LR11X0_PA_RAMP_272U (0x0EUL << 0) // 7 0 272 us |
| 461 | +#define RADIOLIB_LR11X0_PA_RAMP_304U (0x0FUL << 0) // 7 0 304 us |
447 | 462 |
|
448 | 463 | // RADIOLIB_LR11X0_CMD_SET_RX_TX_FALLBACK_MODE |
449 | 464 | #define RADIOLIB_LR11X0_FALLBACK_MODE_STBY_RC (0x01UL << 0) // 1 0 fallback mode after Rx/Tx: standby with RC |
@@ -1610,6 +1625,14 @@ class LR11x0: public PhysicalLayer { |
1610 | 1625 | #endif |
1611 | 1626 | Module* getMod() override; |
1612 | 1627 |
|
| 1628 | + // LR11x0 command helpers |
| 1629 | + /*! |
| 1630 | + \brief Round up a PA power ramp time to register value |
| 1631 | + \param rampTimeUs Ramp time in microseconds |
| 1632 | + \returns Register value of rounded ramp time |
| 1633 | + */ |
| 1634 | + uint8_t roundRampTime(uint32_t rampTimeUs); |
| 1635 | + |
1613 | 1636 | // LR11x0 SPI command implementations |
1614 | 1637 | int16_t writeRegMem32(uint32_t addr, const uint32_t* data, size_t len); |
1615 | 1638 | int16_t readRegMem32(uint32_t addr, uint32_t* data, size_t len); |
|
0 commit comments