Group enums together

This commit is contained in:
Jonathan Swoboda 2024-11-10 18:48:50 -05:00
parent 79dea478f2
commit 49f71e80be

View file

@ -204,6 +204,12 @@ enum SX127xPaRamp : uint8_t {
PA_RAMP_3400 = 0x00, PA_RAMP_3400 = 0x00,
}; };
enum SX127xPaConfig : uint8_t {
PA_PIN_RFO = 0x00,
PA_PIN_BOOST = 0x80,
PA_MAX_POWER = 0x70,
};
struct SX127xStore { struct SX127xStore {
static void gpio_intr(SX127xStore *arg); static void gpio_intr(SX127xStore *arg);
volatile uint32_t dio0_micros{0}; volatile uint32_t dio0_micros{0};
@ -213,8 +219,6 @@ struct SX127xStore {
ISRInternalGPIOPin dio2_pin; ISRInternalGPIOPin dio2_pin;
}; };
enum SX127xPaConfig : uint8_t { PA_PIN_RFO = 0x00, PA_PIN_BOOST = 0x80, PA_MAX_POWER = 0x70 };
class SX127x : public Component, class SX127x : public Component,
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING, public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
spi::DATA_RATE_8MHZ> { spi::DATA_RATE_8MHZ> {