HI,
According to LAUNCHXL-CC1352P schematics, This is the antenna switching truth table
* Truth table:
*
* Path DIO28 DIO29 DIO30
* ========== ===== ===== =====
* Off 0 0 0
* 2.4 GHZ 1 0 0
* HIGH PA 0 1 0
* SUB1 GHZ 0 0 1
*/
Testing dmm_wsnnode_ble_sp_app_CC1352P1_LAUNCHXL_tirtos_ccs project on CC1352P1_LAUNCHXL , Simplelink SDK 6.10.0.29.
Here is antennat switching on fDriverCallbackAntennaSwitching for sub1GHz high PA case :
/* PA enable --> HIGH PA
* LNA enable --> Sub-1 GHz
*/
GPIO_setMux(CONFIG_RF_24GHZ, IOC_PORT_GPIO);
/* Note: RFC_GPO3 is a work-around because the RFC_GPO1 (PA enable signal) is sometimes not
de-asserted on CC1352 Rev A. */
GPIO_setMux(CONFIG_RF_HIGH_PA, IOC_PORT_RFC_GPO3);
GPIO_setMux(CONFIG_RF_SUB1GHZ, IOC_PORT_RFC_GPO0);
CONFIG_RF_SUB1GHZ = DIO30.
It is not clear why IOC_PORT_RFC_GPO0 is mapped to CONFIG_RF_SUB1GHZ , as RF Core Data Out 0 goes to HIGH when LNEa enables, meaning the antenna GPIO's output is :
DIO28 DIO29 DIO30
========== ===== ==
0 1 1
while according to the truth table, for sug 1Ghz high PA it should be :
DIO28 DIO29 DIO30
========== ===== ==
0 1 0