Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
modem_cellular_vendor_config_common Struct Reference

Vendor-specific common cellular modem configuration. More...

#include <zephyr/drivers/modem/modem_cellular.h>

Data Fields

struct modem_cellular_config_scripts scripts
 Chat scripts implementing the modem lifecycle.
struct { 
   const struct modem_chat_match *   matches 
 Array of unsolicited response matches, or NULL when size is zero. More...
   uint16_t   size 
 Number of elements in matches. More...
} unsol_matches
 Unsolicited modem response matches.
const char * chat_delimiter
 Command delimiter used by the modem, as a NULL-terminated string.
const char * chat_filter
 Characters filtered from modem responses, as a NULL-terminated string.
uint16_t baudrate_update_delay_ms
 Time modem takes to change baudrate, in milliseconds.
uint16_t reset_power_on_delay_ms
 Delay between de-asserting the reset pin and pulsing the power pin, in milliseconds.
uint16_t power_pulse_duration_ms
 Duration of the modem power-key pulse, in milliseconds.
uint16_t reset_pulse_duration_ms
 Duration of the modem reset pulse, in milliseconds.
uint16_t cmux_disconnect_timeout_ms
 Timeout for the modem to revert from CMUX to AT mode after a CMUX disconnect, in milliseconds.
uint16_t startup_time_ms
 Maximum modem startup delay, in milliseconds.
uint16_t shutdown_time_ms
 Maximum modem shutdown delay, in milliseconds.
bool force_autostart
 Force autostart regardless of the devicetree autostarts property.

Detailed Description

Vendor-specific common cellular modem configuration.

Define one constant object for each modem variant. The referenced scripts and unsolicited-match array must remain valid for the lifetime of every device instance that uses this configuration.

This structure is for configuration that is common between all driver instances.

Field Documentation

◆ baudrate_update_delay_ms

uint16_t modem_cellular_vendor_config_common::baudrate_update_delay_ms

Time modem takes to change baudrate, in milliseconds.

◆ chat_delimiter

const char* modem_cellular_vendor_config_common::chat_delimiter

Command delimiter used by the modem, as a NULL-terminated string.

Must not be NULL and must remain valid for the lifetime of the device.

◆ chat_filter

const char* modem_cellular_vendor_config_common::chat_filter

Characters filtered from modem responses, as a NULL-terminated string.

May be NULL to disable filtering. A non-NULL string must remain valid for the lifetime of the device.

◆ cmux_disconnect_timeout_ms

uint16_t modem_cellular_vendor_config_common::cmux_disconnect_timeout_ms

Timeout for the modem to revert from CMUX to AT mode after a CMUX disconnect, in milliseconds.

Defaults to reset_pulse_duration_ms if not specified (value == 0U) for legacy compatibility.

◆ force_autostart

bool modem_cellular_vendor_config_common::force_autostart

Force autostart regardless of the devicetree autostarts property.

◆ matches

const struct modem_chat_match* modem_cellular_vendor_config_common::matches

Array of unsolicited response matches, or NULL when size is zero.

◆ power_pulse_duration_ms

uint16_t modem_cellular_vendor_config_common::power_pulse_duration_ms

Duration of the modem power-key pulse, in milliseconds.

◆ reset_power_on_delay_ms

uint16_t modem_cellular_vendor_config_common::reset_power_on_delay_ms

Delay between de-asserting the reset pin and pulsing the power pin, in milliseconds.

◆ reset_pulse_duration_ms

uint16_t modem_cellular_vendor_config_common::reset_pulse_duration_ms

Duration of the modem reset pulse, in milliseconds.

◆ scripts

struct modem_cellular_config_scripts modem_cellular_vendor_config_common::scripts

Chat scripts implementing the modem lifecycle.

◆ shutdown_time_ms

uint16_t modem_cellular_vendor_config_common::shutdown_time_ms

Maximum modem shutdown delay, in milliseconds.

◆ size

uint16_t modem_cellular_vendor_config_common::size

Number of elements in matches.

◆ startup_time_ms

uint16_t modem_cellular_vendor_config_common::startup_time_ms

Maximum modem startup delay, in milliseconds.

◆ [struct]

struct { ... } modem_cellular_vendor_config_common::unsol_matches

Unsolicited modem response matches.


The documentation for this struct was generated from the following file: