这篇教程C++ HID_Device_ConfigureEndpoints函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中HID_Device_ConfigureEndpoints函数的典型用法代码示例。如果您正苦于以下问题:C++ HID_Device_ConfigureEndpoints函数的具体用法?C++ HID_Device_ConfigureEndpoints怎么用?C++ HID_Device_ConfigureEndpoints使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了HID_Device_ConfigureEndpoints函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: EVENT_USB_Device_ConfigurationChangedvoidEVENT_USB_Device_ConfigurationChanged(void){ HID_Device_ConfigureEndpoints(&keyboardHIDIface); HID_Device_ConfigureEndpoints(&genericHIDIface); HID_Device_ConfigureEndpoints(&nkroHIDIface); HID_Device_ConfigureEndpoints(&extrakeyHIDIface); USB_Device_EnableSOFEvents();}
开发者ID:BASLQC,项目名称:xwhatits-capsense-controller,代码行数:9,
示例2: EVENT_USB_Device_ConfigurationChanged/** Event handler for the library USB Configuration Changed event. */void EVENT_USB_Device_ConfigurationChanged(void){ bool ConfigSuccess = true; ConfigSuccess &= HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface); ConfigSuccess &= HID_Device_ConfigureEndpoints(&Mouse_HID_Interface); ConfigSuccess &= CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface); USB_Device_EnableSOFEvents();}
开发者ID:Hylian,项目名称:sdvx,代码行数:11,
示例3: EVENT_USB_Device_ConfigurationChanged/** Event handler for the library USB Configuration Changed event. */void EVENT_USB_Device_ConfigurationChanged(void){ bool ConfigSuccess = true; ConfigSuccess &= HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface); ConfigSuccess &= HID_Device_ConfigureEndpoints(&Mouse_HID_Interface); USB_Device_EnableSOFEvents(); LEDs_SetAllLEDs(ConfigSuccess ? LEDMASK_USB_READY : LEDMASK_USB_ERROR);}
开发者ID:Dzenik,项目名称:RF-Pirate,代码行数:12,
示例4: EVENT_USB_Device_ConfigurationChanged/** Event handler for the library USB Configuration Changed event. */void EVENT_USB_Device_ConfigurationChanged(void){ LEDs_SetAllLEDs(LEDMASK_USB_READY); if (!(HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface))) LEDs_SetAllLEDs(LEDMASK_USB_ERROR); if (!(HID_Device_ConfigureEndpoints(&Mouse_HID_Interface))) LEDs_SetAllLEDs(LEDMASK_USB_ERROR); USB_Device_EnableSOFEvents();}
开发者ID:TomMD,项目名称:teensy,代码行数:13,
示例5: EVENT_USB_Device_ConfigurationChangedvoid EVENT_USB_Device_ConfigurationChanged(void) { bool ConfigSuccess = true; SerialDebug_printf("EVENT_USB_Device_ConfigurationChanged/r/n"); ConfigSuccess &= HID_Device_ConfigureEndpoints(&Joystick_HID_Interface); USB_Device_EnableSOFEvents();}
开发者ID:letoine,项目名称:NeoGeoControllerToUSB,代码行数:8,
示例6: EVENT_USB_Device_ConfigurationChanged/** * @brief Event handler for the library USB Configuration Changed event * @return Nothing */void EVENT_USB_Device_ConfigurationChanged(void){ bool ConfigSuccess = true; ConfigSuccess &= HID_Device_ConfigureEndpoints(&Mouse_HID_Interface); USB_Device_EnableSOFEvents();}
开发者ID:edarring,项目名称:lpcopen,代码行数:12,
示例7: EVENT_USB_Device_ConfigurationChanged/** Event handler for the library USB Configuration Changed event. */void EVENT_USB_Device_ConfigurationChanged(void){ bool ConfigSuccess = true; ConfigSuccess &= HID_Device_ConfigureEndpoints(&Generic_HID_Interface); ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface); LEDs_SetAllLEDs(ConfigSuccess ? LEDMASK_USB_READY : LEDMASK_USB_ERROR);}
开发者ID:hopfgarten,项目名称:jnode-atmega-dual-firmware,代码行数:10,
示例8: EVENT_USB_Device_ConfigurationChanged/** Event handler for the library USB Configuration Changed event. */void EVENT_USB_Device_ConfigurationChanged(void){ LEDs_SetAllLEDs(LEDMASK_USB_READY); if (!(MS_Device_ConfigureEndpoints(&Disk_MS_Interface))) LEDs_SetAllLEDs(LEDMASK_USB_ERROR); if (!(HID_Device_ConfigureEndpoints(&Generic_HID_Interface))) LEDs_SetAllLEDs(LEDMASK_USB_ERROR); }
开发者ID:Andrew0Hill,项目名称:keyboard,代码行数:11,
示例9: EVENT_USB_Device_ConfigurationChanged/** Event handler for the library USB Configuration Changed event. */void EVENT_USB_Device_ConfigurationChanged(void) { bool success = HID_Device_ConfigureEndpoints(&kbd_device); // TODO: Possibly signal this failure better. // I don't think it can happen in practice. if (!success) { abort(); } // Need this to call HID_Device_MillisecondElapsed. USB_Device_EnableSOFEvents();}
开发者ID:dreiss,项目名称:twi-keyboard,代码行数:12,
示例10: EVENT_USB_Device_ConfigurationChangedvoid EVENT_USB_Device_ConfigurationChanged(void){ bool success = true; success &= MS_Device_ConfigureEndpoints(&ms_device); success &= HID_Device_ConfigureEndpoints(&keyboard_device);// success &= CDC_Device_ConfigureEndpoints(&serial_device); USB_Device_EnableSOFEvents(); if (!success) { led_error(USB_ERROR); }}
开发者ID:JohnOH,项目名称:phatio,代码行数:13,
示例11: EVENT_USB_Device_ConfigurationChanged/** Event handler for the library USB Configuration Changed event. */void EVENT_USB_Device_ConfigurationChanged(void){ bool ConfigSuccess = true;#if defined(USB_CDC_CLASS) || defined(USB_COMP_MOUSE_CDC_CLASS) ConfigSuccess &= CDC_Device_ConfigureEndpoints(CDC_IF_PTR);#endif // #if defined(USB_CDC_CLASS) || defined(USB_COMP_MOUSE_CDC_CLASS)#if defined(USB_MOUSE_CLASS) || defined(USB_COMP_MOUSE_CDC_CLASS) ConfigSuccess &= HID_Device_ConfigureEndpoints(HID_Mouse_PTR); USB_Device_EnableSOFEvents(); // USB Mouse Only??#endif // #if defined(USB_MOUSE_CLASS) || defined(USB_COMP_MOUSE_CDC_CLASS) USB_DEBUG_MSG("EVENT_USB_Device_ConfigurationChanged/r/n");}
开发者ID:JeremyHsiao,项目名称:TinyBlueRat_LPCv1_03,代码行数:16,
示例12: EVENT_USB_Device_ConfigurationChanged/** Event handler for the library USB Configuration Changed event. */void EVENT_USB_Device_ConfigurationChanged(void){ HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface); USB_Device_EnableSOFEvents();}
开发者ID:davidk,项目名称:lufa-lib,代码行数:7,
示例13: EVENT_USB_Device_ConfigurationChangedvoidEVENT_USB_Device_ConfigurationChanged(void) { bool ok; ok = HID_Device_ConfigureEndpoints(&stateMachine); USB_Device_EnableSOFEvents();}
开发者ID:sgk,项目名称:AudioController,代码行数:6,
注:本文中的HID_Device_ConfigureEndpoints函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ HID_Device_MillisecondElapsed函数代码示例 C++ HI8函数代码示例 |