|
|
@ -52,16 +52,8 @@
|
|
|
|
extern "C" {
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Public Interface - May be used in end-application: */
|
|
|
|
/* Function Prototypes: */
|
|
|
|
/* Function Prototypes: */
|
|
|
|
#if defined(INCLUDE_FROM_RNDIS_CLASS_DEVICE_C)
|
|
|
|
|
|
|
|
static void RNDIS_Device_ProcessRNDISControlMessage(USB_ClassInfo_RNDIS_t* RNDISInterfaceInfo);
|
|
|
|
|
|
|
|
static bool RNDIS_Device_ProcessNDISQuery(USB_ClassInfo_RNDIS_t* RNDISInterfaceInfo,
|
|
|
|
|
|
|
|
uint32_t OId, void* QueryData, uint16_t QuerySize,
|
|
|
|
|
|
|
|
void* ResponseData, uint16_t* ResponseSize);
|
|
|
|
|
|
|
|
static bool RNDIS_Device_ProcessNDISSet(USB_ClassInfo_RNDIS_t* RNDISInterfaceInfo, uint32_t OId,
|
|
|
|
|
|
|
|
void* SetData, uint16_t SetSize);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Configures the endpoints of a given RNDIS interface, ready for use. This should be linked to the library
|
|
|
|
/** Configures the endpoints of a given RNDIS interface, ready for use. This should be linked to the library
|
|
|
|
* \ref EVENT_USB_ConfigurationChanged() event so that the endpoints are configured when the configuration
|
|
|
|
* \ref EVENT_USB_ConfigurationChanged() event so that the endpoints are configured when the configuration
|
|
|
|
* containing the given HID interface is selected.
|
|
|
|
* containing the given HID interface is selected.
|
|
|
@ -86,6 +78,20 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void RNDIS_Device_USBTask(USB_ClassInfo_RNDIS_t* RNDISInterfaceInfo);
|
|
|
|
void RNDIS_Device_USBTask(USB_ClassInfo_RNDIS_t* RNDISInterfaceInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Private Interface - For use in library only: */
|
|
|
|
|
|
|
|
#if !defined(__DOXYGEN__)
|
|
|
|
|
|
|
|
/* Function Prototypes: */
|
|
|
|
|
|
|
|
#if defined(INCLUDE_FROM_RNDIS_CLASS_DEVICE_C)
|
|
|
|
|
|
|
|
static void RNDIS_Device_ProcessRNDISControlMessage(USB_ClassInfo_RNDIS_t* RNDISInterfaceInfo);
|
|
|
|
|
|
|
|
static bool RNDIS_Device_ProcessNDISQuery(USB_ClassInfo_RNDIS_t* RNDISInterfaceInfo,
|
|
|
|
|
|
|
|
uint32_t OId, void* QueryData, uint16_t QuerySize,
|
|
|
|
|
|
|
|
void* ResponseData, uint16_t* ResponseSize);
|
|
|
|
|
|
|
|
static bool RNDIS_Device_ProcessNDISSet(USB_ClassInfo_RNDIS_t* RNDISInterfaceInfo, uint32_t OId,
|
|
|
|
|
|
|
|
void* SetData, uint16_t SetSize);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* Disable C linkage for C++ Compilers: */
|
|
|
|
/* Disable C linkage for C++ Compilers: */
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
}
|
|
|
|