Fixed SPI driver not explicitly setting /SS and MISO pins as inputs when SPI_Init...
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Common / RNDIS.h
index ab0126e..b9d50f9 100644 (file)
 
                /** Implemented RNDIS Version Minor. */
                #define REMOTE_NDIS_VERSION_MINOR             0x00
-       
-               /** RNDIS request to issue a host-to-device NDIS command. */
-               #define REQ_SendEncapsulatedCommand           0x00
-
-               /** RNDIS request to issue a device-to-host NDIS response. */
-               #define REQ_GetEncapsulatedResponse           0x01
-               
+                       
                /** Maximum size in bytes of a RNDIS control message which can be sent or received. */
                #define RNDIS_MESSAGE_BUFFER_SIZE             128
 
                /** Maximum size in bytes of an Ethernet frame according to the Ethernet standard. */
                #define ETHERNET_FRAME_SIZE_MAX               1500
                
-               /** Notification request value for a RNDIS Response Available notification. */
-               #define NOTIF_ResponseAvailable               1
-               
        /* Enums: */
+               /** Enum for the RNDIS class specific control requests that can be issued by the USB bus host. */
+               enum RNDIS_ClassRequests_t
+               {
+                       RNDIS_REQ_SendEncapsulatedCommand = 0x00, /**< RNDIS request to issue a host-to-device NDIS command. */
+                       RNDIS_REQ_GetEncapsulatedResponse = 0x01, /**< RNDIS request to issue a device-to-host NDIS response. */
+               };
+               
                /** Enum for the possible NDIS adapter states. */
                enum RNDIS_States_t
                {
-                       RNDIS_Uninitialized    = 0, /**< Adapter currently uninitialised. */
+                       RNDIS_Uninitialized    = 0, /**< Adapter currently uninitialized. */
                        RNDIS_Initialized      = 1, /**< Adapter currently initialized but not ready for data transfers. */
                        RNDIS_Data_Initialized = 2, /**< Adapter currently initialized and ready for data transfers. */
                };
 
+               /** Enum for the RNDIS class specific notification requests that can be issued by a RNDIS device to a host. */
+               enum RNDIS_ClassNotifications_t
+               {
+                       RNDIS_NOTIF_ResponseAvailable             = 0x01, /**< Notification request value for a RNDIS Response Available notification. */
+               };
+
                /** Enum for the NDIS hardware states. */
                enum NDIS_Hardware_Status_t
                {