BLE demo for mbed Ported RunningElectronics's SBDBT firmware for BLE. It can communicate with iOS
Dependencies: FatFileSystem mbed
Fork of BTstack by
usb/Usb_td.h@6:cf06ba884429, 2013-02-20 (annotated)
- Committer:
- todotani
- Date:
- Wed Feb 20 14:18:38 2013 +0000
- Revision:
- 6:cf06ba884429
- Parent:
- 0:1ed23ab1345f
Change tick timer to 1ms. Change attribute 0xFFF1 as read of DigitalIn p5
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:1ed23ab1345f | 1 | #ifndef USB_TD_H |
va009039 | 0:1ed23ab1345f | 2 | #define USB_TD_H |
va009039 | 0:1ed23ab1345f | 3 | #include "UsbInc.h" |
va009039 | 0:1ed23ab1345f | 4 | #include "usb_mem.h" |
va009039 | 0:1ed23ab1345f | 5 | |
va009039 | 0:1ed23ab1345f | 6 | template <class T> |
va009039 | 0:1ed23ab1345f | 7 | class tdqueue { |
va009039 | 0:1ed23ab1345f | 8 | public: |
va009039 | 0:1ed23ab1345f | 9 | tdqueue(); |
va009039 | 0:1ed23ab1345f | 10 | int size(); |
va009039 | 0:1ed23ab1345f | 11 | bool empty(); |
va009039 | 0:1ed23ab1345f | 12 | T front(); |
va009039 | 0:1ed23ab1345f | 13 | void pop(); |
va009039 | 0:1ed23ab1345f | 14 | void push(T td); |
va009039 | 0:1ed23ab1345f | 15 | private: |
va009039 | 0:1ed23ab1345f | 16 | T m_head; |
va009039 | 0:1ed23ab1345f | 17 | T m_tail; |
va009039 | 0:1ed23ab1345f | 18 | }; |
va009039 | 0:1ed23ab1345f | 19 | |
va009039 | 0:1ed23ab1345f | 20 | HCTD* td_reverse(HCTD* td); |
va009039 | 0:1ed23ab1345f | 21 | void test_td(); |
va009039 | 0:1ed23ab1345f | 22 | |
va009039 | 0:1ed23ab1345f | 23 | #endif //USB_TD_H |