Yuki Suga / RTnoV4

Dependencies:   EthernetInterface mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PortBuffer.h Source File

PortBuffer.h

00001 #ifndef PORT_BUFFER_HEADER_INCLUDED
00002 #define PORT_BUFFER_HEADER_INCLUDED
00003 
00004 
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 
00010   struct _PortBuffer;
00011 
00012   typedef struct _PortBuffer PortBuffer;
00013   struct _PortBuffer {
00014     void(*push)(PortBuffer* _this, const int8_t* data, uint8_t size);
00015     void(*pop)(PortBuffer* _this, int8_t* data, uint8_t size);
00016     uint8_t(*getNextDataSize)(PortBuffer* _this);
00017     uint8_t(*hasNext)(PortBuffer *_this);
00018     void* privateData;
00019   };
00020   
00021 #ifdef __cplusplus
00022 }
00023 #endif
00024 
00025 
00026 
00027 
00028 #endif // #ifndef PORT_BUFFER_HEADER_INCLUDED