UVC host library

Dependents:   LifeCam WebcamServer

Committer:
va009039
Date:
Wed Aug 15 13:52:53 2012 +0000
Revision:
3:3eb41d749f9a
Parent:
0:b0f04c137829
add USB_USE_MALLOC

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:b0f04c137829 1 #ifndef USB_TD_H
va009039 0:b0f04c137829 2 #define USB_TD_H
va009039 0:b0f04c137829 3 #include "UsbInc.h"
va009039 0:b0f04c137829 4 #include "usb_mem.h"
va009039 0:b0f04c137829 5
va009039 0:b0f04c137829 6 template <class T>
va009039 0:b0f04c137829 7 class tdqueue {
va009039 0:b0f04c137829 8 public:
va009039 0:b0f04c137829 9 tdqueue();
va009039 0:b0f04c137829 10 int size();
va009039 0:b0f04c137829 11 bool empty();
va009039 0:b0f04c137829 12 T front();
va009039 0:b0f04c137829 13 void pop();
va009039 0:b0f04c137829 14 void push(T td);
va009039 0:b0f04c137829 15 private:
va009039 0:b0f04c137829 16 T m_head;
va009039 0:b0f04c137829 17 T m_tail;
va009039 0:b0f04c137829 18 };
va009039 0:b0f04c137829 19
va009039 0:b0f04c137829 20 HCTD* td_reverse(HCTD* td);
va009039 0:b0f04c137829 21 void test_td();
va009039 0:b0f04c137829 22
va009039 0:b0f04c137829 23 #endif //USB_TD_H