43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/*
|
|||
|
|
* SPDX-FileCopyrightText: 2022 Unisoc (Shanghai) Technologies Co., Ltd.
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: LicenseRef-Unisoc-General-1.0
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef _CALLBACK_H_
|
||
|
|
#define _CALLBACK_H_
|
||
|
|
#include <gnss/gps.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
extern GpsCallbacks g_gpsCallback;
|
||
|
|
extern AGpsCallbacks g_agpsCallback;
|
||
|
|
extern GpsNiCallbacks g_niCallback;
|
||
|
|
extern AGpsRilCallbacks g_rilCallback;
|
||
|
|
extern GpsMeasurementCallbacks g_msrCallback;
|
||
|
|
extern GpsNavigationMessageCallbacks g_navCallback;
|
||
|
|
extern GnssMeasurementCorrectionCallbacks g_msrCorrCallback;
|
||
|
|
extern GnssVisibilityControlCallbacks g_visCtrlCallback;
|
||
|
|
|
||
|
|
extern int mpty;
|
||
|
|
#define LOCATION_BUF_SIZE 256
|
||
|
|
#define SVSTATUS_BUF_SIZE 256
|
||
|
|
|
||
|
|
#define TAG_LOCATION_NAME "location="
|
||
|
|
#define TAG_LOCATION_LEN 9
|
||
|
|
#define TAG_SVSTATUS_NAME "svstatus="
|
||
|
|
#define TAG_SVSTATUS_LEN 9
|
||
|
|
|
||
|
|
#define GNSS_ADAPTER_BUS_SIGNAL_PATH "/"
|
||
|
|
#define GNSS_ADAPTER_BUS_SIGNAL_INTERFACE "com.unisoc.GnssAdapter"
|
||
|
|
#define SIGNAL_NAME_GPS_STATUS_CHANGED "gps_status_changed"
|
||
|
|
#define SIGNAL_NAME_AGPS_STATUS_CHANGED "agps_status_changed"
|
||
|
|
#define SIGNAL_NAME_NI_NOTIFICATION "ni_notification"
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
#endif
|