Home | History | Annotate | Download | only in rmihidtool

Lines Matching defs:device

64 	fprintf(stdout, "\t-o, --props\t\t\t\tPrint device properties\n");
66 fprintf(stdout, "\t-m, --print-functions\t\t\tPrint RMI4 functions for the device.\n");
67 fprintf(stdout, "\t-b, --rebind-driver\t\t\tRebind the driver to force an update of device properties.\n");
68 fprintf(stdout, "\t-d, --device-info\t\t\tPrint protocol specific information about the device.\n");
69 fprintf(stdout, "\t-e, --reset-device\t\t\tReset the device.\n");
111 void interactive(RMIDevice * device, unsigned char *report)
131 if (device->SetMode(mode)) {
149 rc = device->Read(addr, report, len);
168 if (device->Write(addr, report, len) < 0) {
174 device->GetAttentionReport(NULL,
204 RMIDevice *device;
219 {"device-info", 0, NULL, 'd'},
220 {"reset-device", 0, NULL, 'e'},
287 device = new HIDDevice();
298 rc = device->Open(argv[optind++]);
300 fprintf(stderr, "%s: failed to initialize rmi device (%d): %s\n", argv[0], errno,
305 g_device = device;
310 rc = device->Read(addr, report, len);
326 if (device->Write(addr, report, len) < 0) {
332 device->ScanPDT();
333 device->QueryBasicProperties();
334 fprintf(stdout, "firmware id: %lu\n", device->GetFirmwareID());
337 device->ScanPDT();
338 device->QueryBasicProperties();
339 device->PrintProperties();
345 rc = device->GetAttentionReport(NULL,
355 device->ScanPDT();
356 device->PrintFunctions();
359 device->RebindDriver();
362 device->PrintDeviceInfo();
365 device->ScanPDT();
366 device->Reset();
370 interactive(device, report);
374 device->Close();