blob: 5cdffcb7673caf0ccc46f0d19a3291f5453d89cb [file] [log] [blame]
Keun Soo Yime5a26362016-03-11 13:22:52 -08001component_class: HAL
2component_type: GPS
3component_type_version: 1.0
4
5original_data_structure_name: "GpsInterface"
6
7api: {
8 name: "init"
9 return_type: "int32_t"
10 arg: {
11 primitive_type: "function_pointer"
12 aggregate_type: "GpsCallbacks *"
13 }
14 callflow: {
15 entry: true
16 next: "start"
17 }
18}
19
20api: {
21 name: "start"
22 return_type: "int32_t"
23 callflow: {
24 next: "stop"
25 }
26}
27
28api: {
29 name: "stop"
30 return_type: "int32_t"
31 callflow: {
32 next: "cleanup"
33 }
34}
35
36api: {
37 name: "cleanup"
38 return_type: "void"
39 callflow: {
40 exit: true
41 next: "cleanup"
42 }
43}
44
45api: {
46 name: "inject_time"
47 return_type: "int32_t"
48 arg: {
49 primitive_type: "int64_t"
50 aggregate_type: "GpsUtcTime"
51 }
52 arg: {
53 primitive_type: "int64_t"
54 aggregate_type: "GpsUtcTime"
55 }
56 arg: {
57 primitive_type: "int32_t"
58 }
59}
60
61api: {
62 name: "inject_location"
63 return_type: "int32_t"
64 arg: {
65 primitive_type: "double"
66 aggregate_type: "latitude"
67 }
68 arg: {
69 primitive_type: "double"
70 aggregate_type: "longitude"
71 }
72 arg: {
73 primitive_type: "float"
74 aggregate_type: "accuracy"
75 }
76}
77
78api: {
79 name: "delete_aiding_data"
80 return_type: "void"
81 arg: {
82 primitive_type: "uint16_t"
83 aggregate_type: "flags"
84 }
85}
86
87api: {
88 name: "set_position_mode"
89 return_type: "int32_t"
90 arg: {
91 primitive_type: "uint32_t"
92 aggregate_type: "GpsPositionMode"
93 }
94 arg: {
95 primitive_type: "uint32_t"
96 aggregate_type: "GpsPositionRecurrence"
97 }
98 arg: {
99 primitive_type: "uint32_t"
100 aggregate_type: "min_interval"
101 }
102 arg: {
103 primitive_type: "uint32_t"
104 aggregate_type: "preferred_accuracy"
105 }
106 arg: {
107 primitive_type: "uint32_t"
108 aggregate_type: "preferred_time"
109 }
110}
111
112api: {
113 name: "get_extension"
114 return_type: "void_pointer"
115 arg: {
116 primitive_type: "char_pointer"
117 }
118}