Lines Matching refs:power
36 static uint8_t SX1276GetPaSelect( int8_t power );
185 void SX1276SetRfTxPower( int8_t power ) in SX1276SetRfTxPower() argument
193 paConfig = ( paConfig & RF_PACONFIG_PASELECT_MASK ) | SX1276GetPaSelect( power ); in SX1276SetRfTxPower()
197 if( power > 17 ) in SX1276SetRfTxPower()
207 if( power < 5 ) in SX1276SetRfTxPower()
209 power = 5; in SX1276SetRfTxPower()
211 if( power > 20 ) in SX1276SetRfTxPower()
213 power = 20; in SX1276SetRfTxPower()
215 …ig = ( paConfig & RF_PACONFIG_OUTPUTPOWER_MASK ) | ( uint8_t )( ( uint16_t )( power - 5 ) & 0x0F ); in SX1276SetRfTxPower()
219 if( power < 2 ) in SX1276SetRfTxPower()
221 power = 2; in SX1276SetRfTxPower()
223 if( power > 17 ) in SX1276SetRfTxPower()
225 power = 17; in SX1276SetRfTxPower()
227 …ig = ( paConfig & RF_PACONFIG_OUTPUTPOWER_MASK ) | ( uint8_t )( ( uint16_t )( power - 2 ) & 0x0F ); in SX1276SetRfTxPower()
232 if( power > 0 ) in SX1276SetRfTxPower()
234 if( power > 15 ) in SX1276SetRfTxPower()
236 power = 15; in SX1276SetRfTxPower()
238 … ( paConfig & RF_PACONFIG_MAX_POWER_MASK & RF_PACONFIG_OUTPUTPOWER_MASK ) | ( 7 << 4 ) | ( power ); in SX1276SetRfTxPower()
242 if( power < -4 ) in SX1276SetRfTxPower()
244 power = -4; in SX1276SetRfTxPower()
246 …aConfig & RF_PACONFIG_MAX_POWER_MASK & RF_PACONFIG_OUTPUTPOWER_MASK ) | ( 0 << 4 ) | ( power + 4 ); in SX1276SetRfTxPower()
253 static uint8_t SX1276GetPaSelect( int8_t power ) in SX1276GetPaSelect() argument
255 if( power > 14 ) in SX1276GetPaSelect()