|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Functions | |
| int | cellular_modem_pause_periodic_script (const struct device *dev) |
| Pause the cellular_modem driver's periodic chat script. | |
| int | cellular_modem_resume_periodic_script (const struct device *dev) |
| Resume the cellular_modem driver's periodic chat script. | |
| int cellular_modem_pause_periodic_script | ( | const struct device * | dev | ) |
#include <zephyr/drivers/modem/modem_cellular.h>
Pause the cellular_modem driver's periodic chat script.
Scheduled periodic-script runs are suppressed until cellular_modem_resume_periodic_script() is called. An in-flight script invocation at the time of this call is allowed to complete; suppression takes effect from the next scheduled run.
| dev | Cellular device instance backed by the cellular_modem driver |
| 0 | Success |
| -ENOTSUP | Device has no periodic chat script configured |
| -EINVAL | Periodic script is already paused |
| int cellular_modem_resume_periodic_script | ( | const struct device * | dev | ) |
#include <zephyr/drivers/modem/modem_cellular.h>
Resume the cellular_modem driver's periodic chat script.
Re-enables the periodic script. If at least one scheduled run was skipped while paused, the script fires immediately; otherwise the periodic timer restarts at the configured interval.
| dev | Cellular device instance backed by the cellular_modem driver |
| 0 | Success |
| -ENOTSUP | Device has no periodic chat script configured |
| -EINVAL | Periodic script is not currently paused |