class library to access fischertechnik interfaces via USB
Dependencies: FatFileSystem mbed myBlueUSB neigbourhood rfcomm sdp
ftlib/ft.h@1:4676e8b9b357, 2013-03-11 (annotated)
- Committer:
- networker
- Date:
- Mon Mar 11 08:04:37 2013 +0000
- Revision:
- 1:4676e8b9b357
- Parent:
- 0:7da612835693
first publication of this experimental class, just for sharing wip
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
networker |
0:7da612835693 | 1 | #ifndef FT_H |
networker |
0:7da612835693 | 2 | #define FT_H |
networker |
0:7da612835693 | 3 | |
networker |
0:7da612835693 | 4 | typedef unsigned char BYTE; |
networker |
0:7da612835693 | 5 | typedef unsigned short USHORT; |
networker |
0:7da612835693 | 6 | typedef unsigned int DWORD; |
networker |
0:7da612835693 | 7 | |
networker |
0:7da612835693 | 8 | #pragma pack( push, 1 ) |
networker |
0:7da612835693 | 9 | typedef union { |
networker |
0:7da612835693 | 10 | BYTE aucMsg[6]; |
networker |
0:7da612835693 | 11 | struct { |
networker |
0:7da612835693 | 12 | BYTE ucHwId; |
networker |
0:7da612835693 | 13 | BYTE ucSubId; |
networker |
0:7da612835693 | 14 | union { |
networker |
0:7da612835693 | 15 | struct { |
networker |
0:7da612835693 | 16 | BYTE ucB0; |
networker |
0:7da612835693 | 17 | BYTE ucB1; |
networker |
0:7da612835693 | 18 | BYTE ucB2; |
networker |
0:7da612835693 | 19 | BYTE ucB3; |
networker |
0:7da612835693 | 20 | }; |
networker |
0:7da612835693 | 21 | struct { |
networker |
0:7da612835693 | 22 | USHORT uiMsgId; |
networker |
0:7da612835693 | 23 | USHORT uiMsg; |
networker |
0:7da612835693 | 24 | } ; |
networker |
0:7da612835693 | 25 | DWORD dw; |
networker |
0:7da612835693 | 26 | } ; |
networker |
0:7da612835693 | 27 | } ; |
networker |
0:7da612835693 | 28 | } SMESSAGE; |
networker |
0:7da612835693 | 29 | #pragma pack( pop ) |
networker |
0:7da612835693 | 30 | |
networker |
0:7da612835693 | 31 | #endif |