Modules/USB - A little more work
[tpg/acess2.git] / Modules / USB / Core / usb.h
index 397e4d7..6ee841c 100644 (file)
@@ -10,6 +10,14 @@ typedef struct sUSBHost      tUSBHost;
 typedef struct sUSBDevice      tUSBDevice;
 
 // === CONSTANTS ===
+enum eUSB_TransferType
+{
+       TRANSTYPE_ISYNCH,       // Constant, Low latency, low bandwidth, no transmission retries
+       TRANSTYPE_INTERRUPT,    // -- NEVER SENT -- Spontanious, Low latency, low bandwith
+       TRANSTYPE_CONTROL,      // Device control
+       TRANSTYPE_BULK          // High latency, high bandwidth
+};
+
 enum eUSB_PIDs
 {
        /**
@@ -65,11 +73,11 @@ enum eUSB_PIDs
 /**
  * \note 00101 - X^5+X^2+1
  */
-Uint8  USB_TokenCRC(void *Data, int len);
+extern Uint8   USB_TokenCRC(void *Data, int len);
 /**
  * \note X^16 + X15 + X^2 + 1
  */
-Uint16 USB_DataCRC(void *Data, int len);
+extern Uint16  USB_DataCRC(void *Data, int len);
 
 // === STRUCTURES ===
 /**

UCC git Repository :: git.ucc.asn.au