lpcware

【求助】ROM driver使用疑问 – GetIdle& GetProtocol

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by xsimon on Tue Dec 25 08:57:18 CST 2012
Hi NXP members

ROM driver MW_usbd_hiduser.h里面 , 定义了一些function,如
/* user defined functions */
  ErrorCode_t (*HID_GetReport)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t* length);
  ErrorCode_t (*HID_SetReport)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t length);
  ErrorCode_t (*HID_GetPhysDesc)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuf, uint16_t* length);
  ErrorCode_t (*HID_SetIdle)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t idleTime);
  ErrorCode_t (*HID_SetProtocol)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t protocol);

请问ROM Driver有提供GetIdle & GetProtocol呼叫吗?
若没有的话,程序代码的进入点该加在哪里 , 谢谢.

Ps : 使用Lpc11u3x.

Outcomes