• Home
  • Raw
  • Download

Lines Matching refs:in

47 static void chppGnssConvertClockFromChre(const struct chreGnssClock *in,  in chppGnssConvertClockFromChre()  argument
49 out->time_ns = in->time_ns; in chppGnssConvertClockFromChre()
50 out->full_bias_ns = in->full_bias_ns; in chppGnssConvertClockFromChre()
51 out->bias_ns = in->bias_ns; in chppGnssConvertClockFromChre()
52 out->drift_nsps = in->drift_nsps; in chppGnssConvertClockFromChre()
53 out->bias_uncertainty_ns = in->bias_uncertainty_ns; in chppGnssConvertClockFromChre()
54 out->drift_uncertainty_nsps = in->drift_uncertainty_nsps; in chppGnssConvertClockFromChre()
55 out->hw_clock_discontinuity_count = in->hw_clock_discontinuity_count; in chppGnssConvertClockFromChre()
56 out->flags = in->flags; in chppGnssConvertClockFromChre()
61 const struct chreGnssMeasurement *in, struct ChppGnssMeasurement *out) { in chppGnssConvertMeasurementFromChre() argument
62 out->time_offset_ns = in->time_offset_ns; in chppGnssConvertMeasurementFromChre()
63 out->accumulated_delta_range_um = in->accumulated_delta_range_um; in chppGnssConvertMeasurementFromChre()
64 out->received_sv_time_in_ns = in->received_sv_time_in_ns; in chppGnssConvertMeasurementFromChre()
66 in->received_sv_time_uncertainty_in_ns; in chppGnssConvertMeasurementFromChre()
67 out->pseudorange_rate_mps = in->pseudorange_rate_mps; in chppGnssConvertMeasurementFromChre()
68 out->pseudorange_rate_uncertainty_mps = in->pseudorange_rate_uncertainty_mps; in chppGnssConvertMeasurementFromChre()
70 in->accumulated_delta_range_uncertainty_m; in chppGnssConvertMeasurementFromChre()
71 out->c_n0_dbhz = in->c_n0_dbhz; in chppGnssConvertMeasurementFromChre()
72 out->snr_db = in->snr_db; in chppGnssConvertMeasurementFromChre()
73 out->state = in->state; in chppGnssConvertMeasurementFromChre()
74 out->accumulated_delta_range_state = in->accumulated_delta_range_state; in chppGnssConvertMeasurementFromChre()
75 out->svid = in->svid; in chppGnssConvertMeasurementFromChre()
76 out->constellation = in->constellation; in chppGnssConvertMeasurementFromChre()
77 out->multipath_indicator = in->multipath_indicator; in chppGnssConvertMeasurementFromChre()
78 out->carrier_frequency_hz = in->carrier_frequency_hz; in chppGnssConvertMeasurementFromChre()
81 static void chppGnssConvertDataEventFromChre(const struct chreGnssDataEvent *in, in chppGnssConvertDataEventFromChre() argument
87 out->measurement_count = in->measurement_count; in chppGnssConvertDataEventFromChre()
89 chppGnssConvertClockFromChre(&in->clock, &out->clock); in chppGnssConvertDataEventFromChre()
94 (uint16_t)(in->measurement_count * sizeof(struct ChppGnssMeasurement)); in chppGnssConvertDataEventFromChre()
98 for (size_t i = 0; i < in->measurement_count; i++) { in chppGnssConvertDataEventFromChre()
99 chppGnssConvertMeasurementFromChre(&in->measurements[i], in chppGnssConvertDataEventFromChre()
110 const struct chreGnssLocationEvent *in, struct ChppGnssLocationEvent *out) { in chppGnssConvertLocationEventFromChre() argument
111 out->timestamp = in->timestamp; in chppGnssConvertLocationEventFromChre()
112 out->latitude_deg_e7 = in->latitude_deg_e7; in chppGnssConvertLocationEventFromChre()
113 out->longitude_deg_e7 = in->longitude_deg_e7; in chppGnssConvertLocationEventFromChre()
114 out->altitude = in->altitude; in chppGnssConvertLocationEventFromChre()
115 out->speed = in->speed; in chppGnssConvertLocationEventFromChre()
116 out->bearing = in->bearing; in chppGnssConvertLocationEventFromChre()
117 out->accuracy = in->accuracy; in chppGnssConvertLocationEventFromChre()
118 out->flags = in->flags; in chppGnssConvertLocationEventFromChre()
120 out->altitude_accuracy = in->altitude_accuracy; in chppGnssConvertLocationEventFromChre()
121 out->speed_accuracy = in->speed_accuracy; in chppGnssConvertLocationEventFromChre()
122 out->bearing_accuracy = in->bearing_accuracy; in chppGnssConvertLocationEventFromChre()
127 bool chppGnssDataEventFromChre(const struct chreGnssDataEvent *in, in chppGnssDataEventFromChre() argument
133 size_t payloadSize = chppGnssSizeOfDataEventFromChre(in); in chppGnssDataEventFromChre()
138 chppGnssConvertDataEventFromChre(in, &(*out)->payload, payload, payloadSize, in chppGnssDataEventFromChre()
146 bool chppGnssLocationEventFromChre(const struct chreGnssLocationEvent *in, in chppGnssLocationEventFromChre() argument
155 chppGnssConvertLocationEventFromChre(in, &(*out)->payload); in chppGnssLocationEventFromChre()
164 static bool chppGnssConvertClockToChre(const struct ChppGnssClock *in, in chppGnssConvertClockToChre() argument
166 out->time_ns = in->time_ns; in chppGnssConvertClockToChre()
167 out->full_bias_ns = in->full_bias_ns; in chppGnssConvertClockToChre()
168 out->bias_ns = in->bias_ns; in chppGnssConvertClockToChre()
169 out->drift_nsps = in->drift_nsps; in chppGnssConvertClockToChre()
170 out->bias_uncertainty_ns = in->bias_uncertainty_ns; in chppGnssConvertClockToChre()
171 out->drift_uncertainty_nsps = in->drift_uncertainty_nsps; in chppGnssConvertClockToChre()
172 out->hw_clock_discontinuity_count = in->hw_clock_discontinuity_count; in chppGnssConvertClockToChre()
173 out->flags = in->flags; in chppGnssConvertClockToChre()
180 const struct ChppGnssMeasurement *in, struct chreGnssMeasurement *out) { in chppGnssConvertMeasurementToChre() argument
181 out->time_offset_ns = in->time_offset_ns; in chppGnssConvertMeasurementToChre()
182 out->accumulated_delta_range_um = in->accumulated_delta_range_um; in chppGnssConvertMeasurementToChre()
183 out->received_sv_time_in_ns = in->received_sv_time_in_ns; in chppGnssConvertMeasurementToChre()
185 in->received_sv_time_uncertainty_in_ns; in chppGnssConvertMeasurementToChre()
186 out->pseudorange_rate_mps = in->pseudorange_rate_mps; in chppGnssConvertMeasurementToChre()
187 out->pseudorange_rate_uncertainty_mps = in->pseudorange_rate_uncertainty_mps; in chppGnssConvertMeasurementToChre()
189 in->accumulated_delta_range_uncertainty_m; in chppGnssConvertMeasurementToChre()
190 out->c_n0_dbhz = in->c_n0_dbhz; in chppGnssConvertMeasurementToChre()
191 out->snr_db = in->snr_db; in chppGnssConvertMeasurementToChre()
192 out->state = in->state; in chppGnssConvertMeasurementToChre()
193 out->accumulated_delta_range_state = in->accumulated_delta_range_state; in chppGnssConvertMeasurementToChre()
194 out->svid = in->svid; in chppGnssConvertMeasurementToChre()
195 out->constellation = in->constellation; in chppGnssConvertMeasurementToChre()
196 out->multipath_indicator = in->multipath_indicator; in chppGnssConvertMeasurementToChre()
197 out->carrier_frequency_hz = in->carrier_frequency_hz; in chppGnssConvertMeasurementToChre()
202 static bool chppGnssConvertDataEventToChre(const struct ChppGnssDataEvent *in, in chppGnssConvertDataEventToChre() argument
206 out->measurement_count = in->measurement_count; in chppGnssConvertDataEventToChre()
208 if (!chppGnssConvertClockToChre(&in->clock, &out->clock)) { in chppGnssConvertDataEventToChre()
212 if (in->measurements.length == 0) { in chppGnssConvertDataEventToChre()
215 if (in->measurements.offset + in->measurements.length > inSize || in chppGnssConvertDataEventToChre()
216 in->measurements.length != in chppGnssConvertDataEventToChre()
217 in->measurement_count * sizeof(struct ChppGnssMeasurement)) { in chppGnssConvertDataEventToChre()
223 (const uint8_t *)in)[in->measurements.offset]; in chppGnssConvertDataEventToChre()
226 chppMalloc(in->measurement_count * sizeof(struct chreGnssMeasurement)); in chppGnssConvertDataEventToChre()
231 for (size_t i = 0; i < in->measurement_count; i++) { in chppGnssConvertDataEventToChre()
244 const struct ChppGnssLocationEvent *in, struct chreGnssLocationEvent *out) { in chppGnssConvertLocationEventToChre() argument
245 out->timestamp = in->timestamp; in chppGnssConvertLocationEventToChre()
246 out->latitude_deg_e7 = in->latitude_deg_e7; in chppGnssConvertLocationEventToChre()
247 out->longitude_deg_e7 = in->longitude_deg_e7; in chppGnssConvertLocationEventToChre()
248 out->altitude = in->altitude; in chppGnssConvertLocationEventToChre()
249 out->speed = in->speed; in chppGnssConvertLocationEventToChre()
250 out->bearing = in->bearing; in chppGnssConvertLocationEventToChre()
251 out->accuracy = in->accuracy; in chppGnssConvertLocationEventToChre()
252 out->flags = in->flags; in chppGnssConvertLocationEventToChre()
254 out->altitude_accuracy = in->altitude_accuracy; in chppGnssConvertLocationEventToChre()
255 out->speed_accuracy = in->speed_accuracy; in chppGnssConvertLocationEventToChre()
256 out->bearing_accuracy = in->bearing_accuracy; in chppGnssConvertLocationEventToChre()
264 const struct ChppGnssDataEvent *in, size_t inSize) { in chppGnssDataEventToChre() argument
270 if (!chppGnssConvertDataEventToChre(in, out, inSize)) { in chppGnssDataEventToChre()
279 const struct ChppGnssLocationEvent *in, size_t inSize) { in chppGnssLocationEventToChre() argument
285 if (!chppGnssConvertLocationEventToChre(in, out)) { in chppGnssLocationEventToChre()