GpsInterface 结构参考

GpsInterface 结构参考

#include < gps.h >

数据字段

尺寸_t尺寸
整数(* init )( GpsCallbacks *callbacks)
整数(*开始)(无效)
整数(*停止)(无效)
空白(*清理)(无效)
整数(* inject_time )( GpsUtcTime时间, int64_t timeReference, int 不确定性)
整数(* inject_location )(双纬度,双经度,浮点精度)
空白(* delete_aiding_data )( GpsAidingData标志)
整数(* set_position_mode )( GpsPositionMode模式, GpsPositionRecurrence重复, uint32_t min_interval, uint32_t preferred_accuracy, uint32_t preferred_time)
常量无效*(* get_extension )(const char *name)

详细说明

代表标准 GPS 接口。

在文件gps.h的第790行定义。

现场文件

无效(*清理)(无效)

关闭界面。

在文件gps.h的第806行定义。

void(* delete_aiding_data)( GpsAidingData标志)

指定下一个开始调用将不使用标志中定义的信息。 GPS_DELETE_ALL 用于冷启动。

在文件gps.h的第824行定义。

const void*(* get_extension)(const char *name)

获取指向扩展信息的指针。

在文件gps.h的第841行定义。

int(* init)( GpsCallbacks *callbacks)

打开接口并为该接口的实现提供回调例程。

在文件gps.h的第797行定义。

int(* injection_location)(双纬,双经,浮点精度)

从另一个位置提供者(通常是小区 ID)注入当前位置。纬度和经度以度为单位测量预期精度以米为单位

在文件gps.h的第817行定义。

int(* injection_time)( GpsUtcTime时间,int64_t timeReference,int 不确定性)

注入当前时间。

在文件gps.h的第809行定义。

int(* set_position_mode)( GpsPositionMode模式, GpsPositionRecurrence重复, uint32_t min_interval, uint32_t preferred_accuracy, uint32_t preferred_time)

min_interval 表示修复之间的时间(以毫秒为单位)。 preferred_accuracy 表示请求的修复精度(以米为单位)。 preferred_time 表示请求的第一次修复时间(以毫秒为单位)。

'mode' 参数应该是 GPS_POSITION_MODE_MS_BASED 或 GPS_POSITION_MODE_STANDALONE 之一。如果传入 GPS_POSITION_MODE_MS_ASSISTED 并且支持 GPS_POSITION_MODE_MS_BASED,则平台允许(并且推荐)回退到 GPS_POSITION_MODE_MS_BASED。

在文件gps.h的第837行定义。

size_t 大小

设置为 sizeof(GpsInterface)

在文件gps.h的第792行定义。

整数(*开始)(无效)

开始导航。

在文件gps.h的第800行定义。

整数(*停止)(无效)

停止导航。

在文件gps.h的第803行定义。


此结构的文档是从以下文件生成的: