mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
Group enums together
This commit is contained in:
parent
79dea478f2
commit
49f71e80be
1 changed files with 6 additions and 2 deletions
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue