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
Diff: PortBase.h
- Revision:
- 0:5f7bc45bc2e8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PortBase.h Mon Jun 24 06:42:11 2013 +0000 @@ -0,0 +1,34 @@ +/******************************************* + * PortBase.h + * @author Yuki Suga + * @copyright Yuki Suga (ysuga.net) Nov, 10th, 2010. + * @license LGPLv3 + *****************************************/ + +#ifndef PORT_BASE_HEADER_INCLUDED +#define PORT_BASE_HEADER_INCLUDED + +#include <stdint.h> +#include "BasicDataType.h" +#include "PortBuffer.h" + +typedef struct _PortBase { + unsigned char portBuffer; + void* pData; + char* pName; + char typeCode; + PortBuffer *pPortBuffer; +} PortBase; + +PortBase* PortBase_create(); +void PortBase_init(PortBase* pPortBase, const char* name, char typeCode, PortBuffer* dataBuffer); +void PortBase_destroy(PortBase* pPortBase); + +uint8_t PortBase_isSequence(PortBase* pPortBase); +uint8_t PortBase_getLength(PortBase* pPortBase); +void PortBase_setLength(PortBase* pPortBase, uint8_t length); +PortBuffer* PortBase_getBuffer(PortBase* pPortBase); + + + +#endif