LR1121
User Manual Rev 1.1
UM.LR1121.W.APP Mar 2023
38 of 130
Semtech
Proprietary & Confidential
www.semtech.com
4.2 RF Switch Control
4.2.1 SetDioAsRfSwitch
DIO5, DIO6, DIO7, DIO8 and DIO10 can control external RF switches or LNAs on the Sub-GHz and RFIO_HF RF paths using
the SetDioAsRfSwitch(...) command.
Only the lowest 5 bits of all the configurations as well as the enable are taken into account.
Each Cfg bit corresponds to the state of the RFSW output for that particular mode:
• RfswEnable value indicates which switch is used (1) and which is not (0):
Bit 0 - RFSW0 Enabled (DIO5 pin)
Bit 1 - RFSW1 Enabled (DIO6 pin)
Bit 2 - RFSW2 Enabled (DIO7 pin)
Bit 3 - RFSW3 Enabled (DIO8 pin)
Bit 4 - RFSW4 Enabled (DIO10 pin)
• RfSwStbyCfg: Each bit indicates the state of the relevant RFSW DIO when in standby mode (bits 5:7 RFU).
• RfSwRxCfg: Each bit indicates the state of the relevant RFSW DIO when in RX mode.
• RfSwTxCfg: Each bit indicates the state of the relevant RFSW DIO when in low power TX mode.
• RfSwTxHPCfg: Each bit indicates the state of the relevant RFSW DIO when in high power TX mode.
• RfSwTxHfCfg: Each bit indicates the state of the relevant RFSW DIO when in radio high frequency TX mode.
• Bits 8:9: RFU
By default, no DIO is used as RF switch: all RFSW outputs are in High-Z state.
This command only works with the chip in Standby RC mode, otherwise it returns a CMD_FAIL on the next GetStatus
command.
Table 4-5: SetDioAsRfSwitch Command
Byte 0 1 2 3 4 5 6 7 8 9
Data from Host 0x01 0x12
RfSw
Enable
RfSw
StbyCfg
RfSw
RxCfg
RfSw
TxCfg
RfSw
TxHPCfg
RfSw
TxHfCfg
-RFU -RFU
Data to Host Stat1 Stat2
IrqStatus
(31:24)
IrqStatus
(23:16)
IrqStatus
(15:8)
IrqStatus
(7:0)
0x00 0x00 0x00 0x00