mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 15:34:53 +01:00
Update config.h
This commit is contained in:
parent
a319ce833f
commit
e9b7b3edee
1 changed files with 27 additions and 29 deletions
|
@ -53,37 +53,35 @@ enum WorPeriod : uint8_t {
|
|||
// reverse order on the data sheet
|
||||
|
||||
struct RegisterConfig {
|
||||
uint8_t command : 8;
|
||||
uint8_t starting_address : 8;
|
||||
uint8_t length : 8;
|
||||
uint8_t addh : 8;
|
||||
uint8_t addl : 8;
|
||||
struct {
|
||||
uint8_t command : 8;
|
||||
uint8_t starting_address : 8;
|
||||
uint8_t length : 8;
|
||||
uint8_t addh : 8;
|
||||
uint8_t addl : 8;
|
||||
struct {
|
||||
uint8_t air_data_rate : 3;
|
||||
uint8_t parity : 2;
|
||||
uint8_t uart_baud : 3;
|
||||
uint8_t air_data_rate : 3;
|
||||
uint8_t parity : 2;
|
||||
uint8_t uart_baud : 3;
|
||||
|
||||
} reg_0;
|
||||
struct {
|
||||
uint8_t transmission_power : 2;
|
||||
uint8_t reserve : 3;
|
||||
uint8_t rssi_noise : 1;
|
||||
uint8_t sub_packet : 2;
|
||||
} reg_1;
|
||||
// reg2
|
||||
uint8_t channel : 8;
|
||||
struct {
|
||||
uint8_t wor_period : 3;
|
||||
uint8_t reserve1 : 1;
|
||||
uint8_t enable_lbt : 1;
|
||||
uint8_t reserve2 : 1;
|
||||
uint8_t transmission_mode : 1;
|
||||
uint8_t enable_rssi : 1;
|
||||
} reg_3;
|
||||
uint8_t crypt_h : 8;
|
||||
uint8_t crypt_l : 8;
|
||||
};
|
||||
} reg_0;
|
||||
struct {
|
||||
uint8_t transmission_power : 2;
|
||||
uint8_t reserve : 3;
|
||||
uint8_t rssi_noise : 1;
|
||||
uint8_t sub_packet : 2;
|
||||
} reg_1;
|
||||
// reg2
|
||||
uint8_t channel : 8;
|
||||
struct {
|
||||
uint8_t wor_period : 3;
|
||||
uint8_t reserve1 : 1;
|
||||
uint8_t enable_lbt : 1;
|
||||
uint8_t reserve2 : 1;
|
||||
uint8_t transmission_mode : 1;
|
||||
uint8_t enable_rssi : 1;
|
||||
} reg_3;
|
||||
uint8_t crypt_h : 8;
|
||||
uint8_t crypt_l : 8;
|
||||
} __attribute__((packed));
|
||||
|
||||
} // namespace ebyte_lora
|
||||
|
|
Loading…
Reference in a new issue