MCPcopy Create free account
hub / github.com/PricelessToolkit/MailBoxGuard / setLdoFlag

Method setLdoFlag

Code/Arduino_libraries/LoRa/LoRa.cpp:548–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548void 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
561void LoRaClass::setCodingRate4(int denominator)
562{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected