drivers: modem: hl7800: Add query carrier config

Add API to query the carrier config of the HL7800.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
This commit is contained in:
Ryan Erickson 2021-08-19 15:14:24 -05:00 committed by Anas Nashif
commit 61ef41fc24
2 changed files with 56 additions and 0 deletions

View file

@ -57,6 +57,9 @@ struct mdm_hl7800_apn {
#define MDM_HL7800_LTE_BAND_STR_SIZE 21
#define MDM_HL7800_LTE_BAND_STRLEN (MDM_HL7800_LTE_BAND_STR_SIZE - 1)
#define MDM_HL7800_OPERATOR_INDEX_SIZE 3
#define MDM_HL7800_OPERATOR_INDEX_STRLEN (MDM_HL7800_OPERATOR_INDEX_SIZE - 1)
enum mdm_hl7800_radio_mode { MDM_RAT_CAT_M1 = 0, MDM_RAT_CAT_NB1 };
enum mdm_hl7800_event {
@ -263,6 +266,13 @@ int32_t mdm_hl7800_get_local_time(struct tm *tm, int32_t *offset);
int32_t mdm_hl7800_update_fw(char *file_path);
#endif
/**
* @brief Read the operator index from the modem.
*
* @retval negative error code, 0 on success
*/
int32_t mdm_hl7800_get_operator_index(void);
#ifdef __cplusplus
}
#endif