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:   EthernetNetIf

Dependents:   RTnoV3_LED RTnoV3_Template RTnoV3_ADC RTnoV3_Timer ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PortBase.h Source File

PortBase.h

00001 /*******************************************
00002  * PortBase.h
00003  * @author Yuki Suga
00004  * @copyright Yuki Suga (ysuga.net) Nov, 10th, 2010.
00005  * @license LGPLv3
00006  *****************************************/
00007 
00008 #ifndef PORT_BASE_HEADER_INCLUDED
00009 #define PORT_BASE_HEADER_INCLUDED
00010 
00011 #include <stdint.h>
00012 #include "BasicDataType.h"
00013 #include "PortBuffer.h"
00014 
00015 typedef struct _PortBase {
00016   unsigned char portBuffer;
00017   void* pData;
00018   char* pName;
00019   char typeCode;
00020   PortBuffer *pPortBuffer;
00021 } PortBase;
00022 
00023 PortBase* PortBase_create();
00024 void PortBase_init(PortBase* pPortBase, const char* name, char typeCode, PortBuffer* dataBuffer);
00025 void PortBase_destroy(PortBase* pPortBase);
00026 
00027 uint8_t PortBase_isSequence(PortBase* pPortBase);
00028 uint8_t PortBase_getLength(PortBase* pPortBase);
00029 void PortBase_setLength(PortBase* pPortBase, uint8_t length);
00030 PortBuffer* PortBase_getBuffer(PortBase* pPortBase);
00031 
00032 
00033 
00034 #endif