mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +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,
|
||||
};
|
||||
|
||||
enum SX127xPaConfig : uint8_t {
|
||||
PA_PIN_RFO = 0x00,
|
||||
PA_PIN_BOOST = 0x80,
|
||||
PA_MAX_POWER = 0x70,
|
||||
};
|
||||
|
||||
struct SX127xStore {
|
||||
static void gpio_intr(SX127xStore *arg);
|
||||
volatile uint32_t dio0_micros{0};
|
||||
|
@ -213,8 +219,6 @@ struct SX127xStore {
|
|||
ISRInternalGPIOPin dio2_pin;
|
||||
};
|
||||
|
||||
enum SX127xPaConfig : uint8_t { PA_PIN_RFO = 0x00, PA_PIN_BOOST = 0x80, PA_MAX_POWER = 0x70 };
|
||||
|
||||
class SX127x : public Component,
|
||||
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
|
||||
spi::DATA_RATE_8MHZ> {
|
||||
|
|
Loading…
Reference in a new issue