nrf24l01/nrf24.c
// Configure RF output power in TX mode
// input:
//   tx_pwr - RF output power, one of nRF24_TXPWR_xx values
Configure RF output power in TX mode
input:
tx_pwr - RF output power, one of nRF24_TXPWR_xx values
Configure RF output power in TX mode input : tx_pwr - RF output power one of nRF24_TXPWR_xx values
void nRF24_SetTXPower(uint8_t tx_pwr) {
	uint8_t reg;
	reg  = nRF24_ReadReg(nRF24_REG_RF_SETUP);
	reg &= ~nRF24_MASK_RF_PWR;
	reg |= tx_pwr;
	nRF24_WriteReg(nRF24_REG_RF_SETUP, reg);
}
void nRF24_SetTXPower ( uint8_t tx_pwr ) { uint8_t reg ; reg = nRF24_ReadReg ( nRF24_REG_RF_SETUP ) ; reg &= ~ nRF24_MASK_RF_PWR ; reg |= tx_pwr ; nRF24_WriteReg ( nRF24_REG_RF_SETUP , reg ) ; }
Configure RF output power in TX mode
input:
tx_pwr - RF output power, one of nRF24_TXPWR_xx values
Configure RF output power in TX mode input : tx_pwr - RF output power one of nRF24_TXPWR_xx values
// Configure RF_PWR[2:1] bits of the RF_SETUP register