• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ HID_Device_ConfigureEndpoints函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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_ConfigurationChanged

void
EVENT_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,代码来源:ibm_capsense_usb.c


示例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,代码来源:note.c


示例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,代码来源:KeyboardMouse.c


示例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,代码来源:KeyboardMouse.c


示例5: EVENT_USB_Device_ConfigurationChanged

void 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,代码来源:Joystick.c


示例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,代码来源:Mouse.c


示例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,代码来源:TempDataLogger.c


示例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,代码来源:TempDataLogger.c


示例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,代码来源:HidSetup.c


示例10: EVENT_USB_Device_ConfigurationChanged

void 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,代码来源:usb.c


示例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,代码来源:usb_common.c


示例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,代码来源:Magstripe.c


示例13: EVENT_USB_Device_ConfigurationChanged

void
EVENT_USB_Device_ConfigurationChanged(void) {
    bool ok;
    ok = HID_Device_ConfigureEndpoints(&stateMachine);
    USB_Device_EnableSOFEvents();
}
开发者ID:sgk,项目名称:AudioController,代码行数:6,代码来源:AudioController.c



注:本文中的HID_Device_ConfigureEndpoints函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ HID_Device_MillisecondElapsed函数代码示例发布时间:2022-05-30
下一篇:
C++ HI8函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap