RTno is communicating library and framework which allows you to make your embedded device capable of communicating with RT-middleware world. RT-middleware is a platform software to realize Robotic system. In RTM, robots are developed by constructing robotics technologies\' elements (components) named RT-component. Therefore, the RTno helps you to create your own RT-component with your mbed and arduino. To know how to use your RTno device, visit here: http://ysuga.net/robot_e/rtm_e/rtc_e/1065?lang=en To know about RT-middleware and RT-component, visit http://www.openrtm.org
Dependencies: EthernetInterface mbed-rtos
PortBuffer.h@0:5f7bc45bc2e8, 2013-06-24 (annotated)
- Committer:
- ysuga
- Date:
- Mon Jun 24 06:42:11 2013 +0000
- Revision:
- 0:5f7bc45bc2e8
[mbed] converted /RTnoV3/RTnoV3
Who changed what in which revision?
User | Revision | Line number | New 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 |