aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/RNDISEthernetHost/RNDISEthernetHost.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-11-13 07:23:31 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-11-13 07:23:31 +0000
commit2626ecb261e3cac22c602a92034b32c4e6d2be87 (patch)
tree4fd5c86dd741e23cacd1f114f5fecae1cd41a467 /Demos/Host/Incomplete/RNDISEthernetHost/RNDISEthernetHost.h
parent652042111c7c058bd56d9847002f166507f492d4 (diff)
downloadlufa-2626ecb261e3cac22c602a92034b32c4e6d2be87.tar.gz
lufa-2626ecb261e3cac22c602a92034b32c4e6d2be87.tar.bz2
lufa-2626ecb261e3cac22c602a92034b32c4e6d2be87.zip
Extend incomplete RNDISHost demo -- can not enumerate a RNDIS device correctly and set the packet filter. No packets are received yet from the test device, need to investigate additional SET commands to see if any critical OIDs have been missed.
Diffstat (limited to 'Demos/Host/Incomplete/RNDISEthernetHost/RNDISEthernetHost.h')
-rw-r--r--Demos/Host/Incomplete/RNDISEthernetHost/RNDISEthernetHost.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Demos/Host/Incomplete/RNDISEthernetHost/RNDISEthernetHost.h b/Demos/Host/Incomplete/RNDISEthernetHost/RNDISEthernetHost.h
index caca9c60d..47e5c24d1 100644
--- a/Demos/Host/Incomplete/RNDISEthernetHost/RNDISEthernetHost.h
+++ b/Demos/Host/Incomplete/RNDISEthernetHost/RNDISEthernetHost.h
@@ -66,8 +66,25 @@
/** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */
#define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)
+ /** LED mask for the library LED driver, to indicate that the USB interface is busy. */
+ #define LEDMASK_USB_BUSY (LEDS_LED2)
+
+ /* Type Defines: */
+ /** Type define for a RNDIS notification message, for transmission to the RNDIS host via the notification
+ * Endpoint.
+ */
+ typedef struct
+ {
+ uint8_t bmRequestType; /**< Notification type, a mask of values from SrdRequestType.h */
+ uint8_t bNotification; /**< Notification index, indicating what the RNDIS notification relates to */
+ uint16_t wValue; /**< Two byte notification value parameter */
+ uint16_t wIndex; /**< Two byte notification index parameter */
+ uint16_t wLength; /**< Size of data payload following the notification header */
+ } USB_Notification_t;
+
/* Function Prototypes: */
void SetupHardware(void);
+ void PrintIncommingPackets(void);
void RNDIS_Host_Task(void);
void EVENT_USB_Host_HostError(const uint8_t ErrorCode);