| 546 | } |
| 547 | |
| 548 | void LoRaClass::setLdoFlag() |
| 549 | { |
| 550 | // Section 4.1.1.5 |
| 551 | long symbolDuration = 1000 / ( getSignalBandwidth() / (1L << getSpreadingFactor()) ) ; |
| 552 | |
| 553 | // Section 4.1.1.6 |
| 554 | boolean ldoOn = symbolDuration > 16; |
| 555 | |
| 556 | uint8_t config3 = readRegister(REG_MODEM_CONFIG_3); |
| 557 | bitWrite(config3, 3, ldoOn); |
| 558 | writeRegister(REG_MODEM_CONFIG_3, config3); |
| 559 | } |
| 560 | |
| 561 | void LoRaClass::setCodingRate4(int denominator) |
| 562 | { |
nothing calls this directly
no outgoing calls
no test coverage detected