החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפניה ל-struct של GpsXtraInterface
#include <
gps.h
>
ממשק מורחב לתמיכה ב-XTRA.
ההגדרה מופיעה בשורה
858
בקובץ
gps.h
.
הפונקציה פותחת את הממשק XTRA ומספקת את פונקציות ה-callback להטמעה של הממשק הזה.
ההגדרה מופיעה בשורה
865
בקובץ
gps.h
.
int(* inject_xtra_data)(char *data, int length)
|
הזרקת נתוני XTRA ל-GPS.
ההגדרה מופיעה בשורה
867
בקובץ
gps.h
.
מוגדר לערך sizeof(GpsXtraInterface)
ההגדרה מופיעה בשורה
860
בקובץ
gps.h
.
התיעוד של המבנה הזה נוצר מהקובץ הבא:
-
hardware/libhardware/include/hardware/
gps.h
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Android Hardware Abstraction Layer: GpsXtraInterface Struct Reference\n\nGpsXtraInterface Struct Reference\n=================================\n\n[Data Fields](#pub-attribs) \nGpsXtraInterface Struct Reference \n\n`\n#include \u003c\n`[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)`\n\u003e\n`\n\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/struct_gps_xtra_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| int(\\* | [init](/reference/hal/struct_gps_xtra_interface#a571611028fb8daaf70ebb3714ef06dd3) )( [GpsXtraCallbacks](/reference/hal/struct_gps_xtra_callbacks) \\*callbacks) |\n| ||\n| int(\\* | [inject_xtra_data](/reference/hal/struct_gps_xtra_interface#af0d98449621abe32abfedcd414d7fbd1) )(char \\*data, int length) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nExtended interface for XTRA support.\n\n\nDefinition at line\n[858](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------------------------------|\n| int(\\* init)( [GpsXtraCallbacks](/reference/hal/struct_gps_xtra_callbacks) \\*callbacks) |\n\n\nOpens the XTRA interface and provides the callback routines to the implementation of this interface.\n\n\nDefinition at line\n[865](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|---------------------------------------------------|\n| int(\\* inject_xtra_data)(char \\*data, int length) |\n\n\nInjects XTRA data into the GPS.\n\n\nDefinition at line\n[867](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to sizeof(GpsXtraInterface)\n\n\nDefinition at line\n[860](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)"]]