Is there any register(s) to set the TX power for cc2540 like TXPOWER for cc253x or the HCI is the only option to set TX power here?
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is there any register(s) to set the TX power for cc2540 like TXPOWER for cc253x or the HCI is the only option to set TX power here?
Thanks
Hi Stan,
The development model on CC2540 is to write an application that works together with the BLE stack. Since the BLE stack "owns" the radio registers, it is not possible to have direct access, but you have to go through the stack by using HCI calls.
Best regards,
Karl
Hi Karl,
Is there any other simpler example than keyfobdemo and hosttest where can see HCI implementation of HCI_EXT_SET_TX_POWER (or similar command)?
Thanks and best regards
St
I'm not sure I understand your question, but changing the power level from your application is as simple as adding this line of code:
HCI_EXT_SetTxPowerCmd( HCI_EXT_TX_POWER_MINUS_6_DBM );
You can use the following values for the power level:
HCI_EXT_TX_POWER_MINUS_23_DBM
HCI_EXT_TX_POWER_MINUS_6_DBM
HCI_EXT_TX_POWER_0_DBM
HCI_EXT_TX_POWER_4_DBM
Thanks,Willis, seems that's what exactly I need. I browse shortly the HCI manual early this morning,but obviously was still sleeping :( and searched for "TX_POWER", but missed to search for "TXPOWER" :( :(