Lines Matching defs:hl7800_iface_ctx
416 struct hl7800_iface_ctx { struct
417 struct net_if *iface;
418 uint8_t mac_addr[6];
419 struct in_addr ipv4Addr, subnet, gateway, dns_v4;
421 struct in6_addr ipv6Addr, dns_v6;
422 char dns_v6_string[HL7800_IPV6_ADDR_LEN];
424 bool restarting;
425 bool initialized;
426 bool wait_for_KSUP;
427 uint32_t wait_for_KSUP_tries;
428 bool reconfig_IP_connection;
429 char dns_v4_string[NET_IPV4_ADDR_LEN];
430 char no_id_resp_cmd[NO_ID_RESP_CMD_MAX_LENGTH];
431 bool search_no_id_resp;
434 struct gpio_callback mdm_vgpio_cb;
435 struct gpio_callback mdm_uart_dsr_cb;
436 struct gpio_callback mdm_gpio6_cb;
437 struct gpio_callback mdm_uart_cts_cb;
438 int vgpio_state;
439 int dsr_state;
440 int gpio6_state;
441 int cts_state;
444 struct mdm_receiver_context mdm_ctx;
447 struct hl7800_socket sockets[MDM_MAX_SOCKETS];
448 int last_socket_id;
449 int last_error;
450 struct stale_socket stale_sockets[MDM_MAX_SOCKETS];
451 struct k_queue stale_socket_queue;
454 struct k_sem response_sem;
455 struct k_sem mdm_awake;
458 struct k_work_delayable rssi_query_work;
459 struct k_work_delayable iface_status_work;
460 struct k_work_delayable dns_work;
461 struct k_work mdm_vgpio_work;
462 struct k_work_delayable mdm_reset_work;
463 struct k_work_delayable allow_sleep_work;
464 struct k_work_delayable delete_untracked_socket_work;
465 struct k_work mdm_pwr_off_work;
469 enum mdm_hl7800_fota_state fw_update_state;
470 struct fs_file_t fw_update_file;
471 struct xmodem_packet fw_packet;
472 uint32_t fw_packet_count;
473 int file_pos;
474 struct k_work finish_fw_update_work;
475 bool fw_updated;
480 char mdm_manufacturer[MDM_MANUFACTURER_LENGTH];
481 char mdm_model[MDM_MODEL_LENGTH];
482 char mdm_revision[MDM_HL7800_REVISION_MAX_SIZE];
483 char mdm_imei[MDM_HL7800_IMEI_SIZE];
484 char mdm_sn[MDM_HL7800_SERIAL_NUMBER_SIZE];
485 char mdm_network_status[MDM_NETWORK_STATUS_LENGTH];
486 char mdm_iccid[MDM_HL7800_ICCID_MAX_SIZE];
487 enum mdm_hl7800_startup_state mdm_startup_state;
488 enum mdm_hl7800_radio_mode mdm_rat;
489 char mdm_active_bands_string[MDM_HL7800_LTE_BAND_STR_SIZE];
490 char mdm_bands_string[MDM_HL7800_LTE_BAND_STR_SIZE];
491 char mdm_imsi[MDM_HL7800_IMSI_MAX_STR_SIZE];
492 int mdm_rssi;
493 uint16_t mdm_bands_top;
494 uint32_t mdm_bands_middle;
495 uint32_t mdm_bands_bottom;
496 int32_t mdm_sinr;
497 bool mdm_echo_is_on;
498 struct mdm_hl7800_apn mdm_apn;
499 bool mdm_startup_reporting_on;
500 int device_services_ind;
501 bool new_rat_cmd_support;
502 uint8_t operator_index;
503 enum mdm_hl7800_functionality functionality;
504 char mdm_pdp_addr_fam[MDM_ADDR_FAM_MAX_LEN];
507 bool allow_sleep;
508 bool uart_on;
509 enum mdm_hl7800_sleep desired_sleep_level;
510 enum mdm_hl7800_sleep sleep_state;
511 enum hl7800_lpm low_power_mode;
512 enum mdm_hl7800_network_state network_state;
513 bool network_dropped;
514 bool dns_ready;
515 enum net_operator_status operator_status;
516 struct tm local_time;
517 int32_t local_time_offset;
518 bool local_time_valid;
519 bool configured;
520 bool off;
521 void (*wake_up_callback)(int state);
522 void (*gpio6_callback)(int state);
523 void (*cts_callback)(int state);
526 struct k_work_delayable gps_work;
527 uint32_t gps_query_location_rate_seconds;