Accurate preamble and airtime calculations on SX1280. Fix airtime calculation on SX1262 when LDRO is enabled.
This commit is contained in:
parent
b667e825f8
commit
c39164e272
8 changed files with 99 additions and 57 deletions
4
sx128x.h
4
sx128x.h
|
|
@ -67,7 +67,7 @@ public:
|
|||
void setSignalBandwidth(uint32_t sbw);
|
||||
void setCodingRate4(int denominator);
|
||||
uint8_t getCodingRate4();
|
||||
void setPreambleLength(long length);
|
||||
void setPreambleLength(long preamble_symbols);
|
||||
void setSyncWord(int sw);
|
||||
uint8_t modemStatus();
|
||||
void clearIRQStatus();
|
||||
|
|
@ -84,7 +84,7 @@ public:
|
|||
void executeOpcodeRead(uint8_t opcode, uint8_t *buffer, uint8_t size);
|
||||
void writeBuffer(const uint8_t* buffer, size_t size);
|
||||
void readBuffer(uint8_t* buffer, size_t size);
|
||||
void setPacketParams(uint32_t preamble, uint8_t headermode, uint8_t length, uint8_t crc);
|
||||
void setPacketParams(uint32_t target_preamble_symbols, uint8_t headermode, uint8_t payload_length, uint8_t crc);
|
||||
void setModulationParams(uint8_t sf, uint8_t bw, uint8_t cr);
|
||||
|
||||
void crc() { enableCrc(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue