@@ -142,6 +142,13 @@ enum nrf_modem_dect_phy_err {
142142 * @brief Operation is not allowed in the current radio mode.
143143 */
144144 NRF_MODEM_DECT_PHY_ERR_RADIO_MODE_CONFLICT = 0x100B ,
145+ /**
146+ * @brief Handle is already in use.
147+ *
148+ * Each operation given to the modem must have a unique handle among all uncompleted
149+ * operations. Handles may be reused after an operation completes.
150+ */
151+ NRF_MODEM_DECT_PHY_ERR_HANDLE_IN_USE = 0x100C ,
145152 /**
146153 * @brief Unsupported carrier.
147154 */
@@ -1437,6 +1444,36 @@ struct nrf_modem_dect_phy_band_get_event {
14371444 struct nrf_modem_dect_phy_band * band ;
14381445};
14391446
1447+ /**
1448+ * @brief Test RF TX CW operation codes.
1449+ */
1450+ enum nrf_modem_dect_phy_test_rf_tx_cw_oper {
1451+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_OPER_ON ,
1452+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_OPER_OFF ,
1453+ };
1454+
1455+ /**
1456+ * @brief Test RF TX CW operation status codes.
1457+ */
1458+ enum nrf_modem_dect_phy_test_rf_tx_cw_err {
1459+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_ERR_NO_ERROR = 0 ,
1460+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_ERR_ERROR = -1 ,
1461+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_ERR_TX_ALREADY_ON = -100 ,
1462+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_ERR_TX_ALREADY_OFF = -101 ,
1463+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_ERR_BUFFER_RESERVE_FAILED = -102 ,
1464+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_ERR_INVALID_OPERATION = -103 ,
1465+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_ERR_DSP_CONFIG_FAILURE = -104 ,
1466+ NRF_MODEM_DECT_PHY_TEST_RF_TX_CW_ERR_MSG_SEND_FAILED = -105 ,
1467+ };
1468+
1469+ /**
1470+ * @brief Test RF TX CW control event.
1471+ */
1472+ struct nrf_modem_dect_phy_test_rf_tx_cw_control_event {
1473+ /** @brief Operation result. */
1474+ enum nrf_modem_dect_phy_test_rf_tx_cw_err err ;
1475+ };
1476+
14401477/**
14411478 * @brief STF cover sequence control event.
14421479 */
@@ -1601,6 +1638,10 @@ enum nrf_modem_dect_phy_event_id {
16011638 * @brief Event to indicate the completion of STF configuration.
16021639 */
16031640 NRF_MODEM_DECT_PHY_EVT_STF_CONFIG ,
1641+ /**
1642+ * @brief Event to indicate the completion of test RF TX CW configuration.
1643+ */
1644+ NRF_MODEM_DECT_PHY_EVT_TEST_RF_TX_CW_CONTROL_CONFIG ,
16041645};
16051646
16061647/**
@@ -1636,6 +1677,7 @@ struct nrf_modem_dect_phy_event {
16361677 struct nrf_modem_dect_phy_capability_get_event capability_get ;
16371678 struct nrf_modem_dect_phy_band_get_event band_get ;
16381679 struct nrf_modem_dect_phy_latency_info_event latency_get ;
1680+ struct nrf_modem_dect_phy_test_rf_tx_cw_control_event test_rf_tx_cw_control ;
16391681 struct nrf_modem_dect_phy_stf_control_event stf_cover_seq_control ;
16401682 struct nrf_modem_dect_phy_link_config_event link_config ;
16411683 };
@@ -1989,6 +2031,35 @@ int nrf_modem_dect_phy_latency_get(void);
19892031 */
19902032int nrf_modem_dect_phy_time_get (void );
19912033
2034+ /**
2035+ * @brief Control continuous wave transmission.
2036+ *
2037+ * The default, applied at each initialization, is OFF.
2038+ *
2039+ * Continuous wave transmission can only be turned on when the DECT PHY interface is not
2040+ * initialized. DECT PHY interface initialization is not allowed when continuous wave transmission
2041+ * is on.
2042+ *
2043+ * @note
2044+ * This API is intended for certification purposes only.
2045+ * It should not be used for normal operation.
2046+ *
2047+ * This operation is performed asynchronously.
2048+ * Completion of this operation is indicated by the
2049+ * @ref NRF_MODEM_DECT_PHY_EVT_TEST_RF_TX_CW_CONTROL_CONFIG event.
2050+ *
2051+ * @param operation Control operation code.
2052+ * @param carrier Carrier on which the wave is transmitted.
2053+ * @param power Power of the transmission in dBm.
2054+ *
2055+ * @retval 0 Request was sent to modem.
2056+ * @retval -NRF_EPERM The Modem library is not initialized.
2057+ * @retval -NRF_EFAULT No event handler is set.
2058+ * @retval -NRF_ENOMEM Not enough shared memory for this request.
2059+ */
2060+ int nrf_modem_dect_phy_test_rf_tx_cw_control (enum nrf_modem_dect_phy_test_rf_tx_cw_oper operation ,
2061+ uint16_t carrier , int8_t power );
2062+
19922063/**
19932064 * @brief STF cover sequence control.
19942065 *
0 commit comments