diff options
Diffstat (limited to 'plugins/ublox/mm-modem-helpers-ublox.h')
-rw-r--r-- | plugins/ublox/mm-modem-helpers-ublox.h | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/plugins/ublox/mm-modem-helpers-ublox.h b/plugins/ublox/mm-modem-helpers-ublox.h index 1a51df38..d47fd41e 100644 --- a/plugins/ublox/mm-modem-helpers-ublox.h +++ b/plugins/ublox/mm-modem-helpers-ublox.h @@ -20,6 +20,27 @@ #include <ModemManager.h> /*****************************************************************************/ +/* AT Commands Support */ + +typedef enum { + FEATURE_SUPPORT_UNKNOWN, + FEATURE_SUPPORTED, + FEATURE_UNSUPPORTED, +} FeatureSupport; + +typedef enum { + BAND_UPDATE_NEEDS_UNKNOWN, + BAND_UPDATE_NEEDS_CFUN, + BAND_UPDATE_NEEDS_COPS, +} UpdateMethod; + +typedef struct UbloxSupportConfig { + UpdateMethod method; + FeatureSupport uact; + FeatureSupport ubandsel; +} UbloxSupportConfig; + +/*****************************************************************************/ /* +UPINCNT response parser */ gboolean mm_ublox_parse_upincnt_response (const gchar *response, @@ -82,6 +103,12 @@ GArray *mm_ublox_parse_urat_test_response (const gchar *response, GError **error); /*****************************************************************************/ +/* Model-based config support loading */ +gboolean mm_ublox_get_support_config (const gchar *model, + UbloxSupportConfig *config, + GError **error); + +/*****************************************************************************/ /* Model-based supported modes filtering */ GArray *mm_ublox_filter_supported_modes (const gchar *model, @@ -91,20 +118,22 @@ GArray *mm_ublox_filter_supported_modes (const gchar *model, /*****************************************************************************/ /* Model-based supported bands loading */ -GArray *mm_ublox_get_supported_bands (const gchar *model, - GError **error); +GArray *mm_ublox_get_supported_bands (const gchar *model, + GError **error); /*****************************************************************************/ /* UBANDSEL? response parser */ GArray *mm_ublox_parse_ubandsel_response (const gchar *response, + const gchar *model, GError **error); /*****************************************************************************/ /* UBANDSEL=X command builder */ -gchar *mm_ublox_build_ubandsel_set_command (GArray *bands, - GError **error); +gchar *mm_ublox_build_ubandsel_set_command (GArray *bands, + const gchar *model, + GError **error); /*****************************************************************************/ /* UACT? response parser */ |