@@ -290,7 +290,69 @@ ESP_MODEM_DECLARE_DCE_COMMAND(set_gnss_power_mode, command_result, 1, INT_IN(p1,
290
290
*/ \
291
291
ESP_MODEM_DECLARE_DCE_COMMAND(get_gnss_power_mode, command_result, 1 , INT_OUT(p1, mode)) \
292
292
\
293
-
293
+ /* *
294
+ * @brief Configure PSM
295
+ * @param[in] mode psm mode (0 - off, 1 - on, 2 - off & discard stored params)
296
+ * @return OK, FAIL or TIMEOUT
297
+ */ \
298
+ ESP_MODEM_DECLARE_DCE_COMMAND(config_psm, command_result, 3 , INT_IN(p1, mode), STRING_IN(p2, tau), STRING_IN(p3, active_time)) \
299
+ \
300
+ /* *
301
+ * @brief Configure CEREG urc
302
+ * @param[in] value
303
+ * value = 0 - Disable network URC
304
+ * value = 1 - Enable network URC
305
+ * value = 2 - Enable network URC with location information
306
+ * value = 3 - Enable network URC with location information and EMM cause
307
+ * value = 4 - Enable network URC with location information and PSM value
308
+ * value = 5 - Enable network URC with location information and PSM value, EMM cause
309
+ */ \
310
+ ESP_MODEM_DECLARE_DCE_COMMAND(config_network_registration_urc, command_result, 1 , INT_IN(p1, value)) \
311
+ \
312
+ /* *
313
+ * @brief Gets the current network registration state
314
+ * @param[out] state The current network registration state
315
+ * state = 0 - Not registered, MT is not currently searching an operator to register to
316
+ * state = 1 - Registered, home network
317
+ * state = 2 - Not registered, but MT is currently trying to attach or searching an operator to register to
318
+ * state = 3 - Registration denied
319
+ * state = 4 - Unknown
320
+ * state = 5 - Registered, Roaming
321
+ * state = 6 - Registered, for SMS only, home network (NB-IoT only)
322
+ * state = 7 - Registered, for SMS only, roaming (NB-IoT only)
323
+ * state = 8 - Attached for emergency bearer services only
324
+ * state = 9 - Registered for CSFB not preferred, home network
325
+ * state = 10 - Registered for CSFB not preferred, roaming
326
+ */ \
327
+ ESP_MODEM_DECLARE_DCE_COMMAND(get_network_registration_state, command_result, 1 , INT_OUT(p1,state)) \
328
+ \
329
+ /* *
330
+ * @brief Configures the mobile termination error (+CME ERROR)
331
+ * @param[in] mode The form of the final result code
332
+ * mode = 0 - Disable, use and send ERROR instead
333
+ * mode = 1 - Enable, use numeric error values
334
+ * mode = 2 - Enable, result code and use verbose error values
335
+ */ \
336
+ ESP_MODEM_DECLARE_DCE_COMMAND(config_mobile_termination_error, command_result, 1 , INT_IN(p1, mode)) \
337
+ \
338
+ /* *
339
+ * @brief Configure eDRX
340
+ * @param[in] mode
341
+ * mode = 0 - Disable
342
+ * mode = 1 - Enable
343
+ * mode = 2 - Enable + URC
344
+ * mode = 3 - Disable + Reset parameter.
345
+ * @param[in] access_technology
346
+ * act = 0 - ACT is not using eDRX (used in URC)
347
+ * act = 1 - EC-GSM-IoT (A/Gb mode)
348
+ * act = 2 - GSM (A/Gb mode)
349
+ * act = 3 - UTRAN (Iu mode)
350
+ * act = 4 - E-UTRAN (WB-S1 mode)
351
+ * act = 5 - E-UTRAN (NB-S1 mode)
352
+ * @param[in] edrx_value nible string containing encoded eDRX time
353
+ * @param[in] ptw_value nible string containing encoded Paging Time Window
354
+ */ \
355
+ ESP_MODEM_DECLARE_DCE_COMMAND(config_edrx, command_result, 3 , INT_IN(p1, mode), INT_IN(p2, access_technology), STRING_IN(p3, edrx_value)) \
294
356
295
357
#ifdef GENERATE_DOCS
296
358
// cat ../include/generate/esp_modem_command_declare.inc | clang++ -E -P -CC -xc++ -I../include -DGENERATE_DOCS - | sed -n '1,/DCE command documentation/!p'
0 commit comments