Lines Matching refs:vehicle_data
248 vehicle_prop_value_t vehicle_data; in set_property() local
249 vehicle_data.prop = property; in set_property()
250 vehicle_data.value_type = type; in set_property()
256 vehicle_data.value.str_value.len = strlen(data); in set_property()
257 vehicle_data.value.str_value.data = in set_property()
259 memcpy(vehicle_data.value.str_value.data, data, strlen(data) + 1); in set_property()
270 vehicle_data.value.bytes_value.len = numBytes; in set_property()
271 vehicle_data.value.bytes_value.data = buf; in set_property()
275 vehicle_data.value.boolean_value = atoi(data); in set_property()
278 sscanf(data, "%d %d", &vehicle_data.zone, in set_property()
279 &vehicle_data.value.boolean_value); in set_property()
282 vehicle_data.value.int64_value = atoi(data); in set_property()
285 vehicle_data.value.float_value = atof(data); in set_property()
288 sscanf(data, "%f %f", &vehicle_data.value.float_array[0], in set_property()
289 &vehicle_data.value.float_array[1]); in set_property()
292 sscanf(data, "%f %f %f", &vehicle_data.value.float_array[0], in set_property()
293 &vehicle_data.value.float_array[1], in set_property()
294 &vehicle_data.value.float_array[2]); in set_property()
297 sscanf(data, "%f %f %f %f", &vehicle_data.value.float_array[0], in set_property()
298 &vehicle_data.value.float_array[1], in set_property()
299 &vehicle_data.value.float_array[2], in set_property()
300 &vehicle_data.value.float_array[3]); in set_property()
303 vehicle_data.value.int32_value = atoi(data); in set_property()
306 sscanf(data, "%d %d", &vehicle_data.value.int32_array[0], in set_property()
307 &vehicle_data.value.int32_array[1]); in set_property()
310 sscanf(data, "%d %d %d", &vehicle_data.value.int32_array[0], in set_property()
311 &vehicle_data.value.int32_array[1], in set_property()
312 &vehicle_data.value.int32_array[2]); in set_property()
315 sscanf(data, "%d %d %d %d", &vehicle_data.value.int32_array[0], in set_property()
316 &vehicle_data.value.int32_array[1], in set_property()
317 &vehicle_data.value.int32_array[2], in set_property()
318 &vehicle_data.value.int32_array[3]); in set_property()
322 vehicle_data.zone = zone; in set_property()
323 vehicle_data.value.float_value = value; in set_property()
326 sscanf(data, "%d %f %f", &vehicle_data.zone, in set_property()
327 &vehicle_data.value.float_array[0], in set_property()
328 &vehicle_data.value.float_array[1]); in set_property()
331 sscanf(data, "%d %f %f %f", &vehicle_data.zone, in set_property()
332 &vehicle_data.value.float_array[0], in set_property()
333 &vehicle_data.value.float_array[1], in set_property()
334 &vehicle_data.value.float_array[2]); in set_property()
337 sscanf(data, "%d %f %f %f %f", &vehicle_data.zone, in set_property()
338 &vehicle_data.value.float_array[0], in set_property()
339 &vehicle_data.value.float_array[1], in set_property()
340 &vehicle_data.value.float_array[2], in set_property()
341 &vehicle_data.value.float_array[3]); in set_property()
344 sscanf(data, "%d %d", &vehicle_data.zone, in set_property()
345 &vehicle_data.value.int32_value); in set_property()
348 sscanf(data, "%d %d %d", &vehicle_data.zone, in set_property()
349 &vehicle_data.value.int32_array[0], in set_property()
350 &vehicle_data.value.int32_array[1]); in set_property()
353 sscanf(data, "%d %d %d %d", &vehicle_data.zone, in set_property()
354 &vehicle_data.value.int32_array[0], in set_property()
355 &vehicle_data.value.int32_array[1], in set_property()
356 &vehicle_data.value.int32_array[2]); in set_property()
359 sscanf(data, "%d %d %d %d %d", &vehicle_data.zone, in set_property()
360 &vehicle_data.value.int32_array[0], in set_property()
361 &vehicle_data.value.int32_array[1], in set_property()
362 &vehicle_data.value.int32_array[2], in set_property()
363 &vehicle_data.value.int32_array[3]); in set_property()
369 printf("Setting Property id: %d\n", vehicle_data.prop); in set_property()
370 print_property(&vehicle_data); in set_property()
372 int ret_code = device->set(device, &vehicle_data); in set_property()