Struct SysInfo
#[non_exhaustive]pub struct SysInfo {
pub gsm_status: Option<ServiceStatusInfo>,
pub wcdma_status: Option<ServiceStatusInfo>,
pub lte_status: Option<ServiceStatusInfo>,
pub tdscdma_status: Option<ServiceStatusInfo>,
pub gsm: Option<GsmSysInfo>,
pub wcdma: Option<WcdmaSysInfo>,
pub lte: Option<LteSysInfo>,
pub tdscdma: Option<TdscdmaSysInfo>,
pub voice_support_on_lte: Option<bool>,
}Expand description
Service status and serving system of the GSM, WCDMA, LTE and TD-SCDMA radio technologies.
Returned by GetSysInfo and part of SysInfoIndication. A status can
be ServiceStatus::NO_SRV for a radio technology that the modem doesn’t
use. With an LTE-only mode preference, the AG35 reports GSM and WCDMA like
that and leaves out their system fields. The CDMA, HDR and NR5G TLVs are
not decoded.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.gsm_status: Option<ServiceStatusInfo>GSM service status (gsm_srv_status_info).
wcdma_status: Option<ServiceStatusInfo>WCDMA service status (wcdma_srv_status_info).
lte_status: Option<ServiceStatusInfo>LTE service status (lte_srv_status_info).
tdscdma_status: Option<ServiceStatusInfo>TD-SCDMA service status (tdscdma_srv_status_info).
gsm: Option<GsmSysInfo>GSM system (gsm_sys_info).
wcdma: Option<WcdmaSysInfo>WCDMA system (wcdma_sys_info).
lte: Option<LteSysInfo>LTE system (lte_sys_info).
tdscdma: Option<TdscdmaSysInfo>TD-SCDMA system (tdscdma_sys_info).
voice_support_on_lte: Option<bool>Whether the LTE system supports voice calls (voice_support_on_lte).
Implementations§
§impl SysInfo
impl SysInfo
fn from_message(
message: &Message,
tdscdma_status: u8,
tdscdma: u8,
) -> Result<Self, DecodeError>
fn from_message( message: &Message, tdscdma_status: u8, tdscdma: u8, ) -> Result<Self, DecodeError>
Reads the TLVs that the response and the indication share. Only the TD-SCDMA TLVs differ.