| 460 | } |
| 461 | |
| 462 | void LoRaClass::setFrequency(long frequency) |
| 463 | { |
| 464 | _frequency = frequency; |
| 465 | |
| 466 | uint64_t frf = ((uint64_t)frequency << 19) / 32000000; |
| 467 | |
| 468 | writeRegister(REG_FRF_MSB, (uint8_t)(frf >> 16)); |
| 469 | writeRegister(REG_FRF_MID, (uint8_t)(frf >> 8)); |
| 470 | writeRegister(REG_FRF_LSB, (uint8_t)(frf >> 0)); |
| 471 | } |
| 472 | |
| 473 | int LoRaClass::getSpreadingFactor() |
| 474 | { |
nothing calls this directly
no outgoing calls
no test coverage detected