Lines Matching defs:property
32 "-p - Property (only used with -m)\n"
63 "Subscribes to be notified about a property change (depending on whether\n"
64 "it is a on change property or a continuous property) for seconds provided\n"
82 printf("Property ID: %d\n"
83 "Property config_flags: %d\n"
84 "Property change mode: %d\n"
85 "Property min sample rate: %f\n"
86 "Property max sample rate: %f\n",
208 vehicle_hw_device_t *device, int32_t property, int32_t type, char *value_string) {
230 data->prop = property;
233 printf("Cannot get property: %d\n", ret_code);
245 int32_t property,
249 vehicle_data.prop = property;
369 printf("Setting Property id: %d\n", vehicle_data.prop);
374 printf("Cannot set property: %d\n", ret_code);
381 printf("Got some value from callback property: %d\n", event_data->prop);
387 int vehicle_error_callback(int32_t error_code, int32_t property, int32_t operation) {
439 // Type of the property (see #defines in vehicle.h).
440 int property = -1;
441 // Type of the value of the property (see enum vehicle_value_type).
468 property = atoi(optarg);
496 printf("Getting property ...\n");
497 if (property == -1) {
498 printf("Use -p to pass a valid Property.\n");
510 get_property(vehicle_device, property, type, value);
512 printf("Setting property ...\n");
513 if (property == -1 || type == -1) {
514 printf("Use -p to pass a valid Property and -t to pass a valid Type.\n");
518 set_property(vehicle_device, property, type, value);
520 printf("Subscribing property ...\n");
521 if (property == -1 || wait_time_in_sec <= 0) {
522 printf("Use -p to pass a valid property and -w to pass a valid wait time(s)\n");
526 subscribe_to_property(vehicle_device, property, sample_rate, wait_time_in_sec);