Yuki Suga / RTnoV4

Dependencies:   EthernetInterface mbed-rtos

Committer:
ysuga
Date:
Thu Aug 29 05:29:55 2013 +0000
Revision:
7:6c7af1d50fb3
Parent:
0:5f7bc45bc2e8
update v5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ysuga 0:5f7bc45bc2e8 1 #ifndef PORT_BUFFER_HEADER_INCLUDED
ysuga 0:5f7bc45bc2e8 2 #define PORT_BUFFER_HEADER_INCLUDED
ysuga 0:5f7bc45bc2e8 3
ysuga 0:5f7bc45bc2e8 4
ysuga 0:5f7bc45bc2e8 5
ysuga 0:5f7bc45bc2e8 6 #ifdef __cplusplus
ysuga 0:5f7bc45bc2e8 7 extern "C" {
ysuga 0:5f7bc45bc2e8 8 #endif
ysuga 0:5f7bc45bc2e8 9
ysuga 0:5f7bc45bc2e8 10 struct _PortBuffer;
ysuga 0:5f7bc45bc2e8 11
ysuga 0:5f7bc45bc2e8 12 typedef struct _PortBuffer PortBuffer;
ysuga 0:5f7bc45bc2e8 13 struct _PortBuffer {
ysuga 0:5f7bc45bc2e8 14 void(*push)(PortBuffer* _this, const int8_t* data, uint8_t size);
ysuga 0:5f7bc45bc2e8 15 void(*pop)(PortBuffer* _this, int8_t* data, uint8_t size);
ysuga 0:5f7bc45bc2e8 16 uint8_t(*getNextDataSize)(PortBuffer* _this);
ysuga 0:5f7bc45bc2e8 17 uint8_t(*hasNext)(PortBuffer *_this);
ysuga 0:5f7bc45bc2e8 18 void* privateData;
ysuga 0:5f7bc45bc2e8 19 };
ysuga 0:5f7bc45bc2e8 20
ysuga 0:5f7bc45bc2e8 21 #ifdef __cplusplus
ysuga 0:5f7bc45bc2e8 22 }
ysuga 0:5f7bc45bc2e8 23 #endif
ysuga 0:5f7bc45bc2e8 24
ysuga 0:5f7bc45bc2e8 25
ysuga 0:5f7bc45bc2e8 26
ysuga 0:5f7bc45bc2e8 27
ysuga 0:5f7bc45bc2e8 28 #endif // #ifndef PORT_BUFFER_HEADER_INCLUDED