Add T106 header file.

Change-Id: I139abf126f194dc011d5cdf531722152f90a1e90
diff --git a/mbtk/include/lynq/lynq_gnss.h b/mbtk/include/lynq/lynq_gnss.h
index 679039b..6e2827a 100755
--- a/mbtk/include/lynq/lynq_gnss.h
+++ b/mbtk/include/lynq/lynq_gnss.h
@@ -1,121 +1,69 @@
-#ifndef __MBTK_LYNQ_GNSS_H__
-#define __MBTK_LYNQ_GNSS_H__
+/*
+* qser_gnss.h
+*
+* QSER GNSS header file.
+*
+* Author : lb
+* Date   : 2023/11/23 11:13:18
+*/
+#ifndef _QSER_GNSS_H
+#define _QSER_GNSS_H
+#include "mbtk_type.h"
+
+typedef unsigned int Uint_t;
 
 typedef enum
 {
-    E_LYNQ_LOC_MSG_ID_STATUS_INFO = 0,
-    E_LYNQ_LOC_MSG_ID_LOCATION_INFO,
-    E_LYNQ_LOC_MSG_ID_SV_INFO,
-    E_LYNQ_LOC_MSG_ID_NMEA_INFO,
-    E_LYNQ_LOC_MSG_ID_CAPABILITIES_INFO,
-    E_LYNQ_LOC_MSG_ID_AGPS_STATUS,
-    E_LYNQ_LOC_MSG_ID_NI_NOTIFICATION,
-    E_LYNQ_LOC_MSG_ID_XTRA_REPORT_SERVER,
-}E_LYNQ_LOC_MSG_ID_T;
+    E_MT_LOC_MSG_ID_LOCATION_INFO, /**< pv_data = & mopen_location_info_t */
+    E_MT_LOC_MSG_ID_NMEA_INFO, /**< pv_data = & mopen_gnss_nmea_info_t */
+} e_msg_id_t;
 
-#define LYNQ_LOC_NMEA_MAX_LENGTH  255                 /**  NMEA string maximum length. */
+typedef void (*gnss_handler_func_t)
+(
+    Uint_t *h_loc,
+    e_msg_id_t e_msg_id, //消息 ID
+    void *pv_data, //消息内容,取决于 ID,如下说明
+    void *context_ptr //用于区分哪个返回的消息
+)/* lynq_AddRxIndMsgHandler_t*/;
+
 typedef struct
 {
-    int64_t     timestamp;                          /**<   System Timestamp, marked for when got the nmea data */
-    int         length;                             /**<   NMEA string length. */
-    char        nmea[LYNQ_LOC_NMEA_MAX_LENGTH + 1];   /**<   NMEA string.*/
-}LYNQ_LOC_NMEA_INFO_T;  /* Message */
+    uint32_t year; // 大于 1980
+    uint32_t month; // 1-12
+    uint32_t day; // 1-31
+    uint32_t hour; // 0-23
+    uint32_t minute; // 0-59
+    uint32_t second; // 0-59
+    uint32_t millisecond; // 0-999
+} LYNQ_INJECT_TIME_INTO_T; /* Message */
 
-/* callback function register to lynq_gnss_rx_ind_msg_handler
-   e_msg_id: which kind of msg can be received depend on the bit_mask set in QL_LOC_Set_Indications;
-   pv_data: depend on the e_msg_id type.
-*/
-typedef void (*lynq_gnss_rx_ind_msg_handler_t)
-(
-    uint32  h_loc,
-    E_LYNQ_LOC_MSG_ID_T   e_msg_id,
-    void                    *pv_data,
-    void                    *contextPtr
-);
+typedef enum {
+    DELETE_NOTHING = 0, /*不删除数据*/
+    DELETE_EPHEMERIS = 1, /*删除星历*/
+    DELETE_ALMANAC = 2, /*删除历书*/
+    DELETE_POSITION_TIME = 3, /*删除时间和位置信息. */
+    DELETE_UTC = 4, /*删除 UTC 时间*/
+    DELETE_ALL = 5 /*删除所有*/
+} DELETE_AIDING_DATA_TYPE_T;
 
-/**
- * @brief      function description
- *
- * @details    detailed description
- *
- * @param      param
- *
- * @return     return type
- */
-int lynq_gnss_init(void);
-/**
- * @brief      function description
- *
- * @details    detailed description
- *
- * @param      param
- *
- * @return     return type
- */
-int lynq_gnss_deinit(void);
+int qser_Gnss_Init (uint32_t *h_gnss);
 
-/**
- * @brief      function description
- *
- * @details    detailed description
- *
- * @param      param
- *
- * @return     return type
- */
-int lynq_gnss_callback_reg(lynq_gnss_rx_ind_msg_handler_t handlerPtr);
+int qser_Gnss_Deinit (uint32_t h_gnss);
 
-/**
- * @brief      function description
- *
- * @details    detailed description
- *
- * @param      param
- *
- * @return     return type
- */
-int lynq_gnss_start(void);
-/**
- * @brief      function description
- *
- * @details    detailed description
- *
- * @param      param
- *
- * @return     return type
- */
-int lynq_gnss_stop(void);
+int qser_AddRxIndMsgHandler (gnss_handler_func_t handler_ptr,uint32_t h_gnss);
 
-/**
- * @brief      function description
- *
- * @details    detailed description
- *
- * @param      param
- *
- * @return     return type
- */
-int lynq_gnss_agps_dataconnopen(void);
-/**
- * @brief      function description
- *
- * @details    detailed description
- *
- * @param      param
- *
- * @return     return type
- */
-int lynq_gnss_dev_reset(void);
+int qser_Set_Indications (uint32_t h_gnss,e_msg_id_t type);
 
-/**
- * @brief      function description
- *
- * @details    detailed description
- *
- * @param      param
- *
- * @return     return type
- */
-int lynq_gnss_enable_glonass(void);
+int qser_Gnss_Start (uint32_t h_gnss);
 
-#endif
+int qser_Gnss_Stop (uint32_t h_gnss);
+
+int qser_Gnss_InjectTime (uint32_t h_gnss,LYNQ_INJECT_TIME_INTO_T *time_info);
+
+int qser_Gnss_Delete_Aiding_Data (uint32_t h_gnss,DELETE_AIDING_DATA_TYPE_T flags);
+
+int qser_Gnss_download_tle();
+
+int qser_Gnss_injectEphemeris(uint32_t h_gnss);
+
+#endif /* _QSER_GNSS_H */