Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FatFileSystem TB6612FNG2 mbed
usb/Usb_td.h@0:de03cbbcd0ff, 2015-11-30 (annotated)
- Committer:
- mbed_Cookbook_SE
- Date:
- Mon Nov 30 09:32:15 2015 +0000
- Revision:
- 0:de03cbbcd0ff
??
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 1 | #ifndef USB_TD_H |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 2 | #define USB_TD_H |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 3 | #include "UsbInc.h" |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 4 | #include "usb_mem.h" |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 5 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 6 | template <class T> |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 7 | class tdqueue { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 8 | public: |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 9 | tdqueue(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 10 | int size(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 11 | bool empty(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 12 | T front(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 13 | void pop(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 14 | void push(T td); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 15 | private: |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 16 | T m_head; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 17 | T m_tail; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 18 | }; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 19 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 20 | HCTD* td_reverse(HCTD* td); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 21 | void test_td(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 22 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 23 | #endif //USB_TD_H |