MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / setHighPowerRegs

Method setHighPowerRegs

RFM69.cpp:636–640  ·  view source on GitHub ↗

internal function - for HW/HCW only: enables HiPower for 18-20dBm output should only be used with PA1+PA2

Source from the content-addressed store, hash-verified

634// enables HiPower for 18-20dBm output
635// should only be used with PA1+PA2
636void RFM69::setHighPowerRegs(bool enable) {
637 if (!_isRFM69HW || _powerLevel<20) enable=false;
638 writeReg(REG_TESTPA1, enable ? 0x5D : 0x55);
639 writeReg(REG_TESTPA2, enable ? 0x7C : 0x70);
640}
641
642// set the slave select (CS) pin
643void RFM69::setCS(uint8_t newSPISlaveSelect) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected